DeepSeekClientStream

Client for streaming interactions with the DeepSeek API.

This client specializes in handling streaming responses for real-time processing of DeepSeek API outputs, particularly useful for chat completions.

Types

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

Builder for configuring and creating DeepSeekClientStream instances.

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

Streams chat responses using default parameters and a message builder DSL.

Streams chat responses for a single user message.

Streams chat responses using default parameters.

Streams chat responses using custom parameters and a message builder DSL.

Streams chat responses using custom parameters and messages.

Link copied to clipboard

Sends a chat completion request to the DeepSeek API.

Streams a fully customizable chat completion request.

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
suspend fun DeepSeekClientStream.fim(prompt: String): Flow<FIMCompletion>

Streams FIM completions with default parameters.

suspend fun DeepSeekClientStream.fim(params: FIMCompletionParams, prompt: String): Flow<FIMCompletion>

Streams FIM completions using custom parameters and a prompt.

Link copied to clipboard

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

Streams a fully customizable FIM completion using a builder pattern.

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.