File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/opencode/src/provider Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,13 @@ export namespace ProviderError {
1212 / 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)
1313 / 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)
1414 / 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
15- / 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
15+ / 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
1616 / e x c e e d s t h e l i m i t o f \d + / i, // GitHub Copilot
1717 / 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
1818 / 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
1919 / 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
20- / 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
20+ / 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
2121 / c o n t e x t [ _ ] l e n g t h [ _ ] e x c e e d e d / i, // Generic fallback
22- / t o o m a n y t o k e n s / i, // Generic fallback
23- / t o k e n l i m i t e x c e e d e d / i, // Generic fallback
2422 ]
2523
2624 function isOpenAiErrorRetryable ( e : APICallError ) {
You can’t perform that action at this time.
0 commit comments