mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-09 17:42:08 +08:00
2.1.258 attaches x-client-request-id only when the base URL is api.anthropic.com. Since the helper check made this header optional, a helper that arrived without one gained a freshly generated UUID on a custom upstream. Attach it only for a first-party upstream or when the caller actually sent one, and otherwise keep the header absent as the real client would.