From 7d7fb587b72e4364049a04e7843af56faaf11780 Mon Sep 17 00:00:00 2001 From: lvliang-intel Date: Thu, 19 Dec 2024 05:25:37 -0800 Subject: [PATCH] fix preci issue Signed-off-by: lvliang-intel --- comps/llms/src/text-generation/integrations/openai_llm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comps/llms/src/text-generation/integrations/openai_llm.py b/comps/llms/src/text-generation/integrations/openai_llm.py index 484d5731cd..cbd3256afc 100644 --- a/comps/llms/src/text-generation/integrations/openai_llm.py +++ b/comps/llms/src/text-generation/integrations/openai_llm.py @@ -42,8 +42,8 @@ def get_llm_endpoint(): try: return configs_map.get(MODEL_NAME).get("endpoint") except ConfigError as e: - logger.error(f"Input model {model} not present in model_configs. Error {e}") - raise ConfigError(f"Input model {model} not present in model_configs") + logger.error(f"Input model {MODEL_NAME} not present in model_configs. Error {e}") + raise ConfigError(f"Input model {MODEL_NAME} not present in model_configs") class OpenAILLM(OpeaComponent):