From d136872cc9ee0dffeb5fb691b47a9b4b3f2628f5 Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Fri, 1 May 2026 09:21:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=20api=20=E4=B8=8D=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=8F=82=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/betas.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/betas.ts b/src/utils/betas.ts index 2a0fc25a3..86c8123b5 100644 --- a/src/utils/betas.ts +++ b/src/utils/betas.ts @@ -26,7 +26,7 @@ import { has1mContext } from './context.js' import { isEnvDefinedFalsy, isEnvTruthy } from './envUtils.js' import { getCanonicalName } from './model/model.js' import { get3PModelCapabilityOverride } from './model/modelSupportOverrides.js' -import { getAPIProvider } from './model/providers.js' +import { getAPIProvider, isFirstPartyAnthropicBaseUrl } from './model/providers.js' import { getInitialSettings } from './settings/settings.js' /** @@ -213,7 +213,8 @@ export function getToolSearchBetaHeader(): string { export function shouldIncludeFirstPartyOnlyBetas(): boolean { return ( (getAPIProvider() === 'firstParty' || getAPIProvider() === 'foundry') && - !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS) + !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS) && + isFirstPartyAnthropicBaseUrl() ) }