ds-api 0.10.7

A Rust client library for the DeepSeek API with support for chat completions, streaming, and tools
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct Thinking {
    /// If set to `enabled`, the thinking (reasoning) mode will be used. If set to `disabled`, the non-thinking mode will be used.
    pub r#type: ThinkingType,
}

#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum ThinkingType {
    Disabled,
    Enabled,
}