@orchagent/cli 0.3.20 → 0.3.21
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/commands/run.js +6 -1
- package/package.json +1 -1
package/dist/commands/run.js
CHANGED
|
@@ -315,10 +315,15 @@ async function executePromptLocally(agentData, inputData, skillPrompts = [], con
|
|
|
315
315
|
throw new errors_1.CliError(`No LLM key found for: ${providers}\n` +
|
|
316
316
|
`Set an environment variable (e.g., OPENAI_API_KEY), run 'orchagent keys add <provider>', or configure in web dashboard`);
|
|
317
317
|
}
|
|
318
|
+
// Warn if --model specified without --provider and multiple providers available
|
|
319
|
+
if (modelOverride && !providerOverride && allProviders.length > 1) {
|
|
320
|
+
process.stderr.write(`Warning: --model specified without --provider. The model '${modelOverride}' will be used for all ${allProviders.length} fallback providers, which may cause errors if the model is incompatible.\n` +
|
|
321
|
+
`Consider specifying --provider to ensure correct model/provider pairing.\n\n`);
|
|
322
|
+
}
|
|
318
323
|
// Apply agent default models to each provider config
|
|
319
324
|
const providersWithModels = allProviders.map((p) => ({
|
|
320
325
|
...p,
|
|
321
|
-
model: modelOverride || agentData.default_models?.[p.provider] || p.
|
|
326
|
+
model: modelOverride || p.model || agentData.default_models?.[p.provider] || (0, llm_1.getDefaultModel)(p.provider),
|
|
322
327
|
}));
|
|
323
328
|
// Show which provider is being used (primary)
|
|
324
329
|
const primary = providersWithModels[0];
|