mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
This commit is contained in:
parent
d820c2335b
commit
925d747b9d
13 changed files with 40 additions and 382 deletions
|
|
@ -16,18 +16,6 @@ export const validateAuthMethod = (authMethod: string): string | null => {
|
|||
return null;
|
||||
}
|
||||
|
||||
if (authMethod === AuthType.LOGIN_WITH_GOOGLE_GCA) {
|
||||
if (!process.env['GOOGLE_CLOUD_PROJECT']) {
|
||||
return (
|
||||
'[Error] GOOGLE_CLOUD_PROJECT is not set.\n' +
|
||||
'Please set it using:\n' +
|
||||
' export GOOGLE_CLOUD_PROJECT=<your-project-id>\n' +
|
||||
'and try again.'
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
if (authMethod === AuthType.USE_GEMINI) {
|
||||
if (!process.env['GEMINI_API_KEY']) {
|
||||
return 'GEMINI_API_KEY environment variable not found. Add that to your environment and try again (no reload needed if using .env)!';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue