-
released this
2026-05-08 23:50:12 +02:00 | 257 commits to main since this releaseError Handling for Model Providers
Graceful error handling when model provider calls fail.
Features:
- Try/catch around provider API calls
- Error messages persisted as assistant messages
- Provider metadata tracked on failures
- Latency captured for all requests (success/failure)
Exception Types:
- ModelProviderException - Provider errors
- RequestTimeoutException - Timeout foundation
Behavior:
- User message always saved first
- Error message: '⚠️ Model provider error: [details]'
- Full context preserved (provider ID, model, latency)
- Exception propagated for API error responses
Future:
- Per-provider timeout configuration
- Retry with exponential backoff
- Fallback provider chains
- Circuit breaker pattern
Part of v1.4.0 Chat Runtime milestone (step 6/7).
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads