mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-05 07:37:50 +00:00
test(proxy): update invalid streaming error expectations
This commit is contained in:
parent
f4872232e5
commit
4c94a03ff7
1 changed files with 5 additions and 5 deletions
|
|
@ -2111,15 +2111,15 @@ class TestCommonRequestProcessingHelpers:
|
|||
), # Valid string-integer code
|
||||
(
|
||||
'data: {"error": {"code": "invalid_code", "message": "error"}}',
|
||||
None,
|
||||
500,
|
||||
), # Invalid string code
|
||||
(
|
||||
'data: {"error": {"code": 99, "message": "too low"}}',
|
||||
None,
|
||||
500,
|
||||
), # Integer code too low
|
||||
(
|
||||
'data: {"error": {"code": 600, "message": "too high"}}',
|
||||
None,
|
||||
500,
|
||||
), # Integer code too high
|
||||
(
|
||||
'data: {"id": "123", "content": "hello"}',
|
||||
|
|
@ -2134,11 +2134,11 @@ class TestCommonRequestProcessingHelpers:
|
|||
("id: 123", None), # Non-SSE event line
|
||||
(
|
||||
'data: {"error": {"message": "some error"}}',
|
||||
None,
|
||||
500,
|
||||
), # Error event without 'code' field
|
||||
(
|
||||
'data: {"error": {"code": null, "message": "code is null"}}',
|
||||
None,
|
||||
500,
|
||||
), # Error with null code
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue