mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
update exception mapping
This commit is contained in:
parent
83c6d22848
commit
cb963dec68
2 changed files with 2 additions and 2 deletions
|
@ -844,7 +844,7 @@ def embedding(model, input=[], azure=False, force_timeout=60, logger_fn=None):
|
||||||
# log the original exception
|
# log the original exception
|
||||||
logging(model=model, input=input, azure=azure, logger_fn=logger_fn, exception=e)
|
logging(model=model, input=input, azure=azure, logger_fn=logger_fn, exception=e)
|
||||||
## Map to OpenAI Exception
|
## Map to OpenAI Exception
|
||||||
raise exception_type(model=model, original_exception=e)
|
raise exception_type(model=model, original_exception=e, custom_llm_provider="azure" if azure==True else None)
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "litellm"
|
name = "litellm"
|
||||||
version = "0.1.425"
|
version = "0.1.426"
|
||||||
description = "Library to easily interface with LLM API providers"
|
description = "Library to easily interface with LLM API providers"
|
||||||
authors = ["BerriAI"]
|
authors = ["BerriAI"]
|
||||||
license = "MIT License"
|
license = "MIT License"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue