mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-04 02:52:55 +08:00
- Introduced a new `provider_stream_idle_timeout` configuration to manage idle timeouts for provider streams. - Enhanced error handling in the `ProviderRouter` to include specific timeout errors for both request and stream idle scenarios. - Updated the `AnthropicProvider` and `OpenAiChatProvider` to utilize the new error handling functions for improved SSE error reporting. - Added tests to verify the correct behavior of timeout handling and error extraction from provider events.