summaryrefslogtreecommitdiff
path: root/internal/lsp/testhelper_capture_llm_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/testhelper_capture_llm_test.go')
-rw-r--r--internal/lsp/testhelper_capture_llm_test.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/lsp/testhelper_capture_llm_test.go b/internal/lsp/testhelper_capture_llm_test.go
index 3274141..2e63ca7 100644
--- a/internal/lsp/testhelper_capture_llm_test.go
+++ b/internal/lsp/testhelper_capture_llm_test.go
@@ -1,18 +1,17 @@
package lsp
import (
- "context"
+ "context"
- "codeberg.org/snonux/hexai/internal/llm"
+ "codeberg.org/snonux/hexai/internal/llm"
)
// captureLLM captures messages sent to Chat for assertions.
type captureLLM struct{ msgs []llm.Message }
func (c *captureLLM) Chat(_ context.Context, m []llm.Message, _ ...llm.RequestOption) (string, error) {
- c.msgs = append([]llm.Message{}, m...)
- return "OK", nil
+ c.msgs = append([]llm.Message{}, m...)
+ return "OK", nil
}
func (*captureLLM) Name() string { return "cap" }
func (*captureLLM) DefaultModel() string { return "m" }
-