Builder

class Builder(token: String? = null) : DeepSeekClientBase.Builder

Builder for configuring and creating DeepSeekClient instances.

Prefer the DeepSeekClient top-level function, which creates this builder, applies the configuration block, and calls build for you.

Parameters

token

The DeepSeek API token for authentication; null skips the Auth plugin setup and is typically only useful when httpClient replaces the underlying client

Constructors

Link copied to clipboard
constructor(token: String? = null)

Functions

Link copied to clipboard

Overrides the base URL of the DeepSeek API.

Link copied to clipboard

Sets the timeout for chat completion requests.

Link copied to clipboard

Sets the timeout for file-in-the-middle completion requests.

Link copied to clipboard
fun httpClient(client: HttpClient): DeepSeekClientBase.Builder

Replaces the underlying HTTP client entirely with the provided client.

fun httpClient(block: HttpClientConfig<*>.() -> Unit): DeepSeekClientBase.Builder

Applies additional configuration on top of the default HTTP client.

Link copied to clipboard
fun jsonConfig(block: JsonBuilder.() -> Unit): DeepSeekClientBase.Builder

Configures the JSON serialization and deserialization settings.

Replaces the JSON configuration with the provided instance.

Link copied to clipboard

Enables and configures HTTP request/response logging.