fix(anthropic): preserve requested tool change beta headers

This commit is contained in:
Achord Chan
2026-10-03 10:34:06 +08:00
parent b8dece9000
commit 852f0f824f
3 changed files with 79 additions and 7 deletions
+3
View File
@@ -20,6 +20,9 @@ const (
BetaFastMode = "fast-mode-2026-02-01"
// Legacy structured output compatibility; forwarded only when explicitly requested.
BetaStructuredOutputs = "structured-outputs-2025-11-13"
// Tool-change compatibility tokens; never enabled without an explicit client request.
BetaMidConversationToolChanges = "mid-conversation-tool-changes-2026-07-01"
BetaInlineTools = "inline-tools-2026-09-15"
// 新增(对齐官方 CLI 2.1.9x 以来的流量)
BetaPromptCachingScope = "prompt-caching-scope-2026-01-05"