fix: 将 costrict 加入 is3P 判断,消除登录后"Not logged in"提示

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Askhz 2026-04-28 09:57:59 +08:00
parent fc78a84ccf
commit 03bb5aaf01

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 ||