Files
new-api/relay
RedwindA 767a82b876 fix(claude): forward thinking.block_binding and every anthropic-beta value (#7732)
Claude requests are decoded into dto.Thinking, which had no block_binding
field, so thinking.block_binding.prefix_mismatch_behavior: "drop_block"
was dropped before reaching the upstream. Multi-turn conversations whose
system prompt or tools change then failed with "The block is bound to a
different conversation".

- Thinking keeps block_binding verbatim and round-trips thinking fields
  it does not model yet.
- When a model reasoning suffix re-renders thinking as adaptive, restore
  the client's block_binding; never add one the client did not send.
- Forward every anthropic-beta header line as one comma-separated value,
  and trim entries in the Bedrock anthropic_beta list.
2026-10-12 19:06:04 +08:00
..