Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
garyzhang99 committed May 9, 2024
1 parent 9039142 commit 3c84147
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/sphinx_doc/zh_CN/source/tutorial/206-prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,10 @@ print(prompt)

### `AnthropicChatWrapper`

`AnthropicChatWrapper` 封装了ZhipuAi聊天API,它接受消息列表作为输入。传递消息列表时,它必须遵守以下规则:
`AnthropicChatWrapper` 封装了Anthropic 聊天API,它接受消息列表作为输入。传递消息列表时,它必须遵守以下规则:

- Require `role` and `content` fields, and `role` must be either `"user"` or `"assistant"`.
- 必须有 role 和 content 字段,且 role 必须是 "user"、 或 "assistant" 中的一个。

- 必须有 `role``content` 字段,且 `role` 必须是 "user"、 或 "assistant" 中的一个。
- **注意**: API 并不支持`system` role. 如果需要系统提示,请在使用模型的`__call__`函数时填写`system`字段。详情请参见`anthropic_model.py`


Expand Down

0 comments on commit 3c84147

Please sign in to comment.