Skip to content

Commit 1e79b19

Browse files
committed
fix: correct model/messages required status and messages type
- model and messages are not required in source schema - messages type is array[object], not array
1 parent 2c48eec commit 1e79b19

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ The `ai-prompt-template` Plugin supports pre-configuring prompt templates that o
4545
| `templates` | True | array | An array of template objects. |
4646
| `templates.name` | True | string | Name of the template. When requesting the Route, the request should include the template name that corresponds to the configured template. |
4747
| `templates.template` | True | object | Template specification. |
48-
| `templates.template.model` | True | string | Name of the LLM model, such as `gpt-4` or `gpt-3.5`. See your LLM provider API documentation for more available models. |
49-
| `templates.template.messages` | True | array | Template message specification. |
48+
| `templates.template.model` | False | string | Name of the LLM model, such as `gpt-4` or `gpt-3.5`. See your LLM provider API documentation for more available models. |
49+
| `templates.template.messages` | False | array[object] | Template message specification. |
5050
| `templates.template.messages.role` | True | string | Role of the message. Valid values are `system`, `user`, and `assistant`. |
5151
| `templates.template.messages.content` | True | string | Content of the message (prompt). Use `{{variable_name}}` syntax to define template variables that will be filled from the request body. |
5252

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ import TabItem from '@theme/TabItem';
4545
| `templates` | True | array | 模板对象数组。 |
4646
| `templates.name` | True | string | 模板的名称。在请求路由时,请求中应包含与所配置模板相对应的模板名称。 |
4747
| `templates.template` | True | object | 模板规范。 |
48-
| `templates.template.model` | True | string | LLM 模型的名称,例如 `gpt-4``gpt-3.5`。更多可用模型请参阅 LLM 提供商的 API 文档。 |
49-
| `templates.template.messages` | True | array | 模板消息规范。 |
48+
| `templates.template.model` | False | string | LLM 模型的名称,例如 `gpt-4``gpt-3.5`。更多可用模型请参阅 LLM 提供商的 API 文档。 |
49+
| `templates.template.messages` | False | array[object] | 模板消息规范。 |
5050
| `templates.template.messages.role` | True | string | 消息的角色。有效值为 `system``user``assistant`|
5151
| `templates.template.messages.content` | True | string | 消息(提示词)的内容。使用 `{{variable_name}}` 语法定义模板变量,这些变量将从请求体中填充。 |
5252

0 commit comments

Comments
 (0)