mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
* fix(openai): drop or refuse an o-series reasoning_effort level the model map turns off * fix(openai): honor declared levels and allowed_openai_params at the o3 gate on every route The o3 gate now gets the deployment's declared reasoning levels and the caller's allowed_openai_params on the azure_ai, github_copilot, chatgpt and ragflow routes too, so those routes treat minimal the same way the openai and azure routes do. A level listed in allowed_openai_params is forwarded with or without drop_params, matching the azure_ai gate and the router. Dropping a level filters the returned params instead of popping it from the caller's dicts, and the drop warning goes through the caller's reasoning_drop_logger * fix(openai): keep OpenAI's param and code on the o3 gate's 400 The gateway's own 400 for a refused o3 reasoning_effort now names param reasoning_effort and code unsupported_value, as OpenAI's 400 for the same request did. The route tests drop a bare-o3 ragflow case that real ragflow model names never take, and the capability docstring no longer says every o-series row carries no effort flag --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| pre_call_checks | ||
| __init__.py | ||
| test_access_windows.py | ||
| test_add_retry_fallback_headers.py | ||
| test_client_initalization_utils.py | ||
| test_cooldown_cache.py | ||
| test_cooldown_handlers.py | ||
| test_deployment_pricing.py | ||
| test_dynamic_queue.py | ||
| test_dynamic_queue_redis.py | ||
| test_dynamic_queue_router.py | ||
| test_embedding_batch_size_check.py | ||
| test_endpoint_eligibility.py | ||
| test_fallback_event_handlers.py | ||
| test_fallback_event_v2_dispatch.py | ||
| test_get_retry_from_policy.py | ||
| test_handle_error.py | ||
| test_health_check_allowed_fails_integration.py | ||
| test_health_state_cache.py | ||
| test_kubernetes_pod_discovery.py | ||
| test_pattern_match_deployments.py | ||
| test_prompt_caching_cache.py | ||
| test_ptu_shares.py | ||
| test_reasoning_effort_capability.py | ||
| test_request_priority.py | ||
| test_router_health_check_routing.py | ||
| test_router_interactions_endpoints.py | ||
| test_router_utils_common_utils.py | ||
| test_routing_read_batch.py | ||