Settings
org.llm4s.llmconnect.provider.OpenAICompatibleClient.Settings
final case class Settings(providerName: String, displayName: String, model: String, baseUrl: String, apiKey: Option[String], contextWindow: Int, reserveCompletion: Int)
Where an OpenAICompatibleClient sends requests, and how it describes itself.
Value parameters
- apiKey
-
sent as
Authorization: Bearer <key>;Nonesends noAuthorizationheader. - baseUrl
-
API base URL; requests go to
<baseUrl>/chat/completions. - contextWindow
-
the model's total token capacity.
- displayName
-
human-readable name used in log lines and the "already closed" error, e.g.
"DeepSeek". - model
-
model identifier sent in every request.
- providerName
-
metrics and exchange-log label, and the provider named in mapped HTTP errors, e.g.
"deepseek". - reserveCompletion
-
tokens held back from the prompt for the reply.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article