You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quando si usa OpenCode con Ollama come provider locale, ottengo l'errore:
"Invalid argument for parameter maxOutputTokens: maxOutputTokens must be >= 1"
Configurazione
OpenCode version: 1.4.2
Ollama version: 0.20.4
Modello usato: qwen2.5:1.5b
Sistema: Windows 10 (8GB RAM)
Passi per riprodurre
Avviare Ollama con ollama serve
Configurare OpenCode per usare Ollama come provider locale
Avviare OpenCode con opencode
Inviare un messaggio
Errore dal log
ERROR service=session.processor error=Invalid argument for parameter maxOutputTokens: maxOutputTokens must be >= 1
Note
Il modello funziona correttamente con chiamate dirette API a Ollama
La versione online di OpenCode funziona perfettamente
Please review that issue and check if the fix there resolves your problem. If your issue is different or the fix did not work for you, please add more details explaining how your situation differs.
Activity
github-actions commentedon Apr 10, 2026
This issue might be a duplicate of an existing issue. Please check:
Please review that issue and check if the fix there resolves your problem. If your issue is different or the fix did not work for you, please add more details explaining how your situation differs.
Jedeiah commentedon Apr 11, 2026
@rekram1-node I'd like to work on this fix. Can I take this?
github-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.