feat: make prompt object type array in pipeline config

This commit is contained in:
Junyan Qin
2025-04-03 12:50:18 +08:00
parent 4e7b9aaf59
commit 913e43d84c
2 changed files with 12 additions and 3 deletions
+3 -1
View File
@@ -28,9 +28,11 @@ spec:
label: label:
en_US: Intents en_US: Intents
zh_CN: 权限 zh_CN: 权限
type: array[string] type: array
required: true required: true
default: [] default: []
items:
type: string
execution: execution:
python: python:
path: ./qqbotpy.py path: ./qqbotpy.py
+9 -2
View File
@@ -54,9 +54,16 @@ stages:
label: label:
en_US: Prompt en_US: Prompt
zh_CN: 提示词 zh_CN: 提示词
type: string type: array
required: true required: true
default: "You are a helpful assistant." items:
type: object
properties:
role:
type: string
default: user
content:
type: string
- name: dify-service-api - name: dify-service-api
label: label:
en_US: Dify Service API en_US: Dify Service API