mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
Litellm dev 01 20 2025 p1 (#7884)
* fix(initial-test-to-return-api-timeout-value-in-openai-timeout-exception): Makes it easier for user to debug why request timed out * feat(openai.py): return timeout value + time taken on openai timeout errors helps debug timeout errors * fix(utils.py): fix num retries extraction logic when num_retries = 0 * fix(config_settings.md): litellm_logging.py support printing payload to console if 'LITELLM_PRINT_STANDARD_LOGGING_PAYLOAD' is true Enables easier debug * test(test_auth_checks.py'): remove common checks userapikeyauth enforcement check * fix(litellm_logging.py): fix linting error
This commit is contained in:
parent
a4d3276bed
commit
4c1d4acabc
11 changed files with 65 additions and 46 deletions
|
@ -1480,3 +1480,17 @@ def test_get_potential_model_names():
|
|||
model="bedrock/ap-northeast-1/anthropic.claude-instant-v1",
|
||||
custom_llm_provider="bedrock",
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("num_retries", [0, 1, 5])
|
||||
def test_get_num_retries(num_retries):
|
||||
from litellm.utils import _get_wrapper_num_retries
|
||||
|
||||
assert _get_wrapper_num_retries(
|
||||
kwargs={"num_retries": num_retries}, exception=Exception("test")
|
||||
) == (
|
||||
num_retries,
|
||||
{
|
||||
"num_retries": num_retries,
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue