mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix exception mapping error
This commit is contained in:
parent
0ab62f13e8
commit
323e095688
6 changed files with 4 additions and 4 deletions
|
@ -1579,7 +1579,7 @@ def exception_type(model, original_exception, custom_llm_provider):
|
|||
model=model,
|
||||
llm_provider=original_exception.llm_provider
|
||||
)
|
||||
raise ValueError(original_exception)
|
||||
raise original_exception
|
||||
elif model:
|
||||
error_str = str(original_exception)
|
||||
if isinstance(original_exception, BaseException):
|
||||
|
@ -1931,7 +1931,7 @@ def exception_type(model, original_exception, custom_llm_provider):
|
|||
):
|
||||
threading.Thread(target=get_all_keys, args=(e.llm_provider,)).start()
|
||||
# don't let an error with mapping interrupt the user from receiving an error from the llm api calls
|
||||
raise ValueError(original_exception)
|
||||
raise original_exception
|
||||
|
||||
|
||||
####### CRASH REPORTING ################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue