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