We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff13524 commit 6f5b70eCopy full SHA for 6f5b70e
packages/opencode/src/provider/error.ts
@@ -23,6 +23,9 @@ export namespace ProviderError {
23
/request entity too large/i, // HTTP 413
24
/context length is only \d+ tokens/i, // vLLM
25
/input length.*exceeds.*context length/i, // vLLM
26
+ /prompt too long; exceeded (?:max )?context length/i, // Ollama explicit overflow error
27
+ /too large for model with \d+ maximum context length/i, // Mistral
28
+ /model_context_window_exceeded/i, // z.ai non-standard finish_reason surfaced as error text
29
]
30
31
function isOpenAiErrorRetryable(e: APICallError) {
0 commit comments