Skip to content

Commit 5a3f483

Browse files
YilialinnCopilot
andauthored
Update docs/zh/latest/plugins/ai-prompt-template.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1e79b19 commit 5a3f483

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/zh/latest/plugins/ai-prompt-template.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ import TabItem from '@theme/TabItem';
4242

4343
| **字段** | **是否必填** | **类型** | **描述** |
4444
| --- | --- | --- | --- |
45-
| `templates` | True | array | 模板对象数组。 |
46-
| `templates.name` | True | string | 模板的名称。在请求路由时,请求中应包含与所配置模板相对应的模板名称。 |
47-
| `templates.template` | True | object | 模板规范。 |
48-
| `templates.template.model` | False | string | LLM 模型的名称,例如 `gpt-4``gpt-3.5`。更多可用模型请参阅 LLM 提供商的 API 文档。 |
49-
| `templates.template.messages` | False | array[object] | 模板消息规范。 |
50-
| `templates.template.messages.role` | True | string | 消息的角色。有效值为 `system``user``assistant`|
51-
| `templates.template.messages.content` | True | string | 消息(提示词)的内容。使用 `{{variable_name}}` 语法定义模板变量,这些变量将从请求体中填充。 |
45+
| `templates` | | array | 模板对象数组。 |
46+
| `templates.name` | | string | 模板的名称。在请求路由时,请求中应包含与所配置模板相对应的模板名称。 |
47+
| `templates.template` | | object | 模板规范。 |
48+
| `templates.template.model` | | string | LLM 模型的名称,例如 `gpt-4``gpt-3.5`。更多可用模型请参阅 LLM 提供商的 API 文档。 |
49+
| `templates.template.messages` | | array[object] | 模板消息规范。 |
50+
| `templates.template.messages.role` | | string | 消息的角色。有效值为 `system``user``assistant`|
51+
| `templates.template.messages.content` | | string | 消息(提示词)的内容。使用 `{{variable_name}}` 语法定义模板变量,这些变量将从请求体中填充。 |
5252

5353
## 使用示例
5454

0 commit comments

Comments
 (0)