mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +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(
|
verbose_router_logger.info(
|
||||||
f"litellm.atext_completion(model={model})\033[31m Exception {str(e)}\033[0m"
|
f"litellm.atext_completion(model={model})\033[31m Exception {str(e)}\033[0m"
|
||||||
)
|
)
|
||||||
if model_name is not None:
|
if model is not None:
|
||||||
self.fail_calls[model_name] += 1
|
self.fail_calls[model] += 1
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
def embedding(
|
def embedding(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue