mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Fixes issue where providers like DeepSeek show "Unknown API error" instead of user-friendly messages for HTTP status codes like 402 (insufficient balance/payment required). Changes: - Modify handleProviderError to prefix error messages with HTTP status code (e.g., "402 - DeepSeek completion error: ...") when status >= 400 - This allows the UI (ChatRow.tsx) to parse the status code and display appropriate user-friendly messages from the localization files - Preserves existing behavior for custom messageTransformers and non-HTTP errors The UI already has localized messages for common HTTP status codes (400, 401, 402, 403, 429, 500) but they were not being shown because the error message format did not allow the UI to extract the status code. Closes #10016 |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| error-handler.ts | ||
| image-generation.ts | ||
| openai-error-handler.ts | ||
| router-tool-preferences.ts | ||
| timeout-config.ts | ||