Deep Seek Client Base
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.
The client is designed to be long-lived: create one instance and reuse it for the lifetime of your application. The underlying HTTP client automatically releases idle connections and threads, so calling close is usually unnecessary.
Inheritors
Types
Functions
Sends a chat completion request to the DeepSeek API.
Streams chat completion responses chunk by chunk from the DeepSeek API.
Closes the underlying HTTP client and suspends until its coroutine scope completes.
Sends a Fill-In-the-Middle (FIM) completion request to the DeepSeek API.
Streams Fill-In-the-Middle (FIM) completions chunk by chunk from the DeepSeek API.
Retrieves the list of DeepSeek models available for the current API key.
Retrieves the current user's available API balance.