Deep Seek Client Stream
fun DeepSeekClientStream(token: String? = null, block: DeepSeekClientStream.Builder.() -> Unit = {}): DeepSeekClientStream
Creates a new instance of DeepSeekClientStream with optional configuration.
This constructor function creates a streaming-capable client for receiving real-time responses from the DeepSeek API, with optional advanced configuration.
Example:
// Simple streaming client with API token
val streamClient = DeepSeekClientStream("your-api-token")
// Stream client with custom configuration
val customStreamClient = DeepSeekClientStream("your-api-token") {
fimCompletionTimeout(90000)
}
Content copied to clipboard
Return
A new DeepSeekClientStream instance
Parameters
token
The DeepSeek API token for authentication
block
Configuration block for additional customization