diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-26 09:05:36 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-26 09:05:36 +0300 |
| commit | 017b355d6632ef9fbf162fa741e7dde366b2b2db (patch) | |
| tree | ee23cbde7c06cdff659820565b13be608eed49aa /config.toml.example | |
| parent | 4e59e25a4304a674a7c970bc371640cf0f73d3fd (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 'config.toml.example')
| -rw-r--r-- | config.toml.example | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/config.toml.example b/config.toml.example index 26e817a..4f7d26a 100644 --- a/config.toml.example +++ b/config.toml.example @@ -68,7 +68,18 @@ chat_prefixes = ["?", "!", ":", ";"] # single-character items # temperature = 0.6 [provider] -name = "openai" # openai | openrouter | anthropic | ollama +# Ollama Cloud (ollama.ai) is the recommended default. The API key is read +# from HEXAI_OLLAMA_API_KEY (falling back to OLLAMA_API_KEY). +name = "ollama" # ollama | openai | openrouter | anthropic + +[ollama] +model = "kimi-k2.6" +base_url = "https://ollama.com" +# To run against a local Ollama server instead, point at it and pick a local +# model. No API key is required when targeting localhost. +# model = "qwen3-coder:30b-a3b-q4_K_M" +# base_url = "http://localhost:11434" +temperature = 0.2 [openai] model = "gpt-4.1" @@ -80,16 +91,6 @@ model = "openrouter/auto" base_url = "https://openrouter.ai/api/v1" temperature = 0.2 -[ollama] -model = "qwen3-coder:30b-a3b-q4_K_M" -base_url = "http://localhost:11434" -# For Ollama Cloud (ollama.ai subscription), point at the cloud endpoint and -# export an API key in the environment. The key is optional: leave it unset -# for a local Ollama server. -# base_url = "https://ollama.com" -# export HEXAI_OLLAMA_API_KEY=... # or OLLAMA_API_KEY -temperature = 0.2 - [anthropic] model = "claude-3-5-sonnet-20241022" base_url = "https://api.anthropic.com/v1" |
