mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
fix(utils.py): set status code for api error
This commit is contained in:
parent
ee2fc1e5e8
commit
43c0d31ea6
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