mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
feat(openai.py): bubble all error information back to client
This commit is contained in:
parent
c1ec82fbd5
commit
5f87dc229a
4 changed files with 18 additions and 5 deletions
|
@ -419,6 +419,6 @@ async def test_exception_bubbling_up(sync_mode, stream_mode):
|
|||
sync_stream=sync_mode,
|
||||
)
|
||||
|
||||
assert exc_info.value.code == "invalid_request_error"
|
||||
assert exc_info.value.param == "messages"
|
||||
assert exc_info.value.code == "invalid_value"
|
||||
assert exc_info.value.param is not None
|
||||
assert exc_info.value.type == "invalid_request_error"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue