DEV Community · LLM· Davidrs·· 7d agoAI Score67
Why Ollama’s 4,096-Token Context Breaks OpenCode Tool Calls
OpenCode + Ollama does nothing? It's the 4,096-token context
AI Takeaway
Ollama’s 4,096-token context silently truncated OpenCode inputs. In a test with OpenCode 1.19.5 and Ollama 0.40.14, a 22,207-token request was cut to 2,051 tokens. With both configured for 32,768 tokens, no truncation occurred and gemma4:12b wrote the requested file in 27 seconds.
Source: DEV Community · LLM · dev.to