DeepSeekConfig

org.llm4s.llmconnect.config.DeepSeekConfig
See theDeepSeekConfig companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(apiKey: String, model: String, baseUrl: String, contextWindow: Int, reserveCompletion: Int, timeouts: ProviderTimeouts): DeepSeekConfig

Builds a config without validating it; fromValues validates and resolves the context window from the model. Every field after model has a default.

Builds a config without validating it; fromValues validates and resolves the context window from the model. Every field after model has a default.

Attributes

def apply(apiKey: String, model: String): DeepSeekConfig

The API key and model, every other field at its default: the entry point for Java and Kotlin, which do not see Scala default arguments. Set the rest with the with* setters.

The API key and model, every other field at its default: the entry point for Java and Kotlin, which do not see Scala default arguments. Set the rest with the with* setters.

Attributes

def fromValues(modelName: String, apiKey: String, baseUrl: String)(using resolver: ContextWindowResolver): Result[DeepSeekConfig]

Constructs a DeepSeekConfig, resolving contextWindow and reserveCompletion from the model name automatically.

Constructs a DeepSeekConfig, resolving contextWindow and reserveCompletion from the model name automatically.

Unknown or legacy model names produce a warning log but still succeed, falling back to a conservative 128K context window.

Value parameters

apiKey

DeepSeek API key; must be non-empty.

baseUrl

API base URL; must be non-empty. Defaults to DeepSeekConfig.DEFAULT_BASE_URL when loaded via org.llm4s.config.Llm4sConfig.

modelName

Model identifier; see DeepSeek API docs for the current allowlist ("deepseek-chat", "deepseek-reasoner").

Attributes

Concrete fields

val DEFAULT_BASE_URL: String

The context window apply uses when none is given; fromValues resolves the model's own.

The context window apply uses when none is given; fromValues resolves the model's own.

Attributes

The completion reserve apply uses when none is given; fromValues resolves the model's own.

The completion reserve apply uses when none is given; fromValues resolves the model's own.

Attributes