org.llm4s.llmconnect.config.DeepSeekConfig
See theDeepSeekConfig companion object
case class DeepSeekConfig(apiKey: String, model: String, baseUrl: String, contextWindow: Int, reserveCompletion: Int) extends ProviderConfig
Configuration for the DeepSeek API.
Prefer DeepSeekConfig.fromValues over the primary constructor; it resolves contextWindow and reserveCompletion automatically, and logs a warning for unknown or legacy model names.
Value parameters
- apiKey
-
DeepSeek API key; redacted in
toString. - baseUrl
-
API base URL; defaults to DeepSeekConfig.DEFAULT_BASE_URL.
- contextWindow
-
Model's total token capacity (prompt + completion combined).
- model
-
Model identifier, e.g.
"deepseek-chat"or"deepseek-reasoner". - reserveCompletion
-
Tokens held back from prompt history for the completion.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ProviderConfigclass Objecttrait Matchableclass Any
Members list
In this article