1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! DeepSeek V4 provider — OpenAI-compatible with thinking-mode support.
//!
//! DeepSeek V4 returns `reasoning_content` alongside `content`. When tool
//! calls are present, the API **requires** that `reasoning_content` is
//! round-tripped in subsequent requests (otherwise HTTP 400). This provider
//! stores reasoning as [`ContentPart::Thinking`] and re-emits it.
use Result;
use Client;