Client-construction options for LLMConnect.
This lets library users opt into runtime behaviors such as metrics, provider exchange logging and their own HTTP transport without folding those concerns into org.llm4s.llmconnect.config.ProviderConfig.
Build one with LlmClientOptions.apply (or start from LlmClientOptions.default) and change it with the with* setters; the constructor and copy are private, so a new option never breaks callers.
Value parameters
- exchangeLogging
-
whether, and where, provider request/response exchanges are logged; disabled by default
- httpClient
-
the HTTP client an SDK-free provider sends its requests through instead of building its own;
None(the default) builds one from the section's proxy and TLS settings. The caller owns a supplied client: closing the LLM client does not close it, and the section'snetworksettings do not apply to it. A provider whoseProviderFeatures.customHttpClientisfalse(the default; the SDK-based ones keep it) ignores it. - metrics
-
collector the client reports request metrics to; no-op by default
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any