Files
sausheongandClaude 9d338dd370 Anthropic: provider from SDK request options; Sonnet 5.5 reasoning off sends between_tools
- NewAnthropicProviderWithOptions builds a provider from Anthropic SDK request options, for
  gateways NewAnthropicProvider can't express: a bearer token (option.WithAuthToken) instead of
  X-Api-Key, or no anthropic-version header (option.WithHeaderDel).
- Sonnet 5.5 rejects thinking {type:"disabled"} with a 400; with reasoning off it now gets
  {type:"between_tools"}. Sonnet 5 keeps disabled.

Co-Authored-By: Claude <[email protected]>
2026-10-27 11:32:26 +08:00
..