mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix exception provider not known
This commit is contained in:
parent
4c95782f74
commit
fcf65d5215
1 changed files with 12 additions and 0 deletions
|
@ -5810,6 +5810,18 @@ def exception_type(
|
|||
_model_group = _metadata.get("model_group")
|
||||
_deployment = _metadata.get("deployment")
|
||||
extra_information = f"\nModel: {model}"
|
||||
|
||||
exception_provider = "Unknown"
|
||||
if (
|
||||
isinstance(custom_llm_provider, str)
|
||||
and len(custom_llm_provider) > 0
|
||||
):
|
||||
exception_provider = (
|
||||
custom_llm_provider[0].upper()
|
||||
+ custom_llm_provider[1:]
|
||||
+ "Exception"
|
||||
)
|
||||
|
||||
if _api_base:
|
||||
extra_information += f"\nAPI Base: `{_api_base}`"
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue