deepcode-ai 1.2.31 → 1.2.33

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/index.js CHANGED
@@ -2372,6 +2372,12 @@ function resolveModelExecutionProfile(provider, model) {
2372
2372
  };
2373
2373
  }
2374
2374
  if (provider === "deepseek") {
2375
+ if (normalized2.includes("v4-pro")) {
2376
+ return { toolSchemaMode: "minimal", supportsRequiredToolChoice: false, toolCallStrategy: "native" };
2377
+ }
2378
+ if (normalized2.includes("v4-flash")) {
2379
+ return { toolSchemaMode: "compact", supportsRequiredToolChoice: false, toolCallStrategy: "native" };
2380
+ }
2375
2381
  return {
2376
2382
  toolSchemaMode: reasonerFamily ? "minimal" : "compact",
2377
2383
  supportsRequiredToolChoice: false,
@@ -2396,7 +2402,7 @@ function resolveModelExecutionProfile(provider, model) {
2396
2402
  return {
2397
2403
  toolSchemaMode: "compact",
2398
2404
  supportsRequiredToolChoice: false,
2399
- toolCallStrategy: "native-with-xml-fallback"
2405
+ toolCallStrategy: "native"
2400
2406
  };
2401
2407
  }
2402
2408
  if (llamaFamily || mistralFamily) {
@@ -6208,10 +6214,7 @@ var ProviderManager = class {
6208
6214
  defaultModel: resolveConfiguredModelForProvider(config, "opencode"),
6209
6215
  config: config.providers.opencode,
6210
6216
  normalizeModelId: (model) => normalizeProviderModelId("opencode", model),
6211
- buildRequestBody: (body, context) => ({
6212
- ...body,
6213
- thinking: shouldDisableProxiedDeepSeekThinking(context.model) ? { type: "disabled" } : void 0
6214
- })
6217
+ buildRequestBody: (body, context) => buildOpenCodeRequestBody(body, context.model)
6215
6218
  })
6216
6219
  );
6217
6220
  this.register(
@@ -6413,6 +6416,8 @@ function normalizeProviderModelId(providerId, model) {
6413
6416
  }
6414
6417
  function shouldDisableDeepSeekThinking(model) {
6415
6418
  const normalized2 = model?.toLowerCase() ?? "";
6419
+ if (normalized2.includes("v4-pro")) return false;
6420
+ if (normalized2.includes("v4-flash")) return true;
6416
6421
  return !normalized2.includes("reasoner") && !normalized2.includes("thinking");
6417
6422
  }
6418
6423
  function shouldDisableProxiedDeepSeekThinking(model) {
@@ -6438,6 +6443,18 @@ function shouldDisableGroqQwenReasoning(model) {
6438
6443
  const normalized2 = model?.toLowerCase() ?? "";
6439
6444
  return normalized2.includes("qwen3");
6440
6445
  }
6446
+ function buildOpenCodeRequestBody(body, model) {
6447
+ const next = { ...body };
6448
+ const normalized2 = model?.toLowerCase() ?? "";
6449
+ if (normalized2.includes("kimi") && typeof next.max_tokens === "number") {
6450
+ next.max_completion_tokens = next.max_tokens;
6451
+ delete next.max_tokens;
6452
+ }
6453
+ if (shouldDisableProxiedDeepSeekThinking(model)) {
6454
+ next.thinking = { type: "disabled" };
6455
+ }
6456
+ return next;
6457
+ }
6441
6458
  var AuditLogger = class {
6442
6459
  constructor(worktree) {
6443
6460
  this.worktree = worktree;
@@ -11535,7 +11552,7 @@ function parseVersion(version) {
11535
11552
  if (!match) return null;
11536
11553
  return [Number(match[1]), Number(match[2]), Number(match[3])];
11537
11554
  }
11538
- var VERSION = "1.2.31".length > 0 ? "1.2.31" : "0.0.0-dev";
11555
+ var VERSION = "1.2.33".length > 0 ? "1.2.33" : "0.0.0-dev";
11539
11556
  async function updateCommand() {
11540
11557
  writeStdoutLine(`Current version: ${VERSION}`);
11541
11558
  const update = await checkForUpdate(VERSION, { force: true });