fix(utils.py): set status code for api error

This commit is contained in:
Krrish Dholakia 2024-03-05 21:37:59 -08:00
parent 8a4a14cc95
commit 7d824225a5

View file

@ -6655,6 +6655,7 @@ def exception_type(
method="POST", url="https://api.openai.com/v1"
)
raise APIError(
status_code=500,
message=f"{exception_provider} - {message}",
llm_provider=custom_llm_provider,
model=model,