@kody-ade/kody-engine-lite 0.1.72 → 0.1.73
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/README.md +1 -1
- package/dist/bin/cli.js +4 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -144,7 +144,7 @@ Add the provider's API key to `.env`:
|
|
|
144
144
|
ANTHROPIC_COMPATIBLE_API_KEY=your-key-here
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
-
That's it. Kody auto-starts the LiteLLM proxy and loads API keys from `.env`. For
|
|
147
|
+
That's it. Kody auto-starts the LiteLLM proxy and loads API keys from `.env`. For per-tier model control, configure `modelMap` in `kody.config.json`. [Full LiteLLM guide →](docs/LITELLM.md)
|
|
148
148
|
|
|
149
149
|
## Commands
|
|
150
150
|
|
package/dist/bin/cli.js
CHANGED
|
@@ -3445,17 +3445,12 @@ function generateLitellmConfig(provider, modelMap) {
|
|
|
3445
3445
|
return entries.join("\n") + "\n";
|
|
3446
3446
|
}
|
|
3447
3447
|
async function tryStartLitellm(url, projectDir, generatedConfig) {
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
if (fs19.existsSync(manualConfigPath)) {
|
|
3451
|
-
configPath = manualConfigPath;
|
|
3452
|
-
} else if (generatedConfig) {
|
|
3453
|
-
configPath = path18.join(os.tmpdir(), "kody-litellm-config.yaml");
|
|
3454
|
-
fs19.writeFileSync(configPath, generatedConfig);
|
|
3455
|
-
} else {
|
|
3456
|
-
logger.warn("litellm-config.yaml not found and no provider configured \u2014 cannot start proxy");
|
|
3448
|
+
if (!generatedConfig) {
|
|
3449
|
+
logger.warn("No provider configured in kody.config.json \u2014 cannot start LiteLLM proxy");
|
|
3457
3450
|
return null;
|
|
3458
3451
|
}
|
|
3452
|
+
const configPath = path18.join(os.tmpdir(), "kody-litellm-config.yaml");
|
|
3453
|
+
fs19.writeFileSync(configPath, generatedConfig);
|
|
3459
3454
|
const portMatch = url.match(/:(\d+)/);
|
|
3460
3455
|
const port = portMatch ? portMatch[1] : "4000";
|
|
3461
3456
|
let litellmFound = false;
|