mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-20 03:29:15 +02:00
Increase number of lines used in AI context for files
This commit is contained in:
@@ -70,7 +70,7 @@ func augmentQuery(ctx context.Context, query string) string {
|
|||||||
return query
|
return query
|
||||||
}
|
}
|
||||||
lines := strings.Split(string(contents), "\n")
|
lines := strings.Split(string(contents), "\n")
|
||||||
trimmed := lines[:min(5, len(lines))]
|
trimmed := lines[:min(10, len(lines))]
|
||||||
newQuery += strings.Join(trimmed, "\n")
|
newQuery += strings.Join(trimmed, "\n")
|
||||||
newQuery += "\n...```\n\n"
|
newQuery += "\n...```\n\n"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user