Add newline in cli output

pull/154/head
duzx16 2023-03-19 14:56:34 +08:00
parent 8f29459f9a
commit 17ecc57266
1 changed files with 2 additions and 2 deletions

View File

@ -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