deepcode-ai 1.2.30 → 1.2.31

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",
@@ -2394,8 +2399,36 @@ function resolveModelExecutionProfile(provider, model) {
2394
2399
  toolCallStrategy: "native-with-xml-fallback"
2395
2400
  };
2396
2401
  }
2402
+ if (llamaFamily || mistralFamily) {
2403
+ return {
2404
+ toolSchemaMode: "compact",
2405
+ supportsRequiredToolChoice: false,
2406
+ toolCallStrategy: "native"
2407
+ };
2408
+ }
2409
+ if (phiFamily || yiFamily || gemmaFamily) {
2410
+ return {
2411
+ toolSchemaMode: "compact",
2412
+ supportsRequiredToolChoice: false,
2413
+ toolCallStrategy: "native-with-xml-fallback"
2414
+ };
2415
+ }
2416
+ if (provider === "ollama") {
2417
+ return {
2418
+ toolSchemaMode: "compact",
2419
+ supportsRequiredToolChoice: false,
2420
+ toolCallStrategy: "native-with-xml-fallback"
2421
+ };
2422
+ }
2423
+ if (provider === "groq") {
2424
+ return {
2425
+ toolSchemaMode: "compact",
2426
+ supportsRequiredToolChoice: false,
2427
+ toolCallStrategy: "native"
2428
+ };
2429
+ }
2397
2430
  return {
2398
- toolSchemaMode: provider === "openrouter" || provider === "opencode" ? "compact" : "full",
2431
+ toolSchemaMode: "compact",
2399
2432
  supportsRequiredToolChoice: false,
2400
2433
  toolCallStrategy: "native"
2401
2434
  };
@@ -11502,7 +11535,7 @@ function parseVersion(version) {
11502
11535
  if (!match) return null;
11503
11536
  return [Number(match[1]), Number(match[2]), Number(match[3])];
11504
11537
  }
11505
- var VERSION = "1.2.30".length > 0 ? "1.2.30" : "0.0.0-dev";
11538
+ var VERSION = "1.2.31".length > 0 ? "1.2.31" : "0.0.0-dev";
11506
11539
  async function updateCommand() {
11507
11540
  writeStdoutLine(`Current version: ${VERSION}`);
11508
11541
  const update = await checkForUpdate(VERSION, { force: true });