deeper-cli 1.2.2 → 1.2.3
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
package/src/cli/chat-repl.ts
CHANGED
|
@@ -945,7 +945,11 @@ After writing or editing code files, ALWAYS verify the changes:
|
|
|
945
945
|
id: t.id, type: 'function', function: { name: t.name, arguments: JSON.stringify(t.arguments) },
|
|
946
946
|
}));
|
|
947
947
|
if (m.tool_call_id) e.tool_call_id = m.tool_call_id;
|
|
948
|
-
if (m.
|
|
948
|
+
if (m.role === 'tool') {
|
|
949
|
+
e.name = m.name || 'tool';
|
|
950
|
+
} else if (m.name) {
|
|
951
|
+
e.name = m.name;
|
|
952
|
+
}
|
|
949
953
|
r.push(e);
|
|
950
954
|
}
|
|
951
955
|
return r;
|
|
@@ -202,7 +202,9 @@ export class DeepSeekClient {
|
|
|
202
202
|
if (m.tool_call_id) {
|
|
203
203
|
msg.tool_call_id = m.tool_call_id;
|
|
204
204
|
}
|
|
205
|
-
if (m.
|
|
205
|
+
if (m.role === 'tool') {
|
|
206
|
+
msg.name = m.name || 'tool';
|
|
207
|
+
} else if (m.name) {
|
|
206
208
|
msg.name = m.name;
|
|
207
209
|
}
|
|
208
210
|
const rc = m.reasoning_content || m.thinking;
|