In this article
Test thinking-block serialization and replay, plus length-limited null content; gateway success must preserve message structure without inventing a visible final answer.
LiteLLM v1.111.0-dev.4 fixes Rust-gateway chat completions failing when Claude returns a thinking block and refusing that reply when replayed in a later turn. The November 15 prerelease aligns this path with the Python proxy. Applications should test complete message round trips, including a length-limited response with no visible answer, rather than treating every HTTP-success response as a completed task.
Use deterministic returned content blocks
A harmless provider fixture can return signed thinking followed by visible text. Capture the gateway’s normalized message and compare relevant fields with the supported Python path. Do not evaluate this serialization check by asking a real model a supposedly difficult question; whether the model chooses thinking can vary. A fixed response isolates the adapter behavior that the release corrects and makes missing fields observable.
The next request is part of compatibility
Feed the normalized assistant message back with a synthetic follow-up and inspect the outgoing provider request. A first response can succeed while the round trip fails because the gateway rejects its own added fields. Preserve tool-call associations where present. Test only the destination protocols the application supports and record them explicitly; compatibility with one replay route does not establish every cross-provider message conversion.
Length termination can have no answer text
Return a synthetic length-limited response that ends during thinking with null visible content. Assert the client records incomplete answer availability rather than a fabricated empty success. A valid gateway response describes the provider outcome, not necessarily a usable application result. Keep finish reason, content presence and task acceptance as separate fields so orchestration can choose a bounded continuation or report the limitation honestly.
Cost survives a corrected delivery path
Inspect usage and spend records for the same synthetic response before interpreting an apparent fall in gateway errors. The provider may have performed work even when the old adapter returned failure. The release corrects delivery and replay, not model capability or billing policy. A reviewable trial preserves the returned structure, next-turn acceptance and honest incomplete-state handling, with request identities sufficient to reconcile any charged attempt.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.