This repository has been archived on 2026-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
ollie-core/pkg/backend
Levi Neely 45a094f46e backend: add ContextLength, Models, and auto-compaction
- Add ContextLength(ctx) int to Backend interface; each backend fetches
  from its API (OpenAI /v1/models, Ollama /api/show, CodeWhisperer
  ListAvailableModels) with caching. Falls back to 128k default.
- Add Models(ctx) []string to Backend interface for model discovery.
- Add /models command to list available models.
- Auto-compact before each turn when estimated tokens >= 75% of context length.
2026-04-10 19:35:44 +02:00
..
anthropic.go backend: add ContextLength, Models, and auto-compaction 2026-04-10 19:35:44 +02:00
backend.go backend: add ContextLength, Models, and auto-compaction 2026-04-10 19:35:44 +02:00
codewhisperer.go backend: add ContextLength, Models, and auto-compaction 2026-04-10 19:35:44 +02:00
codewhisperer_internal.go backend: add ContextLength, Models, and auto-compaction 2026-04-10 19:35:44 +02:00
copilot.go refactor: promote backend/config to pkg/, extract TUI to ollie-tui 2026-04-09 22:05:35 +02:00
new.go refactor: promote backend/config to pkg/, extract TUI to ollie-tui 2026-04-09 22:05:35 +02:00
ollama.go backend: add ContextLength, Models, and auto-compaction 2026-04-10 19:35:44 +02:00
openai.go backend: add ContextLength, Models, and auto-compaction 2026-04-10 19:35:44 +02:00