(history)
| 19 | |
| 20 | |
| 21 | def build_prompt(history): |
| 22 | prompt = "欢迎使用 ChatGLM3-6B 模型,输入内容即可进行对话,clear 清空对话历史,stop 终止程序" |
| 23 | for query, response in history: |
| 24 | prompt += f"\n\n用户:{query}" |
| 25 | prompt += f"\n\nChatGLM3-6B:{response}" |
| 26 | return prompt |
| 27 | |
| 28 | |
| 29 | tools = [ |
nothing calls this directly
no outgoing calls
no test coverage detected