MCPcopy Create free account
hub / github.com/zai-org/ChatGLM3 / build_prompt

Function build_prompt

tools_using_demo/cli_demo_tool.py:21–26  ·  view source on GitHub ↗
(history)

Source from the content-addressed store, hash-verified

19
20
21def 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
29tools = [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected