deepseek-toolkit 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,8 +95,41 @@ interface DeepSeekAssistantMessage {
95
95
  tool_calls?: OpenAI.Chat.Completions.ChatCompletionMessageToolCall[] | null;
96
96
  prefix?: boolean;
97
97
  }
98
- type ChatResponse = OpenAI.Chat.Completions.ChatCompletion;
99
- type StreamChunk = OpenAI.Chat.Completions.ChatCompletionChunk;
98
+ type ChatResponse = OpenAI.Chat.Completions.ChatCompletion & {
99
+ choices: (OpenAI.Chat.Completions.ChatCompletion.Choice & {
100
+ message: DeepSeekAssistantMessage;
101
+ })[];
102
+ };
103
+ /** Stream chunk with DeepSeek reasoning_content on the delta */
104
+ interface StreamChunk {
105
+ id: string;
106
+ model: string;
107
+ object: "chat.completion.chunk";
108
+ created: number;
109
+ choices: {
110
+ index: number;
111
+ delta: {
112
+ role?: string;
113
+ content?: string;
114
+ reasoning_content?: string;
115
+ tool_calls?: {
116
+ index?: number;
117
+ id?: string;
118
+ type?: "function";
119
+ function?: {
120
+ name?: string;
121
+ arguments?: string;
122
+ };
123
+ }[];
124
+ };
125
+ finish_reason: string | null;
126
+ }[];
127
+ usage?: {
128
+ prompt_tokens: number;
129
+ completion_tokens: number;
130
+ total_tokens: number;
131
+ };
132
+ }
100
133
 
101
134
  type SafeSearch = "off" | "moderate" | "strict";
102
135
  type Freshness = "pd" | "pw" | "pm" | "py";
@@ -95,8 +95,41 @@ interface DeepSeekAssistantMessage {
95
95
  tool_calls?: OpenAI.Chat.Completions.ChatCompletionMessageToolCall[] | null;
96
96
  prefix?: boolean;
97
97
  }
98
- type ChatResponse = OpenAI.Chat.Completions.ChatCompletion;
99
- type StreamChunk = OpenAI.Chat.Completions.ChatCompletionChunk;
98
+ type ChatResponse = OpenAI.Chat.Completions.ChatCompletion & {
99
+ choices: (OpenAI.Chat.Completions.ChatCompletion.Choice & {
100
+ message: DeepSeekAssistantMessage;
101
+ })[];
102
+ };
103
+ /** Stream chunk with DeepSeek reasoning_content on the delta */
104
+ interface StreamChunk {
105
+ id: string;
106
+ model: string;
107
+ object: "chat.completion.chunk";
108
+ created: number;
109
+ choices: {
110
+ index: number;
111
+ delta: {
112
+ role?: string;
113
+ content?: string;
114
+ reasoning_content?: string;
115
+ tool_calls?: {
116
+ index?: number;
117
+ id?: string;
118
+ type?: "function";
119
+ function?: {
120
+ name?: string;
121
+ arguments?: string;
122
+ };
123
+ }[];
124
+ };
125
+ finish_reason: string | null;
126
+ }[];
127
+ usage?: {
128
+ prompt_tokens: number;
129
+ completion_tokens: number;
130
+ total_tokens: number;
131
+ };
132
+ }
100
133
 
101
134
  type SafeSearch = "off" | "moderate" | "strict";
102
135
  type Freshness = "pd" | "pw" | "pm" | "py";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepseek-toolkit",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "DeepSeek API toolkit with built-in Brave Search — batteries-included wrapper for chat, tools, and web search",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",