mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 03:47:54 +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
|
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"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user