Deep Seek Client Base
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
Types
Functions
Link copied to clipboard
Sends a chat completion request to the DeepSeek API.
Link copied to clipboard
suspend fun DeepSeekClientBase.chatCompletionStream(request: ChatCompletionRequest): Flow<ChatCompletionChunk>
Streams chat completion responses chunk by chunk from the DeepSeek API.
Link copied to clipboard
Sends a Fill-In-the-Middle (FIM) completion request to the DeepSeek API.
Link copied to clipboard
suspend fun DeepSeekClientBase.fimCompletionStream(request: FIMCompletionRequest): Flow<FIMCompletion>
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.