feat(openai.py): bubble all error information back to client

This commit is contained in:
Krrish Dholakia 2025-03-10 15:27:43 -07:00
parent c1ec82fbd5
commit 5f87dc229a
4 changed files with 18 additions and 5 deletions

View file

@ -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"