DeepSeekClientBase

abstract class DeepSeekClientBase(val client: HttpClient, val config: DeepSeekClientConfig) : AutoCloseable

Base class for DeepSeek API clients providing core functionality.

This abstract class serves as a foundation for both standard and streaming DeepSeek clients, handling HTTP interactions and common configuration.

Inheritors

Constructors

Link copied to clipboard
constructor(client: HttpClient, config: DeepSeekClientConfig)

Types

Link copied to clipboard
abstract class Builder(token: String? = null)

Base builder class for configuring DeepSeek clients.

Properties

Link copied to clipboard
val client: HttpClient

The underlying HTTP client used for API requests

Link copied to clipboard

Configuration options for the DeepSeek client

Functions

Link copied to clipboard

Sends a chat completion request to the DeepSeek API.

Link copied to clipboard

Streams chat completion responses chunk by chunk from the DeepSeek API.

Link copied to clipboard
open override fun close()

Closes the underlying HTTP client and releases resources.

Link copied to clipboard

Sends a Fill-In-the-Middle (FIM) completion request to the DeepSeek API.

Link copied to clipboard

Streams Fill-In-the-Middle (FIM) completions chunk by chunk from the DeepSeek API.

Link copied to clipboard

Retrieves the list of available DeepSeek AI models.

Link copied to clipboard

Retrieves the current user's available API credits and usage information.