fix(gateway): stop default redact thinking beta injection

This commit is contained in:
shaw
2026-05-07 18:56:11 +08:00
parent e872cbec0b
commit 57fd7998d3
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -75,6 +75,7 @@ const CLICurrentVersion = "2.1.92"
// - OAuth 账号 + 非 haiku:追加这整份列表,再按需保留 client 带来的 beta。
// - OAuth 账号 + haikuAnthropic 对 haiku 不做 third-party 判定,使用 HaikuBetaHeader 即可。
// - API-key 账号:不要使用本函数,参见 APIKeyBetaHeader。
// - 不默认加入 redact-thinking,避免上游抹除 thinking 内容;客户端显式传入时由合并逻辑保留。
func FullClaudeCodeMimicryBetas() []string {
return []string{
BetaClaudeCode,
@@ -82,7 +83,6 @@ func FullClaudeCodeMimicryBetas() []string {
BetaInterleavedThinking,
BetaPromptCachingScope,
BetaEffort,
BetaRedactThinking,
BetaContextManagement,
BetaExtendedCacheTTL,
}