Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/integration/defs/examples/serve/test_serve_negative.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ async def test_invalid_max_tokens(async_client: openai.AsyncOpenAI,
max_tokens=0,
)
error_msg = str(exc_info.value).lower()
assert any(keyword in error_msg for keyword in ("mMaxNewTokens", "failed"))
assert any(keyword in error_msg
for keyword in ("max_tokens", "must be greater than 0"))


@pytest.mark.asyncio
Expand Down
Loading