mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(router.py): fix text completion error logging
This commit is contained in:
parent
d53fd118f2
commit
7cb86c4e0f
1 changed files with 2 additions and 2 deletions
|
@ -830,8 +830,8 @@ class Router:
|
|||
verbose_router_logger.info(
|
||||
f"litellm.atext_completion(model={model})\033[31m Exception {str(e)}\033[0m"
|
||||
)
|
||||
if model_name is not None:
|
||||
self.fail_calls[model_name] += 1
|
||||
if model is not None:
|
||||
self.fail_calls[model] += 1
|
||||
raise e
|
||||
|
||||
def embedding(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue