Merge pull request #40 from Askhz/fix/login-tips

fix: 修复登录后"Not logged in"提示
This commit is contained in:
geroge 2026-04-28 14:26:40 +08:00 committed by GitHub
commit faa531f88b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,6 +117,8 @@ export function isAnthropicAuthEnabled(): boolean {
isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK) ||
isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX) ||
isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY) ||
isEnvTruthy(process.env.CLAUDE_CODE_USE_COSTRICT) ||
(settings as any).modelType === 'costrict' ||
(settings as any).modelType === 'openai' ||
(settings as any).modelType === 'gemini' ||
!!process.env.OPENAI_BASE_URL ||