-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTwitterInstantPortrait.yml
1384 lines (1269 loc) · 34.7 KB
/
TwitterInstantPortrait.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
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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
app:
description: ''
icon: bust_in_silhouette
icon_background: '#FFEAD5'
mode: workflow
name: TwitterInstantPortrait
use_icon_as_answer_icon: false
kind: app
version: 0.1.4
workflow:
conversation_variables: []
environment_variables:
- description: ''
id: c073c64f-1e60-48c4-b59a-572eb3859a71
name: rss_hub
selector:
- env
- rss_hub
value: ''
value_type: secret
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:
isInIteration: false
sourceType: start
targetType: code
id: 1733757676391-source-1733757743582-target
selected: false
source: '1733757676391'
sourceHandle: source
target: '1733757743582'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: if-else
id: 1733757743582-source-1733758275386-target
selected: false
source: '1733757743582'
sourceHandle: source
target: '1733758275386'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: http-request
id: 1733758275386-true-1733758341919-target
selected: false
source: '1733758275386'
sourceHandle: 'true'
target: '1733758341919'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: http-request
targetType: if-else
id: 1733758341919-source-1733758468081-target
selected: false
source: '1733758341919'
sourceHandle: source
target: '1733758468081'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: end
id: 1733758275386-false-1733758959100-target
selected: false
source: '1733758275386'
sourceHandle: 'false'
target: '1733758959100'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: end
id: 1733758468081-false-1733758974144-target
selected: false
source: '1733758468081'
sourceHandle: 'false'
target: '1733758974144'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: end
id: 1733819430217-source-1733819115715-target
selected: false
source: '1733819430217'
sourceHandle: source
target: '1733819115715'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: if-else
id: 1733758468081-true-1733821282287-target
selected: false
source: '1733758468081'
sourceHandle: 'true'
target: '1733821282287'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: code
id: 1733821282287-true-1733821593198-target
selected: false
source: '1733821282287'
sourceHandle: 'true'
target: '1733821593198'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: llm
id: 1733821282287-false-1733758916777-target
selected: false
source: '1733821282287'
sourceHandle: 'false'
target: '1733758916777'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: http-request
id: 1733821593198-source-1733838335709-target
selected: false
source: '1733821593198'
sourceHandle: source
target: '1733838335709'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: http-request
targetType: llm
id: 1733838335709-source-1733838259392-target
selected: false
source: '1733838335709'
sourceHandle: source
target: '1733838259392'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: variable-aggregator
id: 1733758916777-source-1733838975870-target
selected: false
source: '1733758916777'
sourceHandle: source
target: '1733838975870'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: tool
id: 1733818066449-source-1733758891787-target
selected: false
source: '1733818066449'
sourceHandle: source
target: '1733758891787'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: variable-aggregator
targetType: llm
id: 1733838975870-source-1733819430217-target
selected: false
source: '1733838975870'
sourceHandle: source
target: '1733819430217'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: llm
id: 1733838259392-source-1733839459622-target
source: '1733838259392'
sourceHandle: source
target: '1733839459622'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: variable-aggregator
id: 1733839459622-source-1733838975870-target
source: '1733839459622'
sourceHandle: source
target: '1733838975870'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: variable-aggregator
targetType: if-else
id: 1733838975870-source-1733884791909-target
source: '1733838975870'
sourceHandle: source
target: '1733884791909'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: llm
id: 1733884791909-true-1733818066449-target
source: '1733884791909'
sourceHandle: 'true'
target: '1733818066449'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: llm
id: 1733884791909-82c33288-6c05-4666-b85f-10b20d308fd5-1733884903656-target
source: '1733884791909'
sourceHandle: 82c33288-6c05-4666-b85f-10b20d308fd5
target: '1733884903656'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: tool
targetType: variable-aggregator
id: 1733758891787-source-1733927162877-target
source: '1733758891787'
sourceHandle: source
target: '1733927162877'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: tool
targetType: variable-aggregator
id: 1733884489716-source-1733927162877-target
source: '1733884489716'
sourceHandle: source
target: '1733927162877'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: variable-aggregator
targetType: end
id: 1733927162877-source-1733819115715-target
source: '1733927162877'
sourceHandle: source
target: '1733819115715'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: llm
targetType: parameter-extractor
id: 1733884903656-source-1733927513073-target
source: '1733884903656'
sourceHandle: source
target: '1733927513073'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: parameter-extractor
targetType: tool
id: 1733927513073-source-1733884489716-target
source: '1733927513073'
sourceHandle: source
target: '1733884489716'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: ''
selected: false
title: Start
type: start
variables:
- label: user_id
max_length: 48
options: []
required: true
type: text-input
variable: user_id
- label: lang
max_length: 48
options: []
required: true
type: text-input
variable: lang
- label: style
max_length: 48
options: []
required: true
type: text-input
variable: style
- label: avatar
max_length: 48
options: []
required: true
type: text-input
variable: avatar
- label: model
max_length: 48
options: []
required: true
type: text-input
variable: model
height: 194
id: '1733757676391'
position:
x: 78.41553037815004
y: 282
positionAbsolute:
x: 78.41553037815004
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
code: "def main(user_id: str) -> dict:\n import re\n # 检查是否只包含大小写字母、数字和下划线\n\
\ pattern = r'^[a-zA-Z0-9_]+$'\n if not re.match(pattern, user_id):\n\
\ return {\n \"result\": \"wrong_id\"\n }\n \
\ return {\n \"result\": \"correct_id\"\n }"
code_language: python3
desc: ''
outputs:
result:
children: null
type: string
selected: false
title: Code
type: code
variables:
- value_selector:
- '1733757676391'
- user_id
variable: user_id
height: 54
id: '1733757743582'
position:
x: 384
y: 282
positionAbsolute:
x: 384
y: 282
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: not contains
id: 0f9200f9-18d2-4612-b1b6-2ed1f442d343
value: wrong_id
varType: string
variable_selector:
- '1733757743582'
- result
id: 'true'
logical_operator: and
desc: ''
selected: false
title: IF/ELSE
type: if-else
height: 126
id: '1733758275386'
position:
x: 688
y: 282
positionAbsolute:
x: 688
y: 282
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
authorization:
config: null
type: no-auth
body:
data: []
type: none
desc: ''
headers: ''
method: get
params: =:null
selected: false
timeout:
max_connect_timeout: 0
max_read_timeout: 0
max_write_timeout: 0
title: HTTP Request
type: http-request
url: http://{{#env.rss_hub#}}/twitter/user/{{#1733757676391.user_id#}}/exclude_rts
variables: []
height: 131
id: '1733758341919'
position:
x: 992
y: 282
positionAbsolute:
x: 992
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
author: Steven Lynn
desc: ''
height: 88
selected: false
showAuthor: true
text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Twitter
Scraper (RSS Hub)","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
theme: blue
title: ''
type: ''
width: 240
height: 88
id: '1733758348139'
position:
x: 992
y: 149
positionAbsolute:
x: 992
y: 149
selected: false
sourcePosition: right
targetPosition: left
type: custom-note
width: 240
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: '='
id: 4c186840-e749-4b5e-87cc-8f204c8ebdc3
value: '200'
varType: number
variable_selector:
- '1733758341919'
- status_code
id: 'true'
logical_operator: and
desc: ''
selected: false
title: IF/ELSE HTTP Status
type: if-else
height: 126
id: '1733758468081'
position:
x: 1296
y: 282
positionAbsolute:
x: 1296
y: 282
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
provider_id: siliconflow
provider_name: siliconflow
provider_type: builtin
selected: true
title: Flux
tool_configurations:
image_size: 1024x1024
model: schnell
num_inference_steps: 25
seed: null
tool_label: Flux
tool_name: flux
tool_parameters:
prompt:
type: mixed
value: '{{#1733818066449.text#}}'
type: tool
height: 168
id: '1733758891787'
position:
x: 3389.1240138131116
y: 258.2403822940356
positionAbsolute:
x: 3389.1240138131116
y: 258.2403822940356
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: false
variable_selector: []
desc: ''
model:
completion_params:
temperature: 0.7
mode: chat
name: llama-3.1-8b-instant
provider: groq
prompt_template:
- id: e409abd7-d0aa-4594-a80b-b7131e82d539
role: system
text: '<role>
You are a criminal investigation expert who can quickly infer the person''s
gender, age, occupation, psychological state, appearance, and other details
from limited information available on their social media.
</role>
<format>
You need to write in keyword only.
Exaple output:
DEMOGRAPHICS:
Male, 27-32 years old
Caucasian/White ethnic background
Urban residence, likely metropolitan area
OCCUPATION:
Mid-level tech professional
Software developer/IT consultant
Potential freelance work status
PSYCHOLOGICAL INDICATORS:
Moderate social anxiety
Passive-aggressive communication patterns
Low emotional intelligence markers
Potential undiagnosed neurodivergent traits
Compensatory behavior mechanisms
BEHAVIORAL RED FLAGS:
Inconsistent online persona
Sporadic social media engagement
Selective information disclosure
Defensive communication style
Minimal personal photo presence
PHYSICAL CHARACTERISTICS:
Height: 5''10" - 6''1"
Weight: 160-180 lbs
Lean/athletic body type
Possible corrective eyewear
Conservative personal grooming
SOCIAL NETWORK ANALYSIS:
Limited close connections
Professional network dominates
Weak familial engagement
Technical/professional interest groups
Minimal romantic relationship indicators
POTENTIAL RISK ASSESSMENT:
Low physical threat level
High information manipulation potential
Indirect confrontation preference
Intellectual rather than physical aggression
ADDITIONAL OBSERVATIONAL NOTES:
Advanced technical skills
Calculated social interaction approach
Heightened privacy consciousness
Strategic personal brand management
</format>
<constraint>
- Do not talk nonsense.
</constraint>'
- id: 32fa569d-4c2d-44f1-99b0-09aa7e4564fb
role: user
text: '{{#1733758341919.body#}}'
selected: false
title: Investigator
type: llm
variables: []
vision:
enabled: false
height: 98
id: '1733758916777'
position:
x: 1716.970425629363
y: 258.2403822940356
positionAbsolute:
x: 1716.970425629363
y: 258.2403822940356
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
outputs:
- value_selector:
- '1733757743582'
- result
variable: err
selected: false
title: End
type: end
height: 90
id: '1733758959100'
position:
x: 992
y: 452
positionAbsolute:
x: 992
y: 452
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
outputs:
- value_selector:
- '1733758341919'
- status_code
variable: err
selected: false
title: End 2
type: end
height: 90
id: '1733758974144'
position:
x: 1716.970425629363
y: 395.2403822940356
positionAbsolute:
x: 1716.970425629363
y: 395.2403822940356
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: false
variable_selector: []
desc: ''
model:
completion_params:
temperature: 0.7
mode: chat
name: gemini-1.5-flash-8b-exp-0924
provider: google
prompt_template:
- id: 0b49c3e1-f565-472d-9d0c-258364efe5b6
role: system
text: '<role>
You will act as a prompt generator for a Stable Diffusion AI image generator.
</role>
<task>
Your job is to provide detailed and creative descriptions accroding to
the user''s descriptions of a person. You will inspire unique and interesting
images from the AI. Keep in mind that the AI is capable of understanding
a wide range of language and can interpret abstract concepts, so feel
free to be as imaginative and descriptive as possible.
</task>
<style>
The selected style is :{{#1733757676391.style#}}
You need to apply the style in your response.
<format>
You must provide detailed descriptions with scene and poses added.
example output:
A beautiful tanned young woman
stands in a field with flowers at sunset, wearing only
a long, thin, semi-transparent lace
dress that is wide open,unbuttoned, .The light shines
through the delicate fabric, subtly
revealing her curves and body. She
gracefully picks flowers, with the warm,sunset glow ,enhancing her silhouette
against the golden sky.
</format>'
- id: 8a783763-de3e-4b44-adce-9c1034340e5c
role: user
text: '{{#1733838975870.output#}}'
selected: false
title: Image Composer flux
type: llm
variables: []
vision:
enabled: false
height: 98
id: '1733818066449'
position:
x: 2923.2455706435317
y: 371.25984683340727
positionAbsolute:
x: 2923.2455706435317
y: 371.25984683340727
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
outputs:
- value_selector:
- '1733927162877'
- output
variable: img
- value_selector:
- '1733819430217'
- text
variable: prompt
selected: false
title: End 3
type: end
height: 116
id: '1733819115715'
position:
x: 4338.9775947512935
y: 209.90880900614053
positionAbsolute:
x: 4338.9775947512935
y: 209.90880900614053
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: false
variable_selector: []
desc: ''
model:
completion_params:
temperature: 0.7
mode: chat
name: moonshot-v1-8k
provider: moonshot
prompt_template:
- id: 96f132bf-555c-495f-9afb-0b62efe09cd6
role: system
text: "# Role\nYou are a traslation expert who is experienced in multiple\
\ languages. \n\n# Task\nYou are going to translate user's input content\
\ into the following language:{{#1733757676391.lang#}}\n\n# Constraint\n\
Do not talk nonsense."
- id: 4f1191c8-93d4-4d27-bd48-c29cbded6b54
role: user
text: '{{#1733838975870.output#}}'
selected: false
title: Trasnlator
type: llm
variables: []
vision:
enabled: false
height: 98
id: '1733819430217'
position:
x: 2923.2455706435317
y: 170.03475784207797
positionAbsolute:
x: 2923.2455706435317
y: 170.03475784207797
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
cases:
- case_id: 'true'
conditions:
- comparison_operator: is
id: 1f0fbdcb-b41d-44f9-ba2a-6cdefd13939b
value: 'true'
varType: string
variable_selector:
- '1733757676391'
- avatar
id: 'true'
logical_operator: and
desc: ''
selected: false
title: IF/ELSE Avatar
type: if-else
height: 126
id: '1733821282287'
position:
x: 1716.970425629363
y: 37.80820838610424
positionAbsolute:
x: 1716.970425629363
y: 37.80820838610424
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
code: "import re\n\ndef main(body: str) -> dict:\n pattern = r\"<url>(.*?)</url>\"\
\n match = re.search(pattern, body)\n if match:\n avatar_url\
\ = match.group(1)\n return {\"avatar_url\": avatar_url}\n return\
\ {}"
code_language: python3
desc: ''
outputs:
avatar_url:
children: null
type: string
selected: false
title: Avatar Extractor
type: code
variables:
- value_selector:
- '1733758341919'
- body
variable: body
height: 54
id: '1733821593198'
position:
x: 2022.6734717166528
y: 37.80820838610424
positionAbsolute:
x: 2022.6734717166528
y: 37.80820838610424
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: false
variable_selector: []
desc: ''
model:
completion_params:
temperature: 0.7
mode: chat
name: gemini-1.5-flash-8b-exp-0924
provider: google
prompt_template:
- id: 7acba5d3-c4e2-4fa7-9842-54fe8e0e041b
role: system
text: '<role>