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/hexaiaction | |
| parent | 9dc5fc419df4e5ef80594918742b5462d5a4ad4b (diff) | |
| parent | c66b34a77006cd9453f7739cd8dbe500da8da85d (diff) | |
Merge branch 'main' of codeberg.org:snonux/hexai
Diffstat (limited to 'internal/hexaiaction')
| -rw-r--r-- | internal/hexaiaction/prompts.go | 4 | ||||
| -rw-r--r-- | internal/hexaiaction/prompts_more_test.go | 4 | ||||
| -rw-r--r-- | internal/hexaiaction/run_more_test.go | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/internal/hexaiaction/prompts.go b/internal/hexaiaction/prompts.go index a113391..fc743a0 100644 --- a/internal/hexaiaction/prompts.go +++ b/internal/hexaiaction/prompts.go @@ -49,8 +49,8 @@ func defaultModelForProvider(cfg appconfig.App, provider string) string { switch provider { case "ollama": return cfg.OllamaModel - case "copilot": - return cfg.CopilotModel + case "anthropic": + return cfg.AnthropicModel default: return cfg.OpenAIModel } diff --git a/internal/hexaiaction/prompts_more_test.go b/internal/hexaiaction/prompts_more_test.go index cfccd0c..a4410e5 100644 --- a/internal/hexaiaction/prompts_more_test.go +++ b/internal/hexaiaction/prompts_more_test.go @@ -35,8 +35,8 @@ func TestReqOptsFrom_Override(t *testing.T) { cfg := appconfig.App{ MaxTokens: 123, Provider: "openai", - CopilotModel: "gpt-4o", - CodeActionConfigs: []appconfig.SurfaceConfig{{Provider: "copilot", Model: "override", Temperature: ptrFloat(0.6)}}, + AnthropicModel: "claude-3-5-sonnet", + CodeActionConfigs: []appconfig.SurfaceConfig{{Provider: "anthropic", Model: "override", Temperature: ptrFloat(0.6)}}, } req := reqOptsFrom(cfg) if req.model != "override" { diff --git a/internal/hexaiaction/run_more_test.go b/internal/hexaiaction/run_more_test.go index a3e7f25..57bd933 100644 --- a/internal/hexaiaction/run_more_test.go +++ b/internal/hexaiaction/run_more_test.go @@ -14,7 +14,7 @@ import ( // Covers the early error path in Run when no API key is available for the default provider. func TestRun_MissingAPIKey(t *testing.T) { // Ensure no provider API keys in env - for _, k := range []string{"HEXAI_OPENAI_API_KEY", "OPENAI_API_KEY", "HEXAI_COPILOT_API_KEY", "COPILOT_API_KEY"} { + for _, k := range []string{"HEXAI_OPENAI_API_KEY", "OPENAI_API_KEY"} { t.Setenv(k, "") } // Provide minimal stdin to get past empty input check (if reached) |
