npc0 commited on
Commit
8253787
1 Parent(s): 4e9692c

Update README.md

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