Skip to main content

Module deepseek

Module deepseek 

Source
Expand description

DeepSeek API client and Rig integration

§Example

use rig::providers::deepseek;

let client = deepseek::Client::new("DEEPSEEK_API_KEY");

let deepseek_chat = client.completion_model(deepseek::DEEPSEEK_CHAT);

Structs§

Choice
CompletionModel
The struct implementing the CompletionModel trait
CompletionResponse
The response shape from the DeepSeek API
CompletionTokensDetails
DeepSeekExt
DeepSeekExtBuilder
DeepSeekModelLister
ModelLister implementation for the DeepSeek API (GET /models).
Function
PromptTokensDetails
StreamingCompletionResponse
StreamingDelta
ToolCall
ToolDefinition
Usage

Enums§

Message
ToolType

Constants§

DEEPSEEK_CHATDeprecated
DEEPSEEK_REASONERDeprecated
DEEPSEEK_V4_FLASH
DEEPSEEK_V4_PRO

Functions§

send_compatible_streaming_request

Type Aliases§

Client
ClientBuilder