提交 17ecc572 编写于 作者: D duzx16

Add newline in cli output

上级 8f29459f
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册