From 1b01e35c34b953cbf51298f4650dc3215c382a4f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 16 Aug 2025 17:51:44 +0300 Subject: feat(logging): add LLM stats (averages and per-minute) --- internal/lsp/handlers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/lsp/handlers.go') diff --git a/internal/lsp/handlers.go b/internal/lsp/handlers.go index ae43b4c..d8c13a1 100644 --- a/internal/lsp/handlers.go +++ b/internal/lsp/handlers.go @@ -278,10 +278,9 @@ func inParamList(current string, cursor int) bool { return open >= 0 && cursor > open && (close == -1 || cursor <= close) } -// TODO: Not just be a Go code completion engine, make this flexible. func buildPrompts(inParams bool, p CompletionParams, above, current, below, funcCtx string) (string, string) { if inParams { - sys := "You are a terse Go code completion engine for function signatures. Return only the parameter list contents (without parentheses), no braces, no prose. Prefer idiomatic names and types." + sys := "You are a code completion engine for function signatures. Return only the parameter list contents (without parentheses), no braces, no prose. Prefer idiomatic names and types." user := fmt.Sprintf("Cursor is inside the function parameter list. Suggest only the parameter list (no parentheses).\nFunction line: %s\nCurrent line (cursor at %d): %s", funcCtx, p.Position.Character, current) return sys, user } -- cgit v1.2.3