mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
Remove print
This commit is contained in:
parent
315cac619b
commit
44d2b2ca74
1 changed files with 0 additions and 2 deletions
|
|
@ -1561,7 +1561,6 @@ def exception_type(model, original_exception, custom_llm_provider):
|
|||
llm_provider="huggingface",
|
||||
)
|
||||
elif custom_llm_provider == "ai21":
|
||||
print(f"e: {original_exception}")
|
||||
if hasattr(original_exception, "message"):
|
||||
if "Prompt has too many tokens" in original_exception.message:
|
||||
exception_mapping_worked = True
|
||||
|
|
@ -1571,7 +1570,6 @@ def exception_type(model, original_exception, custom_llm_provider):
|
|||
llm_provider="ai21"
|
||||
)
|
||||
if hasattr(original_exception, "status_code"):
|
||||
print(f"status code: {original_exception.status_code}")
|
||||
if original_exception.status_code == 401:
|
||||
exception_mapping_worked = True
|
||||
raise AuthenticationError(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue