Skip to content

Commit 3430327

Browse files
committed
feat: update GenerateCodeDialog and shared_tool to enhance parameter handling in code generation
1 parent 4c69884 commit 3430327

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/views/tool/component/GenerateCodeDialog.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ const promptTemplates = {
177177
请为 MaxKB 工具 生成 Python 代码,需求如下:
178178
179179
- 核心功能:用户输入的主题 / 功能需求
180-
- 启动参数:平台配置的启动参数,如 API 密钥、数据库地址、账号密码等不需要默认值 {initFieldList}
181-
- 输入参数:平台配置的输入参数,格式为 “参数名:数据类型:是否必填”不需要默认值 {inputFieldList}
182-
- 函数定义:列举所有启动参数和输入参数并声明返回类型
180+
- 启动参数:平台配置的启动参数,如 API 密钥、数据库地址、账号密码等不需要默认值
181+
- 输入参数:平台配置的输入参数,格式为 “参数名:数据类型:是否必填”不需要默认值
182+
- 函数定义:列举所有启动参数和输入参数并声明返回类型 {params}
183183
- 输出要求:代码需接收输入参数,启动参数完成业务逻辑,返回标准化结果,仅输出函数定义
184184
`,
185185
}

0 commit comments

Comments
 (0)