mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-13 16:53:24 +00:00
fix: delete user_template in settings
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user