@kody-ade/kody-engine-lite 0.1.123 → 0.1.125
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/bin/cli.js +12 -7
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -1087,6 +1087,11 @@ function generateLitellmConfig(provider, modelMap) {
|
|
|
1087
1087
|
entries.push(` model: ${provider}/${providerModel}`);
|
|
1088
1088
|
entries.push(` api_key: os.environ/${apiKeyVar}`);
|
|
1089
1089
|
}
|
|
1090
|
+
if (provider !== "anthropic" && provider !== "claude") {
|
|
1091
|
+
entries.push("");
|
|
1092
|
+
entries.push("litellm_settings:");
|
|
1093
|
+
entries.push(" drop_params: true");
|
|
1094
|
+
}
|
|
1090
1095
|
return entries.join("\n") + "\n";
|
|
1091
1096
|
}
|
|
1092
1097
|
function generateLitellmConfigFromStages(defaultConfig, stages) {
|
|
@@ -1114,6 +1119,12 @@ function generateLitellmConfigFromStages(defaultConfig, stages) {
|
|
|
1114
1119
|
entries.push(` model: ${provider}/${model}`);
|
|
1115
1120
|
entries.push(` api_key: os.environ/${apiKeyVar}`);
|
|
1116
1121
|
}
|
|
1122
|
+
const hasNonClaude = proxyModels.some((m) => m.provider !== "anthropic" && m.provider !== "claude");
|
|
1123
|
+
if (hasNonClaude) {
|
|
1124
|
+
entries.push("");
|
|
1125
|
+
entries.push("litellm_settings:");
|
|
1126
|
+
entries.push(" drop_params: true");
|
|
1127
|
+
}
|
|
1117
1128
|
return entries.join("\n") + "\n";
|
|
1118
1129
|
}
|
|
1119
1130
|
async function tryStartLitellm(url, projectDir, generatedConfig) {
|
|
@@ -6163,13 +6174,7 @@ async function main() {
|
|
|
6163
6174
|
const taskAction = resolveForIssue(input.issueNumber, projectDir);
|
|
6164
6175
|
logger.info(`Task action: ${taskAction.action}`);
|
|
6165
6176
|
if (taskAction.action === "already-completed") {
|
|
6166
|
-
logger.info(`Issue #${input.issueNumber} already completed (task ${taskAction.taskId})`);
|
|
6167
|
-
if (!input.local) {
|
|
6168
|
-
try {
|
|
6169
|
-
postComment(input.issueNumber, `\u2705 Issue #${input.issueNumber} already completed (task \`${taskAction.taskId}\`)`);
|
|
6170
|
-
} catch {
|
|
6171
|
-
}
|
|
6172
|
-
}
|
|
6177
|
+
logger.info(`Issue #${input.issueNumber} already completed (task ${taskAction.taskId}) \u2014 skipping silently`);
|
|
6173
6178
|
process.exit(0);
|
|
6174
6179
|
}
|
|
6175
6180
|
if (taskAction.action === "already-running") {
|