deeper-cli 1.3.0 → 1.3.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 +49 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/chat-repl.ts +29 -1
- package/src/model/DeepSeekClient.ts +7 -1
- package/src/model/types.ts +1 -0
|
@@ -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> {
|
package/src/model/types.ts
CHANGED
|
@@ -82,6 +82,7 @@ export const SLASH_COMMANDS: SlashCommand[] = [
|
|
|
82
82
|
{ command: '/analyze [路径]', description: '项目架构分析' },
|
|
83
83
|
{ command: '/diff <文件>', description: '查看文件变更' },
|
|
84
84
|
{ command: '/undo', description: '撤销最近文件修改' },
|
|
85
|
+
{ command: '/delete [name]', description: '删除保存的会话' },
|
|
85
86
|
];
|
|
86
87
|
|
|
87
88
|
export type DeepSeekMessage = ChatMessage;
|