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/dist/cli/index.js CHANGED
@@ -4049,7 +4049,13 @@ var init_DeepSeekClient = __esm({
4049
4049
  }));
4050
4050
  body.tool_choice = "auto";
4051
4051
  }
4052
- return JSON.stringify(body);
4052
+ return JSON.stringify({
4053
+ ...body,
4054
+ messages: body.messages.map((m) => {
4055
+ if (m.role === "tool" && !m.name) m.name = "tool";
4056
+ return m;
4057
+ })
4058
+ });
4053
4059
  }
4054
4060
  async makeRequest(config, body) {
4055
4061
  const url = `${config.baseUrl}/v1/chat/completions`;