• keh4l's avatar
    fix(gateway): use full beta list in buildUpstreamRequest mimicry path · 165553cf
    keh4l authored
    The previous commit added FullClaudeCodeMimicryBetas() but the two
    call sites in buildUpstreamRequest still hardcoded the old 3-token
    subset. Anthropic now checks the complete set of beta tokens to
    decide if a request qualifies as Claude Code. Wire them up:
    
      - /v1/messages mimic path: requiredBetas = FullClaudeCodeMimicryBetas()
      - /v1/messages/count_tokens mimic path: same + BetaTokenCounting
    
    Haiku models keep the 2-token exemption (BetaOAuth + InterleaveThinking).
    165553cf
gateway_service.go 309 KB