mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix: unset GEMINI_API_KEY env var if empty (#7214)
This commit is contained in:
@@ -227,6 +227,14 @@ export async function main() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Empty key causes issues with the GoogleGenAI package.
|
||||||
|
if (process.env['GEMINI_API_KEY']?.trim() === '') {
|
||||||
|
delete process.env['GEMINI_API_KEY'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (process.env['GOOGLE_API_KEY']?.trim() === '') {
|
||||||
|
delete process.env['GOOGLE_API_KEY'];
|
||||||
|
}
|
||||||
|
|
||||||
setMaxSizedBoxDebugging(config.getDebugMode());
|
setMaxSizedBoxDebugging(config.getDebugMode());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user