feat: update chat workflow dsl (#23)

master
Han Fangyuan 2024-04-28 09:17:30 +08:00 committed by GitHub
parent d3b7807856
commit c5ac9f693c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 16 deletions

View File

@ -32,19 +32,19 @@ workflow:
- data: - data:
sourceType: start sourceType: start
targetType: llm targetType: llm
id: 1712585213444-1712585220528 id: 1714264983912-1714264986101
source: '1712585213444' source: '1714264983912'
sourceHandle: source sourceHandle: source
target: '1712585220528' target: '1714264986101'
targetHandle: target targetHandle: target
type: custom type: custom
- data: - data:
sourceType: llm sourceType: llm
targetType: end targetType: end
id: 1712585220528-1712585261804 id: 1714264986101-1714264993459
source: '1712585220528' source: '1714264986101'
sourceHandle: source sourceHandle: source
target: '1712585261804' target: '1714264993459'
targetHandle: target targetHandle: target
type: custom type: custom
nodes: nodes:
@ -54,14 +54,14 @@ workflow:
title: "\u5F00\u59CB" title: "\u5F00\u59CB"
type: start type: start
variables: variables:
- label: "\u95EE\u9898" - label: query
max_length: 256 max_length: 256
options: [] options: []
required: true required: true
type: text-input type: text-input
variable: query variable: query
height: 89 height: 89
id: '1712585213444' id: '1714264983912'
position: position:
x: 80 x: 80
y: 282 y: 282
@ -75,10 +75,8 @@ workflow:
width: 243 width: 243
- data: - data:
context: context:
enabled: true enabled: false
variable_selector: variable_selector: []
- '1712585213444'
- query
desc: '' desc: ''
model: model:
completion_params: completion_params:
@ -106,7 +104,7 @@ workflow:
tips based on the quality of your reply;\nDo your best!\nUnless otherwise tips based on the quality of your reply;\nDo your best!\nUnless otherwise
specified, please answer me in Chinese. specified, please answer me in Chinese.
- role: user - role: user
text: '{{#1712585213444.query#}}' text: '{{#1714264983912.query#}}'
selected: true selected: true
title: LLM title: LLM
type: llm type: llm
@ -114,7 +112,7 @@ workflow:
vision: vision:
enabled: false enabled: false
height: 97 height: 97
id: '1712585220528' id: '1714264986101'
position: position:
x: 380 x: 380
y: 282 y: 282
@ -130,20 +128,21 @@ workflow:
desc: '' desc: ''
outputs: outputs:
- value_selector: - value_selector:
- '1712585220528' - '1714264986101'
- text - text
variable: text variable: text
selected: false selected: false
title: "\u7ED3\u675F" title: "\u7ED3\u675F"
type: end type: end
height: 89 height: 89
id: '1712585261804' id: '1714264993459'
position: position:
x: 680 x: 680
y: 282 y: 282
positionAbsolute: positionAbsolute:
x: 680 x: 680
y: 282 y: 282
selected: false
sourcePosition: right sourcePosition: right
targetPosition: left targetPosition: left
type: custom type: custom