npc0 commited on
Commit
b61ad27
1 Parent(s): 40ae321

Update README.md

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