mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 17:27:54 +00:00
feat: add explicit license selection and status visibility (#6751)
This commit is contained in:
@@ -16,6 +16,18 @@ 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)!';
|
||||
|
||||
Reference in New Issue
Block a user