deepcode-ai 1.2.30 → 1.2.32

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
@@ -2352,6 +2352,11 @@ function resolveModelExecutionProfile(provider, model) {
2352
2352
  const miniMaxFamily = normalized2.includes("minimax");
2353
2353
  const deepSeekFamily = normalized2.includes("deepseek");
2354
2354
  const reasonerFamily = matchesAny(normalized2, ["reasoner", "thinking"]);
2355
+ const llamaFamily = normalized2.includes("llama");
2356
+ const mistralFamily = matchesAny(normalized2, ["mistral", "mixtral", "devstral", "codestral"]);
2357
+ const phiFamily = normalized2.includes("phi");
2358
+ const yiFamily = matchesAny(normalized2, ["yi-", "/yi"]);
2359
+ const gemmaFamily = normalized2.includes("gemma");
2355
2360
  if (provider === "anthropic") {
2356
2361
  return {
2357
2362
  toolSchemaMode: "full",
@@ -2367,6 +2372,12 @@ function resolveModelExecutionProfile(provider, model) {
2367
2372
  };
2368
2373
  }
2369
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
+ }
2370
2381
  return {
2371
2382
  toolSchemaMode: reasonerFamily ? "minimal" : "compact",
2372
2383
  supportsRequiredToolChoice: false,
@@ -2394,8 +2405,36 @@ function resolveModelExecutionProfile(provider, model) {
2394
2405
  toolCallStrategy: "native-with-xml-fallback"
2395
2406
  };
2396
2407
  }
2408
+ if (llamaFamily || mistralFamily) {
2409
+ return {
2410
+ toolSchemaMode: "compact",
2411
+ supportsRequiredToolChoice: false,
2412
+ toolCallStrategy: "native"
2413
+ };
2414
+ }
2415
+ if (phiFamily || yiFamily || gemmaFamily) {
2416
+ return {
2417
+ toolSchemaMode: "compact",
2418
+ supportsRequiredToolChoice: false,
2419
+ toolCallStrategy: "native-with-xml-fallback"
2420
+ };
2421
+ }
2422
+ if (provider === "ollama") {
2423
+ return {
2424
+ toolSchemaMode: "compact",
2425
+ supportsRequiredToolChoice: false,
2426
+ toolCallStrategy: "native-with-xml-fallback"
2427
+ };
2428
+ }
2429
+ if (provider === "groq") {
2430
+ return {
2431
+ toolSchemaMode: "compact",
2432
+ supportsRequiredToolChoice: false,
2433
+ toolCallStrategy: "native"
2434
+ };
2435
+ }
2397
2436
  return {
2398
- toolSchemaMode: provider === "openrouter" || provider === "opencode" ? "compact" : "full",
2437
+ toolSchemaMode: "compact",
2399
2438
  supportsRequiredToolChoice: false,
2400
2439
  toolCallStrategy: "native"
2401
2440
  };
@@ -6380,6 +6419,8 @@ function normalizeProviderModelId(providerId, model) {
6380
6419
  }
6381
6420
  function shouldDisableDeepSeekThinking(model) {
6382
6421
  const normalized2 = model?.toLowerCase() ?? "";
6422
+ if (normalized2.includes("v4-pro")) return false;
6423
+ if (normalized2.includes("v4-flash")) return true;
6383
6424
  return !normalized2.includes("reasoner") && !normalized2.includes("thinking");
6384
6425
  }
6385
6426
  function shouldDisableProxiedDeepSeekThinking(model) {
@@ -11502,7 +11543,7 @@ function parseVersion(version) {
11502
11543
  if (!match) return null;
11503
11544
  return [Number(match[1]), Number(match[2]), Number(match[3])];
11504
11545
  }
11505
- var VERSION = "1.2.30".length > 0 ? "1.2.30" : "0.0.0-dev";
11546
+ var VERSION = "1.2.32".length > 0 ? "1.2.32" : "0.0.0-dev";
11506
11547
  async function updateCommand() {
11507
11548
  writeStdoutLine(`Current version: ${VERSION}`);
11508
11549
  const update = await checkForUpdate(VERSION, { force: true });