litellm/litellm-rust/crates/inference-messages/tests
narmstrong-berry df621f4102
feat(messages): forward message threads on rust
The Rust path for anthropic /v1/messages dropped the thread body field, so
a create or continue turn reached Anthropic without its thread or the
message-threads-2026-08-12 beta. It now matches the Python handler from
#50976:

- the host forwards thread with the other body params
- a non-null thread adds the message-threads beta
- a well-formed continue turn keeps advisor blocks in history and derives
  no compaction, per-turn-control or tool-change beta from its messages
- the recorded httpx_response carries the request that was sent, for JSON
  and streamed calls, so the proxy's thread ownership hook resends the
  create turn's betas on a continue as it does for Python

Upstream error.details already reached the exception message unchanged, so
thread_not_found relays and keeps the deployment out of cooldown on both
paths. Parity cases cover create, continue, streaming, sync, retries,
thread_not_found and the ownership hook round trip.
2026-11-11 04:35:33 +00:00
..
bedrock_native fix(messages): pass non-message bodies through and refuse non-string headers as bad requests (#50422) 2026-11-10 00:24:20 +00:00
live fix(messages): pass non-message bodies through and refuse non-string headers as bad requests (#50422) 2026-11-10 00:24:20 +00:00
messages feat(messages): forward message threads on rust 2026-11-11 04:35:33 +00:00
openrouter refactor(rust): adopt one error discipline across litellm-rust with source chains and Report (#48042) 2026-10-28 09:22:11 -07:00
support feat(messages): retry rejected thinking signatures on rust 2026-11-11 03:09:23 +00:00
caching.rs feat(messages): serve response cache reads on rust 2026-11-11 03:09:23 +00:00
live.rs feat(rust): settle EdenAI Messages reported cost (#45698) 2026-10-12 17:39:08 -07:00