diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-06 23:24:25 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-06 23:24:25 +0200 |
| commit | 5d3e46e9b13de28c069c96c8fc1d445234ae0a2c (patch) | |
| tree | 38ad18ad7de669adcd01d5de7c4472aefd238bf1 /internal/llm/copilot_test.go | |
| parent | 9dc5fc419df4e5ef80594918742b5462d5a4ad4b (diff) | |
| parent | c66b34a77006cd9453f7739cd8dbe500da8da85d (diff) | |
Merge branch 'main' of codeberg.org:snonux/hexai
Diffstat (limited to 'internal/llm/copilot_test.go')
| -rw-r--r-- | internal/llm/copilot_test.go | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/internal/llm/copilot_test.go b/internal/llm/copilot_test.go deleted file mode 100644 index 8f15347..0000000 --- a/internal/llm/copilot_test.go +++ /dev/null @@ -1,35 +0,0 @@ -package llm - -import "testing" - -func TestBuildCopilotChatRequest_FieldsAndDefaults(t *testing.T) { - o := Options{ - Model: "gpt-x", - Temperature: 0, - MaxTokens: 123, - Stop: []string{"X"}, - } - - msgs := []Message{{Role: "user", Content: "q"}} - req := buildCopilotChatRequest(o, msgs, f64p(0.5)) - - if req.Model != "gpt-x" { - t.Fatalf("model mismatch: %q", req.Model) - } - - if req.Temperature == nil || *req.Temperature != 0.5 { - t.Fatalf("default temp not applied") - } - - if req.MaxTokens == nil || *req.MaxTokens != 123 { - t.Fatalf("max_tokens not applied") - } - - if len(req.Stop) != 1 || req.Stop[0] != "X" { - t.Fatalf("stop not applied") - } - - if len(req.Messages) != 1 || req.Messages[0].Content != "q" { - t.Fatalf("messages not copied") - } -} |
