npc0 commited on
Commit
4d9e296
1 Parent(s): 47a1c22

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -37,6 +37,6 @@ ChatGLM3-6B 是 ChatGLM 系列最新一代的开源模型,[THUDM/chatglm3-6b](
37
  import chatglm_cpp
38
 
39
  pipeline = chatglm_cpp.Pipeline("./chatglm3-ggml-q4_0.bin")
40
- pipeline.chat(["你好"])
41
- # Output: 你好👋!我是人工智能助手 ChatGLM3-6B,很高兴见到你,欢迎问我任何问题。
42
  ```
 
37
  import chatglm_cpp
38
 
39
  pipeline = chatglm_cpp.Pipeline("./chatglm3-ggml-q4_0.bin")
40
+ pipeline.chat([chatglm_cpp.ChatMessage(role="user", content="你好")])
41
+ # Output: ChatMessage(role="assistant", content="你好👋!我是人工智能助手 ChatGLM-6B,很高兴见到你,欢迎问我任何问题。", tool_calls=[])
42
  ```