Expand description
Provider HTTP retry logic.
Wraps outbound API calls (Z.AI, OpenAI, etc.) with infinite-retry
exponential backoff so transient overload / rate-limit / 5xx errors
never terminate an agentic session. Used by provider complete and
complete_stream implementations in super::zai.
Functionsยง
- send_
response_ with_ retry - Send a streaming request with automatic retry on transient HTTP errors.
- send_
with_ retry - Send an HTTP request with automatic retry on transient errors.