com.softinio.verdict4s.algebra.ClientConfig
See theClientConfig companion object
final case class ClientConfig(model: Option[Model] = ..., retry: RetryPolicy = ..., requestTimeout: FiniteDuration = ...)
Settings a client applies to every request.
Deliberately carries no base URL. org.http4s.Uri is not available in the effect-free core, and holding the address as a String here would push a parse failure into the happy path at runtime; the base URL comes from the vendor's com.softinio.verdict4s.Vendor or the client's constructor.
Value parameters
- model
-
the model used when a request does not name one;
Noneuses the vendor's own default (jev-latestfor Jev,gpt-6-lunafor OpenAI) - requestTimeout
-
ceiling on one HTTP attempt, from sending to having read the body. Exceeding it fails the call with a com.softinio.verdict4s.Verdict4sError.Transport, and is not retried.
- retry
-
how to back off and retry
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
In this article