mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
Sail checked the caller's completion window while building the request body, which for chat runs inside OpenAIChatCompletion's try block. That needed a Sail-only carve-out in openai.py so UnsupportedParamsError was not rewrapped. Validation now happens where every provider validates its params, in map_openai_params: service_tier (unchanged) and the Responses API's top-level metadata.completion_window. extra_body is an unvalidated passthrough on every endpoint, as it is for every other provider, so a bad window there reaches Sail and Sail's own 400 is relayed. The openai.py carve-out is removed and the file matches main again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017rFsPGWXKJRcmChhoP9DDY |
||
|---|---|---|
| .. | ||
| caching | ||
| expected_fine_tuning_api | ||
| expected_responses_api_request | ||
| integrations | ||
| interactions | ||
| litellm_core_utils | ||
| llms | ||
| ocr | ||
| passthrough | ||
| proxy | ||
| responses | ||
| router_strategy | ||
| router_utils | ||
| rust_bridge | ||
| secret_managers | ||
| __init__.py | ||
| conftest.py | ||
| log.txt | ||
| readme.md | ||
| test_compression.py | ||
| test_conftest.py | ||
| test_main.py | ||
Testing for litellm/
This directory 1:1 maps the the litellm/ directory, and can only contain mocked tests.
The point of this is to:
- Increase test coverage of
litellm/ - Make it easy for contributors to add tests for the
litellm/package and easily run tests without needing LLM API keys.
File name conventions
litellm/proxy/test_caching_routes.pymaps tolitellm/proxy/caching_routes.pytest_<filename>.pymaps tolitellm/<filename>.py