litellm/tests/unit/responses
mateo-berri bd0b5b46a7
Some checks are pending
LiteLLM Rust / rust-lint (push) Waiting to run
LiteLLM Rust / rust-test (push) Waiting to run
LiteLLM Rust / rust-wheel (push) Waiting to run
fix(nodecode): keep completion-time off-peak billing by default and bill weekend long-prompt cache reads
off_peak_pricing goes back to pricing a request at its completion time. A block
opts into start-time pricing with "priced_at": "request_start", which only the
two Nodecode rows set. The logging hook now records the call start in its own
context instead of pinning the billing clock, and prompt-caching savings follow
the same per-row clock

An off_peak_pricing block may now carry prompt-token band keys such as
cache_read_input_token_cost_above_262144_tokens. The highest crossed band wins,
then the block's flat rate, then the standard rate, with the provider's usual
threshold edge. Nodecode Cyber v1 gets its weekend long-prompt cached rate

OffPeakPricing and ModelInfoBase declare the new keys, the cost map schemas
allow them, and nodecode joins the chat-route providers in the wire test

The Responses MCP loop no longer chains previous_response_id for providers
whose config forces store false (Nodecode, Parasail), through a new
stores_responses() hook on the Responses provider config
2026-12-02 18:11:08 -08:00
..
litellm_completion_transformation fix(responses): ignore hosted items when counting resent replies and keep the stored input key on replay 2026-11-30 11:39:07 -08:00
mcp fix(nodecode): keep completion-time off-peak billing by default and bill weekend long-prompt cache reads 2026-12-02 18:11:08 -08:00
__init__.py
test_additional_tools.py
test_custom_tool_call.py
test_dispatch.py refactor(python-bridge): ship a signature base and read the resolved call (#45450) 2026-10-08 17:20:29 -07:00
test_metadata_codex_callback.py
test_no_duplicate_spend_logs.py
test_null_test_fix.py
test_responses_api_bridge_flag.py fix(openai): keep chat-latest names OpenAI doesn't serve on main's handling, and let a Foundry gpt-5 base_model set the param list 2026-11-17 12:42:02 -08:00
test_responses_api_lifecycle.py test: make 77 legacy live tests offline in litellm_utils, router_unit and responses dirs (#45298) 2026-10-08 02:37:55 -07:00
test_responses_api_request_body.py fix(responses): honor per-call custom pricing on the native Responses API path (#48119) 2026-11-21 18:27:20 -08:00
test_responses_prompt_management.py fix(sdk): backport #45961 to lts/1.108.x 2026-11-07 17:55:52 -08:00
test_responses_router_cooldown.py test(responses): inject a refusing transport through the handler's client factory 2026-11-24 02:25:44 +00:00
test_responses_streaming_iterator.py fix(responses): free a drained stream without a cycle collection 2026-11-27 04:16:26 +00:00
test_responses_supported_endpoints_passthrough.py
test_responses_utils.py fix(responses): let a native turn on a provider without resp_ ids reach the next fallback 2026-11-24 20:25:34 -08:00
test_responses_websocket_all_providers.py test(responses): cover the rate limit and server error types of a WebSocket turn failure 2026-11-23 14:51:44 -08:00
test_rust_bridge_websocket.py
test_sse_output_recovery.py
test_streaming_iterator.py Merge pull request #53427 from ellisc42/litellm_lts_1108_openai_compatible_error_body 2026-11-24 02:52:04 +00:00
test_streaming_iterator_error_events.py fix(openai): relay provider error fields without moving logged error codes 2026-11-22 04:50:47 -08:00
test_text_format_conversion.py refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00