-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy_workflow.yml
More file actions
100 lines (92 loc) · 2.04 KB
/
Copy pathmy_workflow.yml
File metadata and controls
100 lines (92 loc) · 2.04 KB
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
version: 0.5.0
kind: app
app:
name: Translator
mode: workflow
icon: 🌐
icon_background: '#E4FBCC'
description: Translate text to any language using AI
use_icon_as_answer_icon: false
workflow:
graph:
nodes:
- id: start
position:
x: 100
y: 300
width: 244
height: 54
data:
type: start
title: Start
desc: ''
variables:
- variable: text
type: string
label: Text to translate
required: true
max_length: 4096
default: ''
options: []
- variable: target_language
type: string
label: Target Language
required: true
max_length: 256
default: English
options: []
- id: 7cc7b666
position:
x: 400
y: 100
width: 244
height: 54
data:
type: llm
title: translate
desc: ''
model:
provider: openai
name: gpt-4
mode: chat
completion_params:
temperature: 0.3
max_tokens: 4096
prompt_template:
- role: user
text: 'Translate the following text to {{#start.target_language#}}.
Text to translate:
{{#start.text#}}
Important:
- Output ONLY the translation, nothing else
- Preserve the original formatting
- Maintain the original tone and style'
- id: a292dfb0
position:
x: 700
y: 100
width: 244
height: 54
data:
type: end
title: End
desc: ''
outputs:
- variable: translation
value_selector:
- translate
- text
edges:
- id: edge_0
source: start
target: 7cc7b666
sourceHandle: source
targetHandle: target
- id: edge_1
source: 7cc7b666
target: a292dfb0
sourceHandle: source
targetHandle: target
features: {}
environment_variables: []
conversation_variables: []