litellm/litellm-rust/crates/inference-messages/tests/live
Nate Armstrong ee032f10d6
fix(messages): pass non-message bodies through and refuse non-string headers as bad requests (#50422)
Python's messages transform takes any JSON object from a 200 response and only adds stop_sequence, so a provider answering 200 with an error object reaches the client as 200 and the router counts a success. The native decoder turned it into a 500 APIConnectionError and a router failure. A JSON object that is not a message now passes through unchanged

A non-string extra_headers or deployment header value surfaced from the native handler as an APIConnectionError. It is now refused as an invalid request when the headers are collected, before the provider request is built or logged, so the caller gets a 400 BadRequestError naming the header and its type
2026-11-10 00:24:20 +00:00
..
edenai.rs feat(rust): settle EdenAI Messages reported cost (#45698) 2026-10-12 17:39:08 -07:00
support.rs fix(messages): pass non-message bodies through and refuse non-string headers as bad requests (#50422) 2026-11-10 00:24:20 +00:00
vertex_ai.rs test(rust): add Messages live provider harness (#45823) 2026-10-12 17:39:08 -07:00