mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 12:55:51 +00:00
fix: 尝试修复第三方 api 不兼容部分参数问题
This commit is contained in:
@@ -26,7 +26,7 @@ import { has1mContext } from './context.js'
|
|||||||
import { isEnvDefinedFalsy, isEnvTruthy } from './envUtils.js'
|
import { isEnvDefinedFalsy, isEnvTruthy } from './envUtils.js'
|
||||||
import { getCanonicalName } from './model/model.js'
|
import { getCanonicalName } from './model/model.js'
|
||||||
import { get3PModelCapabilityOverride } from './model/modelSupportOverrides.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'
|
import { getInitialSettings } from './settings/settings.js'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -213,7 +213,8 @@ export function getToolSearchBetaHeader(): string {
|
|||||||
export function shouldIncludeFirstPartyOnlyBetas(): boolean {
|
export function shouldIncludeFirstPartyOnlyBetas(): boolean {
|
||||||
return (
|
return (
|
||||||
(getAPIProvider() === 'firstParty' || getAPIProvider() === 'foundry') &&
|
(getAPIProvider() === 'firstParty' || getAPIProvider() === 'foundry') &&
|
||||||
!isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)
|
!isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS) &&
|
||||||
|
isFirstPartyAnthropicBaseUrl()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user