litellm/tests/rust-python-harness/strategies/e2e_parity
maciej-berri 10cb9eb213
fix(vertex_ai): replace a labels header Python cannot encode instead of failing
With vertex_request_label_fields set, the proxy replaces every caller X-Vertex-AI-Labels, so Python
never encodes the caller's value and the call succeeds. The host's ASCII check held such a value back
first and failed the call with 'ascii' codec can't encode. For vertex_ai with label fields set, the
check now leaves the labels header to the replacement (dropping a value that is not text). Unset,
the header is still held back and fails as on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bne5zQXAS7BUJoh6pGX7NQ
2026-11-17 07:00:12 +00:00
..
sdk fix(vertex_ai): replace a labels header Python cannot encode instead of failing 2026-11-17 07:00:12 +00:00
__init__.py test(messages): add rust vs python messages parity characterization suite (#49610) 2026-11-02 21:02:52 -08:00
AGENTS.md refactor(tests): restructure rust python harness around strategy definitions (#39628) 2026-09-03 21:15:01 -07:00
reporting.py refactor(tests): restructure rust python harness around strategy definitions (#39628) 2026-09-03 21:15:01 -07:00
runner.py refactor(tests): restructure rust python harness around strategy definitions (#39628) 2026-09-03 21:15:01 -07:00
test_runner.py refactor(tests): restructure rust python harness around strategy definitions (#39628) 2026-09-03 21:15:01 -07:00