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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deeper-cli",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "DeeperCode - 一句话生成完整项目的 AI Agentic CLI 工具",
5
5
  "type": "module",
6
6
  "bin": {
@@ -240,7 +240,13 @@ export class DeepSeekClient {
240
240
  body.tool_choice = 'auto';
241
241
  }
242
242
 
243
- return JSON.stringify(body);
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> {