forked from henk717/KoboldAI
-
Notifications
You must be signed in to change notification settings - Fork 31
/
gensettings.py
1333 lines (1330 loc) · 32.8 KB
/
gensettings.py
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
gensettingstf = [
{
"uitype": "slider",
"unit": "int",
"label": "Output Length",
"id": "setoutput",
"min": 16,
"max": 512,
"step": 2,
"default": 80,
"tooltip": "Number of tokens to be generated. Higher values will take longer to generate.",
"menu_path": "Settings",
"sub_path": "Generation",
"classname": "model",
"name": "genamt",
"ui_level": 0
},
{
"uitype": "slider",
"unit": "float",
"label": "Temperature",
"id": "settemp",
"min": 0.1,
"max": 2.0,
"step": 0.01,
"default": 0.5,
"tooltip": "Randomness of sampling. Higher values can increase creativity, but make the output less meaningful. Lower values will make the output more predictable, but it may become more repetitive.",
"menu_path": "Settings",
"sub_path": "Generation",
"classname": "model",
"name": "temp",
"ui_level": 1
},
{
"uitype": "slider",
"unit": "float",
"label": "Top P Sampling",
"id": "settopp",
"min": 0.0,
"max": 1.0,
"step": 0.01,
"default": 0.9,
"tooltip": "Used to discard unlikely text in the sampling process. Lower values will make the output more predictable, but also repetitive. (Put this value on 1 to disable its effect)",
"menu_path": "Settings",
"sub_path": "Sampling",
"classname": "model",
"name": "top_p",
"ui_level": 1
},
{
"uitype": "slider",
"unit": "int",
"label": "Top K Sampling",
"id": "settopk",
"min": 0,
"max": 100,
"step": 1,
"default": 0,
"tooltip": "Alternative sampling method. Can be combined with top_p. (Put this value on 0 to disable its effect)",
"menu_path": "Settings",
"sub_path": "Sampling",
"classname": "model",
"name": "top_k",
"ui_level": 1
},
{
"uitype": "slider",
"unit": "float",
"label": "Tail Free Sampling",
"id": "settfs",
"min": 0.0,
"max": 1.0,
"step": 0.01,
"default": 1.0,
"tooltip": "Alternative sampling method. It is recommended to disable top_p and top_k (set top_p to 1 and top_k to 0) if this setting is used. 0.95 is a suggested value for this setting. (Put this value on 1 to disable its effect)",
"menu_path": "Settings",
"sub_path": "Sampling",
"classname": "model",
"name": "tfs",
"ui_level": 1
},
{
"uitype": "slider",
"unit": "float",
"label": "Typical Sampling",
"id": "settypical",
"min": 0.0,
"max": 1.0,
"step": 0.01,
"default": 1.0,
"tooltip": "Alternative sampling method. Described in the paper \"Typical Decoding for Natural Language Generation\" (10.48550/ARXIV.2202.00666). The paper indicates 0.2 as a suggested value for this setting. (Put this value on 1 to disable its effect)",
"menu_path": "Settings",
"sub_path": "Sampling",
"classname": "model",
"name": "typical",
"ui_level": 1
},
{
"uitype": "slider",
"unit": "float",
"label": "Top A Sampling",
"id": "settopa",
"min": 0.0,
"max": 1.0,
"step": 0.01,
"default": 0.0,
"tooltip": "Alternative sampling method. Reduces the randomness of the AI whenever the probability of one token is much higher than all the others. Higher values have a stronger effect. (Put this value on 0 to disable its effect)",
"menu_path": "Settings",
"sub_path": "Sampling",
"classname": "model",
"name": "top_a",
"ui_level": 1
},
{
"uitype": "slider",
"unit": "float",
"label": "Repetition Penalty",
"id": "setreppen",
"min": 1.0,
"max": 3.0,
"step": 0.01,
"default": 1.1,
"tooltip": "Used to penalize words that were already generated or belong to the context.",
"menu_path": "Settings",
"sub_path": "Repetition",
"classname": "model",
"name": "rep_pen",
"ui_level": 1
},
{
"uitype": "slider",
"unit": "int",
"label": "Rep Pen Range",
"id": "setreppenrange",
"min": 0,
"max": 4096,
"step": 4,
"default": 0,
"tooltip": "Repetition penalty range. If set higher than 0, only applies repetition penalty to the last few tokens of the story rather than applying it to the entire story. The slider controls the amount of tokens at the end of your story to apply it to.",
"menu_path": "Settings",
"sub_path": "Repetition",
"classname": "model",
"name": "rep_pen_range",
"ui_level": 1
},
{
"uitype": "slider",
"unit": "float",
"label": "Rep Pen Slope",
"id": "setreppenslope",
"min": 0.0,
"max": 10.0,
"step": 0.1,
"default": 0.0,
"tooltip": "Repetition penalty slope. If both this setting and Rep Penalty Range are set higher than 0, will use sigmoid interpolation to apply repetition penalty more strongly on tokens that are closer to the end of the story. Higher values will result in the repetition penalty difference between the start and end of your story being more apparent. (Setting this to 1 uses linear interpolation; setting this to 0 disables interpolation)",
"menu_path": "Settings",
"sub_path": "Repetition",
"classname": "model",
"name": "rep_pen_slope",
"ui_level": 1
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Alt Rep Pen",
"id": "use_alt_rep_pen",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Applies repetition penalty as a logarithmic modifier rather than a linear modifier.",
"menu_path": "Settings",
"sub_path": "Repetition",
"classname": "model",
"name": "use_alt_rep_pen",
"ui_level": 2
},
{
"uitype": "slider",
"unit": "int",
"label": "Context Tokens",
"id": "settknmax",
"min": 512,
"max": 2048,
"step": 8,
"default": 1024,
"tooltip": "Number of context tokens to submit to the AI for sampling. Make sure this is higher than Output Length. Higher values increase VRAM/RAM usage.",
"menu_path": "Settings",
"sub_path": "Generation",
"classname": "model",
"name": "max_length",
"ui_level": 0
},
{
"uitype": "slider",
"unit": "int",
"label": "Gens Per Action",
"id": "setnumseq",
"min": 1,
"max": 5,
"step": 1,
"default": 1,
"tooltip": "Number of generated output choices. Increases VRAM/RAM usage.",
"menu_path": "Settings",
"sub_path": "Generation",
"classname": "model",
"name": "numseqs",
"ui_level": 0
},
{
"uitype": "slider",
"unit": "int",
"label": "WI Depth",
"id": "setwidepth",
"min": 1,
"max": 5,
"step": 1,
"default": 3,
"tooltip": "Number of actions from the end of the story to scan for World Info keys.",
"menu_path": "World Info",
"sub_path": "",
"classname": "user",
"name": "widepth",
"extra_classes": "var_sync_alt_system_alt_gen",
"ui_level": 2
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Auto Save",
"id": "autosave",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Whether the story is saved after each action.",
"menu_path": "Home",
"sub_path": "",
"classname": "story",
"name": "autosave",
"ui_level": 0
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Contextual Prompt",
"id": "setuseprompt",
"min": 0,
"max": 1,
"step": 1,
"default": 1,
"tooltip": "Whether the prompt should be sent in the context of every action.",
"menu_path": "Settings",
"sub_path": "Other",
"classname": "story",
"name": "useprompt",
"ui_level": 2
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Adventure Mode",
"id": "setadventure",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Turn this on if you are playing a Choose your Adventure model.",
#"menu_path": "Story",
#"sub_path": "",
#"classname": "story",
#"name": "adventure"
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Chat Mode",
"id": "setchatmode",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "This mode optimizes KoboldAI for chatting.",
#"menu_path": "Story",
#"sub_path": "",
#"classname": "story",
#"name": "chatmode"
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Dynamic WI Scan",
"id": "setdynamicscan",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Scans the AI's output for World Info keys as it is generating the one.",
"menu_path": "World Info",
"sub_path": "",
"classname": "story",
"name": "dynamicscan",
"ui_level": 1
},
{
"uitype": "toggle",
"unit": "bool",
"label": "No Prompt Gen",
"id": "setnopromptgen",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "If enabled, the AI does not generate a continuation of the entered prompt. Instead, you must perform an action first.",
"menu_path": "Settings",
"sub_path": "Other",
"classname": "user",
"name": "nopromptgen",
"ui_level": 2
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Prefilled Memory",
"id": "setrngpersist",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "If enabled, the Memory box in Random Story will be filled with the memory of the current story instead of being empty.",
"menu_path": "Settings",
"sub_path": "Other",
"classname": "user",
"name": "rngpersist",
"ui_level": 2
},
{
"uitype": "toggle",
"unit": "bool",
"label": "No Genmod",
"id": "setnogenmod",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Disables the userscripts' ability to edit output.",
"menu_path": "Settings",
"sub_path": "Modifiers",
"classname": "user",
"name": "nogenmod",
"ui_level": 2
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Debug",
"id": "debug",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Shows debug information.",
"menu_path": "",
"sub_path": "",
"classname": "user",
"name": "debug"
},
{
"uitype": "dropdown",
"unit": "text",
"label": "Game Mode",
"id": "storymode",
"default": 0,
"tooltip": "Select KoboldAI mode.",
"menu_path": "Home",
"sub_path": "",
"classname": "story",
"name": "storymode",
'children': [{'text': 'Story', 'value': 0}, {'text':'Adventure','value':1}, {'text':'Chat', 'value':2}],
"ui_level": 0
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Token Streaming",
"id": "setoutputstreaming",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Shows tokens as they are generated.",
"menu_path": "Interface",
"sub_path": "UI",
"classname": "user",
"name": "output_streaming",
"ui_level": 1
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Token Probabilities",
"id": "setshowprobs",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Adds context menu to the output showing what other words were considered as it was generated.",
"menu_path": "Interface",
"sub_path": "UI",
"classname": "user",
"name": "show_probs"
,
"ui_level": 2
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Alt Text Gen",
"id": "alttextgen",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Inserts World Info entries behind text that first triggers them for better context with unlimited depth.",
"menu_path": "Settings",
"sub_path": "Other",
"classname": "system",
"name": "alt_gen",
"ui_level": 2
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Alt Multi Gen",
"id": "alt_multi_gen",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Runs Gens per Action one at a time so you can select one if you like it without having to wait.",
"menu_path": "Settings",
"sub_path": "Other",
"classname": "model",
"name": "alt_multi_gen",
"ui_level": 2,
"extra_classes": "var_sync_alt_system_experimental_features"
},
{
"UI_V2_Only": True,
"uitype": "toggle",
"unit": "bool",
"label": "Trim Sentences",
"id": "frmttriminc",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Deletes the text after the last sentence closure. If no closure is found, all tokens are returned.",
"menu_path": "Interface",
"sub_path": "Formatting",
"classname": "user",
"name": "frmttriminc",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "toggle",
"unit": "bool",
"label": "No Blank Lines",
"id": "frmtrmblln",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Replaces double newlines (\\n\\n) with single ones to avoid blank lines.",
"menu_path": "Interface",
"sub_path": "Formatting",
"classname": "user",
"name": "frmtrmblln",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "toggle",
"unit": "bool",
"label": "No Special Chars",
"id": "frmtrmspch",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Removes special characters (@,#,%,^, etc).",
"menu_path": "Interface",
"sub_path": "Formatting",
"classname": "user",
"name": "frmtrmspch",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "toggle",
"unit": "bool",
"label": "Auto Spacing",
"id": "frmtadsnsp",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Adds spaces automatically if necessary.",
"menu_path": "Interface",
"sub_path": "Formatting",
"classname": "user",
"name": "frmtadsnsp",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "toggle",
"unit": "bool",
"label": "Single Line",
"id": "singleline",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Allows the AI to generate an output only before the enter.",
"menu_path": "Interface",
"sub_path": "Formatting",
"classname": "user",
"name": "singleline",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "toggle",
"unit": "bool",
"label": "No Double Spaces",
"id": "remove_double_space",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Removes any double spaces in the output.",
"menu_path": "Interface",
"sub_path": "Formatting",
"classname": "user",
"name": "remove_double_space",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "slider",
"unit": "int",
"label": "AN Depth",
"id": "singleline",
"min": 1,
"max": 5,
"step": 1,
"default": 3,
"tooltip": "Number of actions from the end of the story to insert Author's Note info.",
"menu_path": "author_notes",
"sub_path": "",
"classname": "story",
"name": "andepth",
"ui_level": 2
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Show Field Budget",
"id": "setshowbudget",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Shows the number of tokens when typing in text boxes. May cause lags."
},
{
"UI_V2_Only": True,
"uitype": "toggle",
"unit": "bool",
"label": "Beep on Complete",
"id": "beep_on_complete",
"min": 1,
"max": 5,
"step": 1,
"default": 3,
"tooltip": "If enabled, you will hear a beeping sound when generation or model loading is complete.",
"menu_path": "Interface",
"sub_path": "UI",
"classname": "user",
"name": "beep_on_complete",
"ui_level": 0
},
{
"UI_V2_Only": True,
"uitype": "dropdown",
"unit": "text",
"label": "Image Priority",
"id": "img_gen_priority",
"default": 1,
"tooltip": "Determines where the image will be generated.",
"menu_path": "Interface",
"sub_path": "Images",
"classname": "user",
"name": "img_gen_priority",
'children': [{'text': 'Use Local Only', 'value': 0}, {'text':'Prefer Local','value':1}, {'text':'Prefer Horde', 'value':2}, {'text':'Use Horde Only', 'value':3}, {'text':'Use Local SD-WebUI API', 'value':4}],
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "text",
"unit": "text",
"label": "Img API URL",
"id": "img_gen_api_url",
"default": "",
"tooltip": "The URL to use when selecting Use Local SD-WebUI API setting in Image Priority",
"menu_path": "Interface",
"sub_path": "Images",
"classname": "user",
"name": "img_gen_api_url",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "text",
"unit": "text",
"label": "Img API Username",
"id": "img_gen_api_username",
"default": "",
"tooltip": "If your web-ui is behind basic web authentication, enter the username here",
"menu_path": "Interface",
"sub_path": "Images",
"classname": "user",
"name": "img_gen_api_username",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "password",
"unit": "text",
"label": "Img API Password",
"id": "img_gen_api_password",
"default": "",
"tooltip": "If your web-ui is behind basic web authentication, enter the password here",
"menu_path": "Interface",
"sub_path": "Images",
"classname": "user",
"name": "img_gen_api_password",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "text",
"unit": "text",
"label": "Art Guide",
"id": "img_gen_art_guide",
"default": "",
"tooltip": "The art guide sent with image gen requests. <|> (optional) is replaced with the story summary, otherwise the art guide is appended to the summary. \nDefault: masterpiece, digital painting, <|>, dramatic lighting, highly detailed, trending",
"menu_path": "Interface",
"sub_path": "Images",
"classname": "user",
"name": "img_gen_art_guide",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "text",
"unit": "text",
"label": "Negative Prompt",
"id": "img_gen_negative_prompt",
"default": "",
"tooltip": "Enter features you do not want generated in your images here, only works for img_gen_api. \nDefault: lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, artist name",
"menu_path": "Interface",
"sub_path": "Images",
"classname": "user",
"name": "img_gen_negative_prompt",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "slider",
"unit": "int",
"label": "Steps",
"id": "img_gen_steps",
"min": 15,
"max": 50,
"step": 1,
"default": "30",
"tooltip": "Set the number of iterations the image generator will use to refine your image.\nDefault:30",
"menu_path": "Interface",
"sub_path": "Images",
"classname": "user",
"name": "img_gen_steps",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "slider",
"unit": "float",
"label": "Cfg Scale",
"id": "img_gen_cfg_scale",
"min": 1,
"max": 30,
"step": 0.5,
"default": "7",
"tooltip": "Set how strictly the AI will follow prompts, 5-15 are good values.\nDefault:7",
"menu_path": "Interface",
"sub_path": "Images",
"classname": "user",
"name": "img_gen_cfg_scale",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "toggle",
"unit": "bool",
"label": "Model in Memory",
"id": "keep_img_gen_in_memory",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "If enabled, the system will keep the model in memory, speeding up image generation time.",
"menu_path": "Interface",
"sub_path": "Images",
"classname": "system",
"name": "keep_img_gen_in_memory",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "toggle",
"unit": "bool",
"label": "Experimental UI",
"id": "experimental_features",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "If enabled, experimental features will be displayed in the UI.",
"menu_path": "Interface",
"sub_path": "UI",
"classname": "system",
"name": "experimental_features"
,
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "toggle",
"unit": "bool",
"label": "Generate Audio",
"id": "gen_audio",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "If enabled, The system will generate audio files for each action.",
"menu_path": "Interface",
"sub_path": "UI",
"classname": "story",
"name": "gen_audio",
"extra_classes": "var_sync_alt_system_experimental_features"
,
"ui_level": 1
},
{
"UI_V2_Only": True,
"uitype": "password",
"unit": "text",
"label": "Privacy Password",
"id": "privacy_password",
"default": "",
"tooltip": "The password to unblur the UI when Ctrl+L is hit.",
"menu_path": "Interface",
"sub_path": "UI",
"classname": "user",
"name": "privacy_password",
"ui_level": 1
},
{
"UI_V2_Only": True,
"uitype": "dropdown",
"unit": "text",
"label": "Chat Style",
"id": "chat_style",
"default": 0,
"tooltip": "How chat messages are shown",
"menu_path": "Interface",
"sub_path": "UI",
"classname": "story",
"name": "chat_style",
"extra_classes": "var_sync_alt_system_experimental_features",
"children": [
{"text": "Legacy", "value": 0},
{"text": "Messages", "value": 1},
],
"ui_level": 1
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Full Determinism",
"id": "setfulldeterminism",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Causes generation to be fully deterministic. The model will always generate the same thing as long as your story, settings and RNG seed are the same. If disabled, only the sequence of outputs the model generates is deterministic.",
"menu_path": "Settings",
"sub_path": "Other",
"classname": "system",
"name": "full_determinism",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "text",
"unit": "text",
"label": "Horde Worker Name",
"id": "horde_worker_name",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "This is the name of your worker that shows up on the Horde",
"menu_path": "Settings",
"sub_path": "Other",
"classname": "user",
"name": "horde_worker_name",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "password",
"unit": "text",
"label": "Horde API Key",
"id": "horde_api_key",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "You can paste your API key here for faster generations and to earn Kudo's as a worker",
"menu_path": "Settings",
"sub_path": "Other",
"classname": "user",
"name": "horde_api_key",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "toggle",
"unit": "bool",
"label": "Use AI Seed",
"id": "seed_specified",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "If enabled, a specific seed will be used for the random generator on text generation",
"menu_path": "Settings",
"sub_path": "Other",
"classname": "system",
"name": "seed_specified",
"ui_level": 2
},
{
"uitype": "text",
"unit": "text",
"label": "RNG seed",
"id": "seed",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "The seed number used to generate the AI text. Output will change if this number is changed.",
"menu_path": "Settings",
"sub_path": "Other",
"classname": "system",
"name": "seed",
"extra_classes": "var_sync_alt_system_seed_specified",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "dropdown",
"unit": "int",
"label": "UI Mode",
"id": "ui_level",
"min": 0,
"max": 2,
"step": 1,
"default": 0,
"tooltip": "How complex you want the UI.",
"menu_path": "Home",
"sub_path": "",
"classname": "user",
"name": "ui_level",
"ui_level": 0,
"children": [
{"text": "Simple", "value": 0},
{"text": "Advanced", "value": 1},
{"text": "Power User", "value": 2}
],
},
{
"UI_V2_Only": True,
"uitype": "slider",
"unit": "int",
"label": "Randomness",
"id": "simple_randomness",
"min": -100,
"max": 100,
"step": 1,
"default": 0,
"tooltip": "How random the AI should be. Negative numbers is less random, positive is more random.",
"menu_path": "Home",
"sub_path": "",
"classname": "model",
"name": "simple_randomness",
"extra_classes": "simple_ui_only var_sync_alt_user_ui_level",
"ui_level": 0
},
{
"UI_V2_Only": True,
"uitype": "slider",
"unit": "int",
"label": "Creativity",
"id": "simple_creativity",
"min": -100,
"max": 100,
"step": 1,
"default": 0,
"tooltip": "How creative the AI should be. Negative numbers is less creative, positive is more creative.",
"menu_path": "Home",
"sub_path": "",
"classname": "model",
"name": "simple_creativity",
"extra_classes": "simple_ui_only var_sync_alt_user_ui_level",
"ui_level": 0
},
{
"UI_V2_Only": True,
"uitype": "slider",
"unit": "int",
"label": "Repetiveness",
"id": "simple_repitition",
"min": -100,
"max": 100,
"step": 1,
"default": 0,
"tooltip": "How repetitive the AI should be. Negative numbers is less repetitive, positive is more repetitive.",
"menu_path": "Home",
"sub_path": "",
"classname": "model",
"name": "simple_repitition",
"extra_classes": "simple_ui_only var_sync_alt_user_ui_level",
"ui_level": 0
},
{
"UI_V2_Only": True,
"uitype": "slider",
"unit": "int",
"label": "WI Gen Amount",
"id": "wigen_amount",
"min": 25,
"max": 125,
"step": 1,
"default": 80,
"tooltip": "How many tokens the World Info Generator creates.",
"menu_path": "World Info",
"sub_path": "",
"classname": "user",
"name": "wigen_amount",
"ui_level": 2
},
{
"UI_V2_Only": True,
"uitype": "toggle",
"unit": "bool",
"label": "Native WI Gen",
"id": "wigen_use_own_wi",
"default": False,
"tooltip": "Uses your existing applicable (has title, type, content) World Info entries as inspiration for generated ones.",
"menu_path": "World Info",
"sub_path": "",
"classname": "user",
"name": "wigen_use_own_wi",
"ui_level": 2
},
]
gensettingsik =[{
"uitype": "slider",
"unit": "float",
"label": "Temperature",
"id": "settemp",
"min": 0.1,