forked from phoenix/litellm-mirror
fix(utils.py): set status code for api error
This commit is contained in:
parent
8a4a14cc95
commit
7d824225a5
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue