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 75f137dda5 backend/kiro: port fixes from goq amzcodewhisp
- Switch endpoint from q.*.amazonaws.com to runtime.*.kiro.dev
- Use management.*.kiro.dev for ListModels
- Fix content encoding: plain string instead of json.RawMessage
- Fix tool results: always use text field (upstream rejects bare JSON primitives)
- Normalize tool call arguments (deduplicate keys)
- Expand retry conditions: add 502, 503, 408, InsufficientModelCapacity
- Add SQLite busy-timeout and Go-level retry for lock contention
- Add 30s refresh timeout and fullLoad before refresh
- Add SSO cache fallback for token refresh
- Add jitter to token expiry checks
- Add sqliteHasNewUsableAccessToken for cross-process recovery
- Add envState to current message
- Update user-agent strings to 1.3.15/2.5.1
- Set X-Amzn-Codewhisperer-Optout to true
- Add reasoning/thinking support (additionalModelRequestFields)
- Add counter-thinking tags on user messages before assistants
- Handle reasoningContentEvent in stream
2026-07-10 11:43:18 +02:00
..
anthropic.go backend: add ContentBlock/ImageSource types and multi-modal image encoding for Anthropic and OpenAI 2026-05-25 17:08:18 +02:00
anthropic_stream_test.go backend: add tests for image ContentBlock encoding (Anthropic + OpenAI) 2026-05-25 18:06:01 +02:00
backend.go fix: round-trip reasoning_content for DeepSeek thinking models 2026-05-28 19:04:03 +02:00
backend_test.go agent: retry on transient backend errors and mid-stream drops 2026-04-27 17:54:27 +02:00
codewhisperer.go backend/kiro: port fixes from goq amzcodewhisp 2026-07-10 11:43:18 +02:00
codewhisperer_internal.go backend/kiro: port fixes from goq amzcodewhisp 2026-07-10 11:43:18 +02:00
codewhisperer_test.go backend/kiro: exponential backoff on ThrottlingException 2026-05-23 14:45:29 +02:00
copilot.go backend: fix copilot API paths 2026-05-21 19:43:23 +02:00
gemini.go backend: add gemini backend (Google AI Studio / OpenAI-compat) 2026-05-21 17:04:52 +00:00
new.go strip quotes from env vars 2026-05-21 19:12:56 +02:00
new_test.go fix TestBackends: expect gemini in backend list 2026-05-21 19:07:39 +02:00
ollama.go add generation params: top_p, top_k, min_p, top_a, repetition_penalty, max_completion_tokens, response_format, reasoning_effort, include_reasoning, stop, verbosity 2026-05-16 23:54:04 +02:00
ollama_stream_test.go backend: extract parseOllamaContextLength, 100% coverage 2026-04-21 15:39:52 +02:00
openai.go fix: round-trip reasoning_content for DeepSeek thinking models 2026-05-28 19:04:03 +02:00
openai_encode_test.go backend: add tests for image ContentBlock encoding (Anthropic + OpenAI) 2026-05-25 18:06:01 +02:00
openai_stream_test.go backend: extract stream parsers, shared HTTP, url.URL, comprehensive tests 2026-04-21 15:32:03 +02:00
openai_test.go backend: extract stream parsers, shared HTTP, url.URL, comprehensive tests 2026-04-21 15:32:03 +02:00
testhelper_test.go backend: extract stream parsers, shared HTTP, url.URL, comprehensive tests 2026-04-21 15:32:03 +02:00