How a provider's API is reached: the defaults every request takes.
Value parameters
- backoff
-
The wait before sending a request again where the provider asks for none, doubling each time, less up to half at random, and else added up to once at random to the wait it asks for.
- baseUrl
-
The origin to send requests to, or
Nonefor the provider's own. - key
-
The API key, or
Nonefor the provider's own environment variable, such asANTHROPIC_API_KEY, read when a service is made. - maxRetries
-
The most times a request is sent again after the first, where the provider refuses or fails it for now:
0sends each once. - patience
-
The longest a request is waited out in all, after which its last refusal is given.
- timeout
-
The longest a request is waited for: a whole response from sending it to reading it, and each next part of a streamed one.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any