summaryrefslogtreecommitdiff
path: root/internal/llmutils/client_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-26 09:05:36 +0300
committerPaul Buetow <paul@buetow.org>2026-04-26 09:05:36 +0300
commit017b355d6632ef9fbf162fa741e7dde366b2b2db (patch)
treeee23cbde7c06cdff659820565b13be608eed49aa /internal/llmutils/client_test.go
parent4e59e25a4304a674a7c970bc371640cf0f73d3fd (diff)
feat: default to Ollama Cloud (kimi-k2.6) when no provider configured
Switches the in-code defaults so that hexai talks to Ollama Cloud (https://ollama.com) with model kimi-k2.6 when no provider is configured, instead of OpenAI. The example config, README, and configuration guide all reflect the new recommended setup; previous OpenAI / local-Ollama options are still documented as alternatives. Tests that depended on the implicit "openai" default now pin the provider explicitly so they continue to exercise the OpenAI / gpt-5 code paths they were designed to cover. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'internal/llmutils/client_test.go')
-rw-r--r--internal/llmutils/client_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/llmutils/client_test.go b/internal/llmutils/client_test.go
index c688213..ed91584 100644
--- a/internal/llmutils/client_test.go
+++ b/internal/llmutils/client_test.go
@@ -37,7 +37,7 @@ func TestCanonicalProvider(t *testing.T) {
if got := CanonicalProvider(" OpenRouter "); got != "openrouter" {
t.Fatalf("CanonicalProvider(openrouter) = %q", got)
}
- if got := CanonicalProvider(" "); got != "openai" {
+ if got := CanonicalProvider(" "); got != "ollama" {
t.Fatalf("CanonicalProvider(empty) = %q", got)
}
}
@@ -73,7 +73,7 @@ func TestDefaultModelForProvider_Fallbacks(t *testing.T) {
if got := DefaultModelForProvider(cfg, "openrouter"); got != "openrouter/auto" {
t.Fatalf("openrouter fallback = %q", got)
}
- if got := DefaultModelForProvider(cfg, "ollama"); got != "qwen3-coder:30b-a3b-q4_K_M" {
+ if got := DefaultModelForProvider(cfg, "ollama"); got != "kimi-k2.6" {
t.Fatalf("ollama fallback = %q", got)
}
if got := DefaultModelForProvider(cfg, "anthropic"); got != "claude-3-5-sonnet-20240620" {