Skip to content

Commit

Permalink
fix comments again
Browse files Browse the repository at this point in the history
  • Loading branch information
garyzhang99 committed Apr 26, 2024
1 parent a3801f6 commit 93c3e91
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions docs/sphinx_doc/zh_CN/source/tutorial/206-prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,6 @@ print(prompt)
如果第一条消息的 role 字段是 "system",它将被转换为带有 role 字段为 "system" 和 content 字段为系统消息的单个消息。其余的消息会被转化为带有 role 字段为 "user" 和 content 字段为对话历史的消息。
下面展示了一个示例:

**注意**Gemini Chat API中`parts`字段可以包含图片的url,由于我们将消息转换成字符串格式
的输入,因此图片url在目前的`format`函数中是不支持的。
我们推荐开发者可以根据需求动手定制化自己的提示。

```python
from agentscope.models import ZhipuAIChatWrapper
from agentscope.message import Msg
Expand Down
1 change: 0 additions & 1 deletion src/agentscope/models/zhipu_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ class ZhipuAIChatWrapper(ZhipuAIWrapperBase):

model_type: str = "zhipuai_chat"

# TOTEST
def _register_default_metrics(self) -> None:
# Set monitor accordingly
# TODO: set quota to the following metrics
Expand Down

0 comments on commit 93c3e91

Please sign in to comment.