From 4f02b3c16141372ece1b403ed59b38f0bce9c900 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Wed, 6 Dec 2023 10:58:00 -0800 Subject: [PATCH] (fix) print_verbose health check --- litellm/health_check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/health_check.py b/litellm/health_check.py index 082de87dc..e814a8c60 100644 --- a/litellm/health_check.py +++ b/litellm/health_check.py @@ -50,7 +50,7 @@ async def _perform_health_check(model_list: list): try: await litellm.aembedding(**model_params) except Exception as e: - print_verbose("\n\n Got Exception, ", e) + print_verbose(f"\n\n Got Exception, {e}") print_verbose(f"Health check failed for model {model_params['model']}. Error: {e}") return False return True @@ -60,7 +60,7 @@ async def _perform_health_check(model_list: list): try: await litellm.acompletion(**model_params) except Exception as e: - print_verbose("\n\n Got Exception, ", e) + print_verbose(f"\n\n Got Exception, {e}") error_str = (str(e)) if "This is not a chat model" in error_str or "The chatCompletion operation does not work with the specified model" in error_str: return await _check_embedding_model(model_params)