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.
- package/dist/types/index.d.cts +35 -2
- package/dist/types/index.d.ts +35 -2
- package/package.json +1 -1
package/dist/types/index.d.cts
CHANGED
|
@@ -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
|
-
|
|
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/dist/types/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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