mirror of https://github.com/THUDM/ChatGLM-6B
Add newline in cli output
parent
8f29459f9a
commit
17ecc57266
|
@ -13,8 +13,8 @@ clear_command = 'cls' if os_name == 'Windows' else 'clear'
|
|||
def build_prompt(history):
|
||||
prompt = "欢迎使用 ChatGLM-6B 模型,输入内容即可进行对话,clear 清空对话历史,stop 终止程序"
|
||||
for query, response in history:
|
||||
prompt += f"\n用户:{query}"
|
||||
prompt += f"\nChatGLM-6B:{response}"
|
||||
prompt += f"\n\n用户:{query}"
|
||||
prompt += f"\n\nChatGLM-6B:{response}"
|
||||
return prompt
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue