Builder

abstract class Builder(token: String? = null)

Base builder class for configuring DeepSeek clients.

Provides common configuration options that apply to all DeepSeek client types.

Parameters

token

The DeepSeek API token for authentication

Inheritors

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.