mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-16 05:20:22 +08:00
Claude Code v2.1.156+ sends `context_management` on every request. The direct Anthropic API accepts it, but Vertex AI rawPredict rejects it with HTTP 400 "Extra inputs are not permitted". The inference proxy was only stripping the `model` field for Vertex routes; extend it to also strip Anthropic-SDK-only beta fields listed in VERTEX_UNSUPPORTED_BODY_FIELDS. Fixes #2444 Signed-off-by: Adel Zaalouk <azaalouk@redhat.com>