Skip to main content

Module reqwest_client

Module reqwest_client 

Source

Structs§

ReqwestClient
Native reqwest-based transport.

Functions§

client_from_env
Production constructor — reads DEEPSEEK_API_KEY (and optionally DEEPSEEK_BASE_URL) from the environment.
reason
Thin wrapper that builds a ChatRequest for deepseek-reasoner and calls client.chat().
reason_with_retry
Wrapper around reason with exponential backoff: 3 attempts, 1s → 2s → 4s. Only retries on 5xx / network errors, not 4xx.