litellm/tests/rust-python-harness
maciej-berri f0a7bf4096
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 08:58:32 +00:00
..
cli test: move 76 live top-level tests to offline unit and integration coverage (#45352) 2026-10-08 10:33:35 -07:00
shared chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
strategies fix(vertex_ai): replace a labels header Python cannot encode instead of failing 2026-11-17 08:58:32 +00:00
__init__.py refactor(tests): restructure rust python harness around strategy definitions (#39628) 2026-09-03 21:15:01 -07:00
__main__.py
AGENTS.md test(rust): add native vs Python parity harness for responses (#46567) 2026-10-18 20:52:33 -07:00
conftest.py wip 2026-09-14 11:48:24 -07:00