fix: add claude-code-20250219 beta header to match claude-code

This commit is contained in:
ashisgreat22 2026-04-15 08:19:08 +00:00
parent 8e282db13a
commit 4d2ccfdaaa

View file

@ -41,7 +41,7 @@ func ClaudeCodeHeaders(apiKey, sessionID string) map[string]string {
"x-api-key": apiKey,
"x-app": "cli",
"anthropic-version": "2023-06-01",
"anthropic-beta": "interleaved-thinking-2025-05-14,prompt-caching-scope-2026-01-05,context-management-2025-06-27",
"anthropic-beta": "claude-code-20250219,interleaved-thinking-2025-05-14,prompt-caching-scope-2026-01-05,context-management-2025-06-27,redact-thinking-2026-02-12",
"X-Claude-Code-Session-Id": sessionID,
"content-type": "application/json",
}