promptimizer-cli 0.1.45 → 0.1.46
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/bin/promptimizer.mjs +2 -2
- package/package.json +1 -1
package/bin/promptimizer.mjs
CHANGED
|
@@ -462,11 +462,11 @@ async function cmdConnect(flags, positional) {
|
|
|
462
462
|
);
|
|
463
463
|
if (!found) die(`Unknown provider "${provider}". Run promptimizer providers, or pass --base-url.`);
|
|
464
464
|
if (!vendorKey && found.env && process.env[found.env]) vendorKey = process.env[found.env];
|
|
465
|
-
if (!vendorKey
|
|
465
|
+
if (!vendorKey) {
|
|
466
466
|
die(`Missing API key for ${found.label}. Pass --key or set ${found.env}.`);
|
|
467
467
|
}
|
|
468
468
|
label = label || found.label;
|
|
469
|
-
} else if (!vendorKey
|
|
469
|
+
} else if (!vendorKey) {
|
|
470
470
|
die("Missing provider key. Pass --key.");
|
|
471
471
|
}
|
|
472
472
|
|