mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-03 01:38:46 +00:00
* fix(proxy): refuse Responses WebSocket turns over TPM and count Responses usage on the legacy limiter * fix(proxy): count finished realtime turns toward TPM on the legacy limiter Each realtime response.done now adds its tokens to the key's minute on the legacy limiter, so the per-turn TPM check refuses a later response.create on the same socket once the minute holds its limit * fix(proxy): keep retrieving or cancelling a stored response from counting its tokens again on the legacy limiter * fix(proxy): count a background response's billed tokens on the legacy limiter and test server-started realtime turns * fix(proxy): count legacy limiter usage for model-limited keys on Responses and Messages routes A key with model_tpm_limit or model_rpm_limit makes the pre-call write the remaining limits into data["metadata"]. On routes that keep proxy key data in litellm_metadata, the success and failure events then read that small dict, so they counted 0 tokens and never freed the parallel slot. Read the key fields through the shared metadata helper. * fix(proxy): count native Responses socket turns on a key's per-model limit on the legacy limiter |
||
|---|---|---|
| .. | ||
| litellm_completion_transformation | ||
| mcp | ||
| __init__.py | ||
| test_additional_tools.py | ||
| test_custom_tool_call.py | ||
| test_input_items_query.py | ||
| test_instructions_length.py | ||
| test_metadata_codex_callback.py | ||
| test_no_duplicate_spend_logs.py | ||
| test_null_test_fix.py | ||
| test_responses_api_bridge_flag.py | ||
| test_responses_api_lifecycle.py | ||
| test_responses_api_request_body.py | ||
| test_responses_prompt_management.py | ||
| test_responses_router_cooldown.py | ||
| test_responses_streaming_iterator.py | ||
| test_responses_supported_endpoints_passthrough.py | ||
| test_responses_utils.py | ||
| test_responses_websocket_all_providers.py | ||
| test_rust_bridge_websocket.py | ||
| test_sse_output_recovery.py | ||
| test_streaming_iterator.py | ||
| test_streaming_iterator_error_events.py | ||
| test_text_format_conversion.py | ||