mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-02 01:28:38 +00:00
route_request resolves the deployment and hands back the provider coroutine unawaited, so awaiting it once yielded a coroutine, not a response. Every /v1/bulk_read and /v1/code_write call 502'd with "worker model returned no completion". Caught by running the generated command against a live proxy; the unit test missed it because the fake route_request returned a ModelResponse directly instead of a coroutine. Fix the second await and the fake, so the test now fails without it. _read_upload_text checked the incoming remaining_total_bytes but used min(_MAX_UPLOAD_BYTES_PER_FILE, ...) for the read size, so a zero or negative LITELLM_SHUNT_MAX_UPLOAD_BYTES_PER_FILE made the read size negative while the budget was still positive. UploadFile.read treats that as "read the whole file", turning the bound into no bound. Check the computed limit instead, which covers both inputs, and read the three limits with get_env_int_in_range so an out-of-range override warns and falls back rather than silently disabling the cap. Restore test_settings.py to its committed state. Rewriting it dropped the ENABLE_TOOL_SEARCH assertions, the no-mutation regression, and the comment explaining why every model tier needs its own env override. None of that was related to this PR. |
||
|---|---|---|
| .. | ||
| cli | ||
| conftest.py | ||
| test_chat.py | ||
| test_client.py | ||
| test_credentials.py | ||
| test_http_client.py | ||
| test_http_commands.py | ||
| test_keys.py | ||
| test_model_groups.py | ||
| test_models.py | ||
| test_teams.py | ||
| test_users.py | ||