swarm-code 0.1.12 → 0.1.13
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.
|
@@ -599,7 +599,9 @@ async function cmdConfigure(config, resolved, rl) {
|
|
|
599
599
|
else if (val.startsWith("google/") || val.startsWith("gemini"))
|
|
600
600
|
requiredProvider = "google";
|
|
601
601
|
const check = requiredProvider ? keyChecks[requiredProvider] : undefined;
|
|
602
|
-
|
|
602
|
+
const envVal = check ? process.env[check.env] : undefined;
|
|
603
|
+
const hasRealKey = envVal && envVal !== "ollama-local";
|
|
604
|
+
if (check && !hasRealKey) {
|
|
603
605
|
out.write(`\n ${dim(`${requiredProvider} requires an API key (${check.url})`)}\n`);
|
|
604
606
|
const key = await ask(` ${coral(symbols.arrow)} ${check.env}: `);
|
|
605
607
|
if (key) {
|
package/package.json
CHANGED