deeper-cli 1.3.0 → 1.3.1
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/package.json
CHANGED
|
@@ -240,7 +240,13 @@ export class DeepSeekClient {
|
|
|
240
240
|
body.tool_choice = 'auto';
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
return JSON.stringify(
|
|
243
|
+
return JSON.stringify({
|
|
244
|
+
...body,
|
|
245
|
+
messages: (body.messages as Array<Record<string, unknown>>).map(m => {
|
|
246
|
+
if (m.role === 'tool' && !m.name) m.name = 'tool';
|
|
247
|
+
return m;
|
|
248
|
+
}),
|
|
249
|
+
});
|
|
244
250
|
}
|
|
245
251
|
|
|
246
252
|
private async makeRequest(config: DeepSeekConfig, body: string): Promise<Response> {
|