deeper-cli 1.0.1 → 1.0.2
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/cli/index.js +2 -2
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/chat-repl.ts +2 -2
package/package.json
CHANGED
package/src/cli/chat-repl.ts
CHANGED
|
@@ -87,7 +87,7 @@ export async function startRepl(opts: ReplOptions): Promise<void> {
|
|
|
87
87
|
|
|
88
88
|
if (tcs.length > 0) {
|
|
89
89
|
stag = 0;
|
|
90
|
-
lh.push({ role: 'assistant', content: fc || null, reasoning_content:
|
|
90
|
+
lh.push({ role: 'assistant', content: fc || null, reasoning_content: th || undefined, tool_calls: tcs.map(t => ({ id: t.id, name: t.name, arguments: { ...t.args } })) });
|
|
91
91
|
for (const tc of tcs) {
|
|
92
92
|
const tool = tools.find(t => t.name === tc.name);
|
|
93
93
|
if (!tool) { lh.push({ role: 'tool', content: `Error: unknown ${tc.name}`, tool_call_id: tc.id }); continue; }
|
|
@@ -435,7 +435,7 @@ async function runLoop(
|
|
|
435
435
|
stagnation = 0;
|
|
436
436
|
Oflush();
|
|
437
437
|
const compactFc = fc && fc.length > 500 ? fc.replace(/\n/g, ' ').slice(0, 300) + '…' : fc;
|
|
438
|
-
history.push({ role: 'assistant', content: compactFc || null, reasoning_content: undefined, tool_calls: tcs.map(t => ({ id: t.id, name: t.name, arguments: { ...t.args } })) });
|
|
438
|
+
history.push({ role: 'assistant', content: compactFc || null, reasoning_content: th || undefined, tool_calls: tcs.map(t => ({ id: t.id, name: t.name, arguments: { ...t.args } })) });
|
|
439
439
|
fc = ''; th = '';
|
|
440
440
|
let doneTools = 0;
|
|
441
441
|
|