litellm/tests/unit/rust_bridge
Mateo Wang 0a3b24bfab
fix(responses): drop Gemini thought signatures from items replayed to non-Gemini providers (#55725)
* fix(responses): drop Gemini thought signatures from items replayed to non-Gemini providers

* fix(responses): strip Gemini signatures on WebSocket frames and token counts, keep them for litellm_proxy

A litellm_proxy deployment keeps the signed ids, since the LiteLLM behind it strips them for the deployment it routes to. A signed item sent to a non-Gemini provider now drops provider_specific_fields whole, since no native Responses provider accepts that field. Responses WebSocket frames and the OpenAI native /v1/responses/input_tokens count get the same strip.

* fix(rust_bridge): keep Responses calls with Gemini-signed input on Python

The Responses input_rewrite detector now runs the same thought signature strip as the Python handler, so a request whose replayed items carry a Gemini signature for a non-Gemini target is flagged as rewritten input.
2026-12-02 20:49:33 +00:00
..
host test(rust_bridge): hold the refused proxy port for the whole unreachable proxy test (#55613) 2026-12-02 00:13:10 +00:00
messages feat(messages): serve bedrock invoke messages on rust only (#51330) 2026-11-15 16:58:31 -08:00
ocr refactor(rust): rename the compiled module _native to _rust (#55198) 2026-12-01 07:08:38 -08:00
trace
__init__.py
AGENTS.md refactor(rust-bridge): decide native routing in the catalog, drop the bypass predicates (#46750) 2026-10-20 15:06:24 -07:00
native_route_wheel_test.py refactor(rust): rename the compiled module _native to _rust (#55198) 2026-12-01 07:08:38 -08:00
stubtest.ini
test_bindings.py refactor(rust): rename the compiled module _native to _rust (#55198) 2026-12-01 07:08:38 -08:00
test_catalog.py feat(messages): serve bedrock claude_platform messages on rust only (#52681) 2026-11-19 14:34:02 -08:00
test_clickhouse.py
test_configuration.py ci(unit): cut unit check time with cheaper per-test resets and fewer non-unit tests (#51864) 2026-11-14 15:41:30 -08:00
test_detectors.py fix(responses): drop Gemini thought signatures from items replayed to non-Gemini providers (#55725) 2026-12-02 20:49:33 +00:00
test_execution.py refactor(rust-bridge): return an unstarted Execution from native entrypoints and drive it in Python (#46299) 2026-10-14 17:50:44 -07:00
test_failures.py
test_fork_guard.py refactor(rust-bridge): require the native extension (#48852) 2026-10-28 13:16:56 -07:00
test_logger.py refactor(rust): rename the compiled module _native to _rust (#55198) 2026-12-01 07:08:38 -08:00
test_public_call.py fix(rust): run native async calls through python's async wrapper steps (#50423) 2026-11-10 00:24:20 +00:00
test_runtime.py refactor(rust): rename the compiled module _native to _rust (#55198) 2026-12-01 07:08:38 -08:00
test_token_counter.py refactor(rust): rename the compiled module _native to _rust (#55198) 2026-12-01 07:08:38 -08:00
test_tokenizer.py
test_verify_linux_native_wheel.py refactor(rust): rename the compiled module _native to _rust (#55198) 2026-12-01 07:08:38 -08:00