File tree Expand file tree Collapse file tree
packages/opencode/src/provider Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,14 +13,16 @@ export namespace ProviderError {
1313 / i n p u t t o k e n c o u n t .* e x c e e d s t h e m a x i m u m / i, // Google (Gemini)
1414 / m a x i m u m p r o m p t l e n g t h i s \d + / i, // xAI (Grok)
1515 / r e d u c e t h e l e n g t h o f t h e m e s s a g e s / i, // Groq
16- / m a x i m u m c o n t e x t l e n g t h i s \d + t o k e n s / i, // OpenRouter, DeepSeek
16+ / m a x i m u m c o n t e x t l e n g t h i s \d + t o k e n s / i, // OpenRouter, DeepSeek, vLLM
1717 / e x c e e d s t h e l i m i t o f \d + / i, // GitHub Copilot
1818 / e x c e e d s t h e a v a i l a b l e c o n t e x t s i z e / i, // llama.cpp server
1919 / g r e a t e r t h a n t h e c o n t e x t l e n g t h / i, // LM Studio
2020 / c o n t e x t w i n d o w e x c e e d s l i m i t / i, // MiniMax
2121 / e x c e e d e d m o d e l t o k e n l i m i t / i, // Kimi For Coding, Moonshot
2222 / c o n t e x t [ _ ] l e n g t h [ _ ] e x c e e d e d / i, // Generic fallback
2323 / r e q u e s t e n t i t y t o o l a r g e / i, // HTTP 413
24+ / c o n t e x t l e n g t h i s o n l y \d + t o k e n s / i, // vLLM
25+ / i n p u t l e n g t h .* e x c e e d s .* c o n t e x t l e n g t h / i, // vLLM
2426 ]
2527
2628 function isOpenAiErrorRetryable ( e : APICallError ) {
You can’t perform that action at this time.
0 commit comments