ollie/backend
Ollie Agent 2c26a7fb9c backend: add backends.conf for per-backend configuration
Each backend is now configured via ~/.config/ollie/backends.conf:

    [openrouter]
    key = sk-or-v1-...
    model = qwen/qwen3-235b-a22b

    [anthropic]
    key = sk-ant-...

Each backend knows its own default URL (openrouter → openrouter.ai/api,
anthropic → api.anthropic.com, etc). Only key and optional model needed.

Env vars (OLLIE_OPENAI_KEY, OLLIE_ANTHROPIC_KEY, etc) still work as
fallback for backward compatibility, but backends.conf is the canonical
config path going forward.

- Delete openAIName() (URL no longer determines backend identity)
- Delete geminiKey() (config handles fallback)
- Install template with mode 600 (contains API keys)
- Only install template if user hasn't created their own
2026-08-08 16:25:47 +02:00
..
anthropic.go all: delete dead code, tighten API surface 2026-08-08 15:51:13 +02:00
anthropic_stream_test.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
backend.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
backend_test.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
codewhisperer.go all: delete dead code, tighten API surface 2026-08-08 15:51:13 +02:00
codewhisperer_internal.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
codewhisperer_test.go fix(backend): strip tool blocks when no tools defined 2026-08-03 15:58:29 +02:00
config.go backend: add backends.conf for per-backend configuration 2026-08-08 16:25:47 +02:00
copilot.go all: delete dead code, tighten API surface 2026-08-08 15:51:13 +02:00
gemini.go backend: add backends.conf for per-backend configuration 2026-08-08 16:25:47 +02:00
new.go backend: add backends.conf for per-backend configuration 2026-08-08 16:25:47 +02:00
new_test.go backend: add backends.conf for per-backend configuration 2026-08-08 16:25:47 +02:00
ollama.go all: delete dead code, tighten API surface 2026-08-08 15:51:13 +02:00
ollama_stream_test.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
oneshot.go Good idea fairy cleanup: ~960 lines removed 2026-08-05 21:51:55 +02:00
openai.go all: delete dead code, tighten API surface 2026-08-08 15:51:13 +02:00
openai_encode_test.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
openai_stream_test.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
openai_test.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
pool.go all: delete dead code, tighten API surface 2026-08-08 15:51:13 +02:00
testhelper_test.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00