deepcode-ai 1.2.32 → 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 +15 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2402,7 +2402,7 @@ function resolveModelExecutionProfile(provider, model) {
|
|
|
2402
2402
|
return {
|
|
2403
2403
|
toolSchemaMode: "compact",
|
|
2404
2404
|
supportsRequiredToolChoice: false,
|
|
2405
|
-
toolCallStrategy: "native
|
|
2405
|
+
toolCallStrategy: "native"
|
|
2406
2406
|
};
|
|
2407
2407
|
}
|
|
2408
2408
|
if (llamaFamily || mistralFamily) {
|
|
@@ -6214,10 +6214,7 @@ var ProviderManager = class {
|
|
|
6214
6214
|
defaultModel: resolveConfiguredModelForProvider(config, "opencode"),
|
|
6215
6215
|
config: config.providers.opencode,
|
|
6216
6216
|
normalizeModelId: (model) => normalizeProviderModelId("opencode", model),
|
|
6217
|
-
buildRequestBody: (body, context) => (
|
|
6218
|
-
...body,
|
|
6219
|
-
thinking: shouldDisableProxiedDeepSeekThinking(context.model) ? { type: "disabled" } : void 0
|
|
6220
|
-
})
|
|
6217
|
+
buildRequestBody: (body, context) => buildOpenCodeRequestBody(body, context.model)
|
|
6221
6218
|
})
|
|
6222
6219
|
);
|
|
6223
6220
|
this.register(
|
|
@@ -6446,6 +6443,18 @@ function shouldDisableGroqQwenReasoning(model) {
|
|
|
6446
6443
|
const normalized2 = model?.toLowerCase() ?? "";
|
|
6447
6444
|
return normalized2.includes("qwen3");
|
|
6448
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
|
+
}
|
|
6449
6458
|
var AuditLogger = class {
|
|
6450
6459
|
constructor(worktree) {
|
|
6451
6460
|
this.worktree = worktree;
|
|
@@ -11543,7 +11552,7 @@ function parseVersion(version) {
|
|
|
11543
11552
|
if (!match) return null;
|
|
11544
11553
|
return [Number(match[1]), Number(match[2]), Number(match[3])];
|
|
11545
11554
|
}
|
|
11546
|
-
var VERSION = "1.2.
|
|
11555
|
+
var VERSION = "1.2.33".length > 0 ? "1.2.33" : "0.0.0-dev";
|
|
11547
11556
|
async function updateCommand() {
|
|
11548
11557
|
writeStdoutLine(`Current version: ${VERSION}`);
|
|
11549
11558
|
const update = await checkForUpdate(VERSION, { force: true });
|