mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
test(chatgpt): assert invalid call identifier validation
This commit is contained in:
parent
daa00a3401
commit
93285edba1
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ from litellm.llms.chatgpt.codex import build_sideband_request, parse_call_respon
|
|||
def test_signaling_rejects_invalid_upstream_call_id(location):
|
||||
response = httpx.Response(201, headers={"Location": location},
|
||||
extensions={"chatgpt_realtime": {"model": "gpt-live-1-codex"}})
|
||||
with pytest.raises(ValueError):
|
||||
with pytest.raises(ValueError, match="String should match pattern"):
|
||||
parse_call_response(response, "voice", "owner", 1000)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue