mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-28 08:44:41 +08:00
60fdc38e6b
- Streamline header blacklist by removing overly aggressive filtering (browser-specific headers like sec-fetch-*, accept-language) - Ensure anthropic-beta header always includes 'claude-code-20250219' marker required by upstream services for request validation - Centralize anthropic-version header handling in forwarder to prevent duplicate headers across different auth strategies - Add ?beta=true query parameter to /v1/messages endpoint for compatibility with certain upstream services (e.g., DuckCoding) - Remove redundant anthropic-version from ClaudeAdapter auth headers as it's now managed exclusively by the forwarder This improves proxy reliability with various Claude API endpoints and third-party services that have specific header requirements.