mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
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"
|
method="POST", url="https://api.openai.com/v1"
|
||||||
)
|
)
|
||||||
raise APIError(
|
raise APIError(
|
||||||
|
status_code=500,
|
||||||
message=f"{exception_provider} - {message}",
|
message=f"{exception_provider} - {message}",
|
||||||
llm_provider=custom_llm_provider,
|
llm_provider=custom_llm_provider,
|
||||||
model=model,
|
model=model,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue