litellm/tests/rust-python-harness
narmstrong-berry cded9b5b49
fix(messages): match python's api key encoding, malformed api_base and string provider header errors on rust
A header value Python's client cannot encode as ASCII now fails before the send
whichever header carries it, so a caller api_key with a non-ASCII character
raises Python's InternalServerError instead of a raw UnicodeEncodeError after
the reply. A caller api_base without an http(s) scheme, or with whitespace,
control or non-ASCII characters, is sent through Python's client at the URL
Python builds, so its relative-URL and invalid-URL errors match, and a base
urlsplit cannot split raises Python's bare ValueError before the send. A
provider_specific_header of the wrong shape is scoped through Python's
ProviderSpecificHeaderUtils first, so a plain string raises Python's
AttributeError.
2026-11-11 20:31:16 +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 test: move 76 live top-level tests to offline unit and integration coverage (#45352) 2026-10-08 10:33:35 -07:00
strategies fix(messages): match python's api key encoding, malformed api_base and string provider header errors on rust 2026-11-11 20:31:16 +00:00
__init__.py refactor(tests): restructure rust python harness around strategy definitions (#39628) 2026-09-03 21:15:01 -07:00
__main__.py test: add interactive Rust Python parity harness (#39419) 2026-09-02 15:51:08 -07:00
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