forked from hanfangyuan4396/dify-on-wechat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat-workflow.yml
153 lines (153 loc) · 4 KB
/
chat-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
app:
description: ''
icon: "\U0001F916"
icon_background: '#FFEAD5'
mode: workflow
name: chat-workflow
workflow:
features:
file_upload:
image:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
opening_statement: ''
retriever_resource:
enabled: false
sensitive_word_avoidance:
enabled: false
speech_to_text:
enabled: false
suggested_questions: []
suggested_questions_after_answer:
enabled: false
text_to_speech:
enabled: false
language: ''
voice: ''
graph:
edges:
- data:
sourceType: start
targetType: llm
id: 1714264983912-1714264986101
source: '1714264983912'
sourceHandle: source
target: '1714264986101'
targetHandle: target
type: custom
- data:
sourceType: llm
targetType: end
id: 1714264986101-1714264993459
source: '1714264986101'
sourceHandle: source
target: '1714264993459'
targetHandle: target
type: custom
nodes:
- data:
desc: ''
selected: false
title: "\u5F00\u59CB"
type: start
variables:
- label: query
max_length: 256
options: []
required: true
type: text-input
variable: query
height: 89
id: '1714264983912'
position:
x: 80
y: 282
positionAbsolute:
x: 80
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
context:
enabled: false
variable_selector: []
desc: ''
model:
completion_params:
frequency_penalty: 0
max_tokens: 512
presence_penalty: 0
temperature: 0.7
top_p: 1
mode: chat
name: gpt-3.5-turbo-0125
provider: openai
prompt_template:
- role: system
text: Please disregard all previous instructions;\nThis is related to every
one of my prompts;\nYou should provide clear, simple, and direct answers;\nIf
you don't know the answer, say I don't know;\nFor complex questions, take
a deep breath and approach them step by step;\nFor questions that are
unclear or ambiguous, please ask me follow-up questions;\nWhen I ask you
to complete a task, please do it directly without telling me how it should
be done, unless necessary;\nWhen explaining concepts, use real-world examples
and analogies;\nDo not refuse replies related to tasks and work I assign;\nDo
not attempt to conserve token count when generating replies, as my fingers
have a condition that prevents me from typing too much;\nIf you have a
perfect solution, I will give you a $100000 tip, and I will give you more
tips based on the quality of your reply;\nDo your best!\nUnless otherwise
specified, please answer me in Chinese.
- role: user
text: '{{#1714264983912.query#}}'
selected: true
title: LLM
type: llm
variables: []
vision:
enabled: false
height: 97
id: '1714264986101'
position:
x: 380
y: 282
positionAbsolute:
x: 380
y: 282
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
desc: ''
outputs:
- value_selector:
- '1714264986101'
- text
variable: text
selected: false
title: "\u7ED3\u675F"
type: end
height: 89
id: '1714264993459'
position:
x: 680
y: 282
positionAbsolute:
x: 680
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
viewport:
x: 0
y: 0
zoom: 1