providerStreamIdleTimeout top-level constant
Duration
const providerStreamIdleTimeout
Idle watchdog for provider streams: with no bytes for this long the endpoint is considered wedged — the stream errors (and the roles resolver may fail over) instead of hanging the turn forever. Generous on purpose: reasoning models may think long BETWEEN chunks (kimi-k3 thinks for minutes), so this only trips on a truly silent connection.
Implementation
const providerStreamIdleTimeout = Duration(minutes: 5);