From 805975243778f7d76dd74eccc0caf44251b83adb Mon Sep 17 00:00:00 2001 From: tom Date: Wed, 25 Sep 2024 11:22:26 +0800 Subject: [PATCH] fix: delete user_template in settings --- src/blackbox/chat.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/blackbox/chat.py b/src/blackbox/chat.py index cffc9d3..932724d 100644 --- a/src/blackbox/chat.py +++ b/src/blackbox/chat.py @@ -43,7 +43,6 @@ class Chat(Blackbox): user_model_name = settings.get("model_name") user_context = context user_question = prompt - user_template = settings.get("template") user_temperature = settings.get("temperature") user_top_p = settings.get("top_p") user_n = settings.get("n") @@ -70,8 +69,8 @@ class Chat(Blackbox): user_model_name = "qwen" #user_model_name = "Qwen1.5-14B-Chat" - if user_template is None or user_template.isspace(): - user_template = "" + if user_prompt_template is None or user_prompt_template.isspace(): + user_prompt_template = "" if user_temperature is None or user_temperature == "": user_temperature = 0