From bd60ac52ca59acf0705063fbaf3bb056bac61e8c Mon Sep 17 00:00:00 2001 From: David Dworken Date: Fri, 7 Feb 2025 11:23:05 -0800 Subject: [PATCH] Increase number of lines used in AI context for files --- client/ai/ai.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ai/ai.go b/client/ai/ai.go index f283c69..87e5b40 100644 --- a/client/ai/ai.go +++ b/client/ai/ai.go @@ -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" }