mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
chore: tighten wildcard test per Greptile feedback
This commit is contained in:
parent
043bc8e7f8
commit
2b395a9754
1 changed files with 3 additions and 3 deletions
|
|
@ -33,15 +33,15 @@ async def test_update_litellm_params_max_tokens_custom():
|
|||
@pytest.mark.asyncio
|
||||
async def test_update_litellm_params_max_tokens_wildcard():
|
||||
"""
|
||||
Test that max_tokens does NOT default to 1 for wildcard models.
|
||||
Test that max_tokens is not set for wildcard models.
|
||||
"""
|
||||
model_info = {}
|
||||
litellm_params = {"model": "openai/*"}
|
||||
|
||||
updated_params = _update_litellm_params_for_health_check(model_info, litellm_params)
|
||||
|
||||
# Should not be set to 1
|
||||
assert "max_tokens" not in updated_params or updated_params["max_tokens"] != 1
|
||||
# Should not be set at all for wildcard models
|
||||
assert "max_tokens" not in updated_params
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue