-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathhuawei_cloud_obs_upload_example.yml
More file actions
354 lines (354 loc) · 8.95 KB
/
huawei_cloud_obs_upload_example.yml
File metadata and controls
354 lines (354 loc) · 8.95 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
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
app:
description: 华为云OBS测试
icon: 🤖
icon_background: '#FFEAD5'
mode: workflow
name: 华为云OBS上传示例
use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
type: package
value:
plugin_unique_identifier: yuez/huawei-cloud-obs:0.0.3@7e0fc064eea89758f262db72b0db9354ffdd7691af71c08453c9e349ec14f9a6
kind: app
version: 0.2.0
workflow:
conversation_variables: []
environment_variables: []
features:
file_upload:
allowed_file_extensions:
- .JPG
- .JPEG
- .PNG
- .GIF
- .WEBP
- .SVG
allowed_file_types:
- image
allowed_file_upload_methods:
- local_file
- remote_url
enabled: false
fileUploadConfig:
audio_file_size_limit: 50
batch_count_limit: 5
file_size_limit: 15
image_file_size_limit: 10
video_file_size_limit: 100
workflow_file_upload_limit: 10
image:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
number_limits: 3
opening_statement: ''
retriever_resource:
enabled: true
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:
isInLoop: false
sourceType: code
targetType: end
id: 1747128506435-source-1747049416709-target
source: '1747128506435'
sourceHandle: source
target: '1747049416709'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: tool
targetType: code
id: 1747225168808-source-1747128506435-target
source: '1747225168808'
sourceHandle: source
target: '1747128506435'
targetHandle: target
type: custom
zIndex: 0
- data:
isInLoop: false
sourceType: start
targetType: tool
id: 1747048966075-source-1747225168808-target
source: '1747048966075'
sourceHandle: source
target: '1747225168808'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: ''
selected: false
title: 开始
type: start
variables:
- label: 桶名称
max_length: 48
options: []
required: true
type: text-input
variable: bucket_name
- allowed_file_extensions: []
allowed_file_types:
- image
- document
- audio
- video
allowed_file_upload_methods:
- local_file
label: 上传文件
max_length: 48
options: []
required: false
type: file
variable: upload_file
- label: 文件地址
max_length: 128
options: []
required: false
type: text-input
variable: file_url
- label: 对象KEY
max_length: 128
options: []
required: false
type: text-input
variable: object_key
height: 168
id: '1747048966075'
position:
x: -70
y: -74
positionAbsolute:
x: -70
y: -74
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
is_team_authorization: true
output_schema: null
paramSchemas:
- auto_generate: null
default: null
form: llm
human_description:
en_US: bucket name
ja_JP: bucket name
pt_BR: bucket name
zh_Hans: 桶名称
label:
en_US: bucket name
ja_JP: bucket name
pt_BR: bucket name
zh_Hans: 桶名称
llm_description: 输入的OBS的桶名称。
max: null
min: null
name: bucket_name
options: []
placeholder: null
precision: null
required: true
scope: null
template: null
type: string
- auto_generate: null
default: null
form: llm
human_description:
en_US: Object Key in Huawei Cloud OBS.
ja_JP: Object Key in Huawei Cloud OBS.
pt_BR: Object Key in Huawei Cloud OBS.
zh_Hans: 对象存储Key
label:
en_US: Object Key
ja_JP: Object Key
pt_BR: Object Key
zh_Hans: 对象存储Key
llm_description: 华为云OBS中的对象存储Key
max: null
min: null
name: object_key
options: []
placeholder: null
precision: null
required: false
scope: null
template: null
type: string
- auto_generate: null
default: null
form: llm
human_description:
en_US: File address, including remote file address or local file path.
ja_JP: File address, including remote file address or local file path.
pt_BR: File address, including remote file address or local file path.
zh_Hans: 文件地址,包括远程文件地址或本地文件路径
label:
en_US: file url
ja_JP: file url
pt_BR: file url
zh_Hans: 文件地址
llm_description: 输入的文件地址,包括远程文件地址或本地文件路径
max: null
min: null
name: file_url
options: []
placeholder: null
precision: null
required: false
scope: null
template: null
type: string
- auto_generate: null
default: null
form: llm
human_description:
en_US: Files uploaded locally.
ja_JP: Files uploaded locally.
pt_BR: Files uploaded locally.
zh_Hans: 本地上传的文件
label:
en_US: file
ja_JP: file
pt_BR: file
zh_Hans: 文件
llm_description: 本地上传的文件对象
max: null
min: null
name: file
options: []
placeholder: null
precision: null
required: false
scope: null
template: null
type: file
params:
bucket_name: ''
file: ''
file_url: ''
object_key: ''
provider_id: yuez/huawei-cloud-obs/huawei-cloud-obs
provider_name: yuez/huawei-cloud-obs/huawei-cloud-obs
provider_type: builtin
selected: false
title: 对象上传
tool_configurations: {}
tool_description: 对象上传
tool_label: 对象上传
tool_name: put_object
tool_parameters:
bucket_name:
type: mixed
value: '{{#1747048966075.bucket_name#}}'
file:
type: variable
value:
- '1747048966075'
- upload_file
file_url:
type: mixed
value: '{{#1747048966075.file_url#}}'
object_key:
type: mixed
value: '{{#1747048966075.object_key#}}'
type: tool
height: 54
id: '1747225168808'
position:
x: 275
y: -74
positionAbsolute:
x: 275
y: -74
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
outputs:
- value_selector:
- '1747128506435'
- object_key
variable: 对象Key
- value_selector:
- '1747128506435'
- object_url
variable: 对象Url
selected: false
title: 对象地址
type: end
height: 116
id: '1747049416709'
position:
x: 960
y: -74
positionAbsolute:
x: 960
y: -74
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
code: "\ndef main(arg1: list[dict]) -> dict: \n return arg1[0]\n"
code_language: python3
desc: ''
outputs:
object_key:
children: null
type: string
object_url:
children: null
type: string
selected: false
title: JSON解析结果
type: code
variables:
- value_selector:
- '1747225168808'
- json
variable: arg1
height: 54
id: '1747128506435'
position:
x: 597
y: -74
positionAbsolute:
x: 597
y: -74
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
viewport:
x: 170
y: 279.5
zoom: 1