This commit is contained in:
somebody
2022-11-22 14:57:20 -06:00
6 changed files with 260 additions and 66 deletions

View File

@@ -12,7 +12,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Generation",
"classname": "model",
"name": "genamt"
"name": "genamt",
"ui_level": 0
},
{
"uitype": "slider",
@@ -27,7 +28,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Generation",
"classname": "model",
"name": "temp"
"name": "temp",
"ui_level": 1
},
{
"uitype": "slider",
@@ -42,7 +44,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Sampling",
"classname": "model",
"name": "top_p"
"name": "top_p",
"ui_level": 1
},
{
@@ -58,7 +61,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Sampling",
"classname": "model",
"name": "top_k"
"name": "top_k",
"ui_level": 1
},
{
"uitype": "slider",
@@ -73,7 +77,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Sampling",
"classname": "model",
"name": "tfs"
"name": "tfs",
"ui_level": 1
},
{
"uitype": "slider",
@@ -88,7 +93,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Sampling",
"classname": "model",
"name": "typical"
"name": "typical",
"ui_level": 1
},
{
"uitype": "slider",
@@ -103,7 +109,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Sampling",
"classname": "model",
"name": "top_a"
"name": "top_a",
"ui_level": 1
},
{
"UI_V2_Only": True,
@@ -119,7 +126,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Repetition",
"classname": "model",
"name": "rep_pen"
"name": "rep_pen",
"ui_level": 1
},
{
"uitype": "slider",
@@ -134,7 +142,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Repetition",
"classname": "model",
"name": "rep_pen_range"
"name": "rep_pen_range",
"ui_level": 1
},
{
"uitype": "slider",
@@ -149,7 +158,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Repetition",
"classname": "model",
"name": "rep_pen_slope"
"name": "rep_pen_slope",
"ui_level": 1
},
{
"uitype": "slider",
@@ -164,7 +174,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Generation",
"classname": "model",
"name": "max_length"
"name": "max_length",
"ui_level": 0
},
{
"uitype": "slider",
@@ -179,7 +190,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Generation",
"classname": "model",
"name": "numseqs"
"name": "numseqs",
"ui_level": 0
},
{
"uitype": "slider",
@@ -195,7 +207,8 @@ gensettingstf = [
"sub_path": "",
"classname": "user",
"name": "widepth",
"extra_classes": "var_sync_alt_system_alt_gen"
"extra_classes": "var_sync_alt_system_alt_gen",
"ui_level": 2
},
{
"uitype": "toggle",
@@ -225,7 +238,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Other",
"classname": "story",
"name": "useprompt"
"name": "useprompt",
"ui_level": 2
},
{
"uitype": "toggle",
@@ -270,7 +284,8 @@ gensettingstf = [
"menu_path": "World Info",
"sub_path": "",
"classname": "story",
"name": "dynamicscan"
"name": "dynamicscan",
"ui_level": 1
},
{
"uitype": "toggle",
@@ -285,7 +300,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Other",
"classname": "user",
"name": "nopromptgen"
"name": "nopromptgen",
"ui_level": 2
},
{
"uitype": "toggle",
@@ -300,7 +316,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Other",
"classname": "user",
"name": "rngpersist"
"name": "rngpersist",
"ui_level": 2
},
{
"uitype": "toggle",
@@ -315,7 +332,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Modifiers",
"classname": "user",
"name": "nogenmod"
"name": "nogenmod",
"ui_level": 2
},
{
"uitype": "toggle",
@@ -343,7 +361,8 @@ gensettingstf = [
"sub_path": "",
"classname": "story",
"name": "storymode",
'children': [{'text': 'Story', 'value': 0}, {'text':'Adventure','value':1}, {'text':'Chat', 'value':2}]
'children': [{'text': 'Story', 'value': 0}, {'text':'Adventure','value':1}, {'text':'Chat', 'value':2}],
"ui_level": 0
},
{
"uitype": "toggle",
@@ -358,7 +377,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "UI",
"classname": "user",
"name": "output_streaming"
"name": "output_streaming",
"ui_level": 1
},
{
"uitype": "toggle",
@@ -374,6 +394,8 @@ gensettingstf = [
"sub_path": "UI",
"classname": "user",
"name": "show_probs"
,
"ui_level": 2
},
{
"uitype": "toggle",
@@ -388,7 +410,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Other",
"classname": "system",
"name": "alt_gen"
"name": "alt_gen",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -404,7 +427,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "Formatting",
"classname": "user",
"name": "frmttriminc"
"name": "frmttriminc",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -420,7 +444,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "Formatting",
"classname": "user",
"name": "frmtrmblln"
"name": "frmtrmblln",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -436,7 +461,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "Formatting",
"classname": "user",
"name": "frmtrmspch"
"name": "frmtrmspch",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -452,7 +478,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "Formatting",
"classname": "user",
"name": "frmtadsnsp"
"name": "frmtadsnsp",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -468,7 +495,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "Formatting",
"classname": "user",
"name": "singleline"
"name": "singleline",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -484,7 +512,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "Formatting",
"classname": "user",
"name": "remove_double_space"
"name": "remove_double_space",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -500,7 +529,8 @@ gensettingstf = [
"menu_path": "author_notes",
"sub_path": "",
"classname": "story",
"name": "andepth"
"name": "andepth",
"ui_level": 2
},
{
"uitype": "toggle",
@@ -527,7 +557,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "UI",
"classname": "user",
"name": "beep_on_complete"
"name": "beep_on_complete",
"ui_level": 0
},
{
"UI_V2_Only": True,
@@ -541,7 +572,8 @@ gensettingstf = [
"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}]
'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,
@@ -554,7 +586,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "Images",
"classname": "user",
"name": "img_gen_api_url"
"name": "img_gen_api_url",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -567,7 +600,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "Images",
"classname": "user",
"name": "img_gen_art_guide"
"name": "img_gen_art_guide",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -580,7 +614,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "Images",
"classname": "user",
"name": "img_gen_negative_prompt"
"name": "img_gen_negative_prompt",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -596,7 +631,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "Images",
"classname": "user",
"name": "img_gen_steps"
"name": "img_gen_steps",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -612,7 +648,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "Images",
"classname": "user",
"name": "img_gen_cfg_scale"
"name": "img_gen_cfg_scale",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -628,7 +665,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "Images",
"classname": "system",
"name": "keep_img_gen_in_memory"
"name": "keep_img_gen_in_memory",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -644,7 +682,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "Images",
"classname": "system",
"name": "generating_image"
"name": "generating_image",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -661,6 +700,8 @@ gensettingstf = [
"sub_path": "UI",
"classname": "system",
"name": "experimental_features"
,
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -678,6 +719,8 @@ gensettingstf = [
"classname": "story",
"name": "gen_audio",
"extra_classes": "var_sync_alt_system_experimental_features"
,
"ui_level": 1
},
{
"UI_V2_Only": True,
@@ -690,7 +733,8 @@ gensettingstf = [
"menu_path": "Interface",
"sub_path": "UI",
"classname": "user",
"name": "privacy_password"
"name": "privacy_password",
"ui_level": 1
},
{
"UI_V2_Only": True,
@@ -709,6 +753,7 @@ gensettingstf = [
{"text": "Legacy", "value": 0},
{"text": "Messages", "value": 1},
],
"ui_level": 1
},
{
"uitype": "toggle",
@@ -723,7 +768,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Other",
"classname": "system",
"name": "full_determinism"
"name": "full_determinism",
"ui_level": 2
},
{
"UI_V2_Only": True,
@@ -739,7 +785,8 @@ gensettingstf = [
"menu_path": "Settings",
"sub_path": "Other",
"classname": "system",
"name": "seed_specified"
"name": "seed_specified",
"ui_level": 2
},
{
"uitype": "text",
@@ -755,7 +802,80 @@ gensettingstf = [
"sub_path": "Other",
"classname": "system",
"name": "seed",
"extra_classes": "var_sync_alt_system_seed_specified"
"extra_classes": "var_sync_alt_system_seed_specified",
"ui_level": 2
},
{
"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}
],
},
{
"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
},
{
"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
},
{
"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
},
]

View File

@@ -655,6 +655,9 @@ class model_settings(settings):
self.horde_wait_time = 0
self.horde_queue_position = 0
self.horde_queue_size = 0
self.simple_randomness = 0
self.simple_creativity = 0
self.simple_repitition = 0
#dummy class to eat the tqdm output
@@ -668,6 +671,24 @@ class model_settings(settings):
super().__setattr__(name, value)
#Put variable change actions here
if name in ['simple_randomness', 'simple_creativity', 'simple_repitition'] and not new_variable:
#We need to disable all of the samplers
self.top_k = 0
self.top_a = 0.0
self.tfs = 1.0
self.typical = 1.0
self.rep_pen_range = 1024
self.rep_pen_slope = 0.7
#Now we setup our other settings
if self.simple_randomness < 0:
self.temp = default_rand_range[1]+(default_rand_range[1]-default_rand_range[0])/100*self.simple_randomness
else:
self.temp = default_rand_range[1]+(default_rand_range[2]-default_rand_range[1])/100*self.simple_randomness
self.top_p = (default_creativity_range[1]-default_creativity_range[0])/200*self.simple_creativity+sum(default_creativity_range)/2
self.rep_pen = (default_rep_range[1]-default_rep_range[0])/200*self.simple_repitition+sum(default_rep_range)/2
if not new_variable and (name == 'max_length' or name == 'genamt'):
ignore = self.koboldai_vars.calc_ai_text()
@@ -1012,6 +1033,7 @@ class user_settings(settings):
self.beep_on_complete = False
self.img_gen_priority = 1
self.show_budget = False
self.ui_level = 2
self.img_gen_api_url = "http://127.0.0.1:7860"
self.img_gen_art_guide = "fantasy illustration, artstation, by jason felix by steve argyle by tyler jacobson by peter mohrbacher, cinematic lighting"
self.img_gen_negative_prompt = "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"
@@ -2157,7 +2179,9 @@ class KoboldWorldInfo(object):
def get_used_wi(self):
return [x['content'] for x in self.world_info if x['used_in_game']]
default_rand_range = [0.1, 1, 2]
default_creativity_range = [0.8, 1]
default_rep_range = [1.75, 2]
badwordsids_default = [[13460], [6880], [50256], [42496], [4613], [17414], [22039], [16410], [27], [29], [38430], [37922], [15913], [24618], [28725], [58], [47175], [36937], [26700], [12878], [16471], [37981], [5218], [29795], [13412], [45160], [3693], [49778], [4211], [20598], [36475], [33409], [44167], [32406], [29847], [29342], [42669], [685], [25787], [7359], [3784], [5320], [33994], [33490], [34516], [43734], [17635], [24293], [9959], [23785], [21737], [28401], [18161], [26358], [32509], [1279], [38155], [18189], [26894], [6927], [14610], [23834], [11037], [14631], [26933], [46904], [22330], [25915], [47934], [38214], [1875], [14692], [41832], [13163], [25970], [29565], [44926], [19841], [37250], [49029], [9609], [44438], [16791], [17816], [30109], [41888], [47527], [42924], [23984], [49074], [33717], [31161], [49082], [30138], [31175], [12240], [14804], [7131], [26076], [33250], [3556], [38381], [36338], [32756], [46581], [17912], [49146]] # Tokenized array of badwords used to prevent AI artifacting
badwordsids_neox = [[0], [1], [44162], [9502], [12520], [31841], [36320], [49824], [34417], [6038], [34494], [24815], [26635], [24345], [3455], [28905], [44270], [17278], [32666], [46880], [7086], [43189], [37322], [17778], [20879], [49821], [3138], [14490], [4681], [21391], [26786], [43134], [9336], [683], [48074], [41256], [19181], [29650], [28532], [36487], [45114], [46275], [16445], [15104], [11337], [1168], [5647], [29], [27482], [44965], [43782], [31011], [42944], [47389], [6334], [17548], [38329], [32044], [35487], [2239], [34761], [7444], [1084], [12399], [18990], [17636], [39083], [1184], [35830], [28365], [16731], [43467], [47744], [1138], [16079], [40116], [45564], [18297], [42368], [5456], [18022], [42696], [34476], [23505], [23741], [39334], [37944], [45382], [38709], [33440], [26077], [43600], [34418], [36033], [6660], [48167], [48471], [15775], [19884], [41533], [1008], [31053], [36692], [46576], [20095], [20629], [31759], [46410], [41000], [13488], [30952], [39258], [16160], [27655], [22367], [42767], [43736], [49694], [13811], [12004], [46768], [6257], [37471], [5264], [44153], [33805], [20977], [21083], [25416], [14277], [31096], [42041], [18331], [33376], [22372], [46294], [28379], [38475], [1656], [5204], [27075], [50001], [16616], [11396], [7748], [48744], [35402], [28120], [41512], [4207], [43144], [14767], [15640], [16595], [41305], [44479], [38958], [18474], [22734], [30522], [46267], [60], [13976], [31830], [48701], [39822], [9014], [21966], [31422], [28052], [34607], [2479], [3851], [32214], [44082], [45507], [3001], [34368], [34758], [13380], [38363], [4299], [46802], [30996], [12630], [49236], [7082], [8795], [5218], [44740], [9686], [9983], [45301], [27114], [40125], [1570], [26997], [544], [5290], [49193], [23781], [14193], [40000], [2947], [43781], [9102], [48064], [42274], [18772], [49384], [9884], [45635], [43521], [31258], [32056], [47686], [21760], [13143], [10148], [26119], [44308], [31379], [36399], [23983], [46694], [36134], [8562], [12977], [35117], [28591], [49021], [47093], [28653], [29013], [46468], [8605], [7254], [25896], [5032], [8168], [36893], [38270], [20499], [27501], [34419], [29547], [28571], [36586], [20871], [30537], [26842], [21375], [31148], [27618], [33094], [3291], [31789], [28391], [870], [9793], [41361], [47916], [27468], [43856], [8850], [35237], [15707], [47552], [2730], [41449], [45488], [3073], [49806], [21938], [24430], [22747], [20924], [46145], [20481], [20197], [8239], [28231], [17987], [42804], [47269], [29972], [49884], [21382], [46295], [36676], [34616], [3921], [26991], [27720], [46265], [654], [9855], [40354], [5291], [34904], [44342], [2470], [14598], [880], [19282], [2498], [24237], [21431], [16369], [8994], [44524], [45662], [13663], [37077], [1447], [37786], [30863], [42854], [1019], [20322], [4398], [12159], [44072], [48664], [31547], [18736], [9259], [31], [16354], [21810], [4357], [37982], [5064], [2033], [32871], [47446], [62], [22158], [37387], [8743], [47007], [17981], [11049], [4622], [37916], [36786], [35138], [29925], [14157], [18095], [27829], [1181], [22226], [5709], [4725], [30189], [37014], [1254], [11380], [42989], [696], [24576], [39487], [30119], [1092], [8088], [2194], [9899], [14412], [21828], [3725], [13544], [5180], [44679], [34398], [3891], [28739], [14219], [37594], [49550], [11326], [6904], [17266], [5749], [10174], [23405], [9955], [38271], [41018], [13011], [48392], [36784], [24254], [21687], [23734], [5413], [41447], [45472], [10122], [17555], [15830], [47384], [12084], [31350], [47940], [11661], [27988], [45443], [905], [49651], [16614], [34993], [6781], [30803], [35869], [8001], [41604], [28118], [46462], [46762], [16262], [17281], [5774], [10943], [5013], [18257], [6750], [4713], [3951], [11899], [38791], [16943], [37596], [9318], [18413], [40473], [13208], [16375]]
badwordsids_opt = [[44717], [46613], [48513], [49923], [50185], [48755], [8488], [43303], [49659], [48601], [49817], [45405], [48742], [49925], [47720], [11227], [48937], [48784], [50017], [42248], [49310], [48082], [49895], [50025], [49092], [49007], [8061], [44226], [0], [742], [28578], [15698], [49784], [46679], [39365], [49281], [49609], [48081], [48906], [46161], [48554], [49670], [48677], [49721], [49632], [48610], [48462], [47457], [10975], [46077], [28696], [48709], [43839], [49798], [49154], [48203], [49625], [48395], [50155], [47161], [49095], [48833], [49420], [49666], [48443], [22176], [49242], [48651], [49138], [49750], [40389], [48021], [21838], [49070], [45333], [40862], [1], [49915], [33525], [49858], [50254], [44403], [48992], [48872], [46117], [49853], [47567], [50206], [41552], [50068], [48999], [49703], [49940], [49329], [47620], [49868], [49962], [2], [44082], [50236], [31274], [50260], [47052], [42645], [49177], [17523], [48691], [49900], [49069], [49358], [48794], [47529], [46479], [48457], [646], [49910], [48077], [48935], [46386], [48902], [49151], [48759], [49803], [45587], [48392], [47789], [48654], [49836], [49230], [48188], [50264], [46844], [44690], [48505], [50161], [27779], [49995], [41833], [50154], [49097], [48520], [50018], [8174], [50084], [49366], [49526], [50193], [7479], [49982], [3]]

View File

@@ -3053,4 +3053,20 @@ select {
#penalty_alpha[system_use_colab_tpu=true] {
display: none;
}
.simple_ui_only {
display: none;
}
.simple_ui_only[user_ui_level="0"] {
display: inherit;
}
.simple_ui_only.setting_container[user_ui_level="0"] {
display: grid;
}
#tts[system_experimental_features="false"] {
display: none;
}

View File

@@ -735,6 +735,10 @@ function var_changed(data) {
updateChatStyle();
}
if ((data.classname == "user") && (data.name == "ui_level")) {
set_ui_level(data.value);
}
//Special Case for Actions
if ((data.classname == "story") && (data.name == "actions")) {
process_actions_data(data)
@@ -2943,6 +2947,35 @@ function save_preset() {
}
//--------------------------------------------General UI Functions------------------------------------
function set_ui_level(level) {
for (classname of ['setting_container', 'setting_container_single', 'setting_container_single_wide', 'biasing', 'palette_area']) {
for (element of document.getElementsByClassName(classname)) {
if (parseInt(element.getAttribute('ui_level')) <= level) {
element.classList.remove("hidden");
} else {
element.classList.add("hidden");
}
}
}
for (category of document.getElementsByClassName('collapsable_header')) {
hide = true;
for (element of category.nextElementSibling.children) {
if ((!element.classList.contains('help_text')) && (!element.classList.contains('hidden'))) {
hide = false;
break;
}
}
if (hide) {
category.classList.add("hidden");
category.nextElementSibling.classList.add("hidden");
} else {
category.classList.remove("hidden");
category.nextElementSibling.classList.remove("hidden");
}
}
}
function privacy_mode(enabled) {
if (enabled) {
document.getElementById('SideMenu').classList.add("superblur");

View File

@@ -83,7 +83,7 @@
</div>
<hr/>
</div>
<div id=" class="var_sync_alt_system_experimental_features">
<div id="tts" class="var_sync_alt_system_experimental_features">
<audio controls id="reader" preload=none>
</div>
<div class="setting_tile_area">
@@ -142,7 +142,7 @@
{% with sub_path='Sampling' %}
{% include 'settings item.html' %}
{% endwith %}
<div class="setting_container_single">
<div class="setting_container_single" ui_level=2>
<!---Top Row---->
<span class="setting_label">
<span>Samplers Order:&nbsp;</span><span class="helpicon material-icons-outlined" tooltip="Changes the order of the samplers to have a considerably different effect than just leaving the samplers at their default order.">help_icon</span>
@@ -212,7 +212,7 @@
<span class="setting_minlabel"><span style="top: -4px; position: relative;"></span></span>
<span class="setting_maxlabel"><span style="top: -4px; position: relative;"></span></span>
</div>
<div class="setting_container_single_wide">
<div class="setting_container_single_wide" ui_level=2>
<!---Top Row---->
<span class="setting_label">
<span style="white-space: pre-wrap;">Enabled Userscripts: </span>
@@ -237,7 +237,7 @@
<div class="collapsable_header" onclick="toggle_setting_category(this);">
<h4 style="width:var(--flyout_menu_width);"><span class="material-icons-outlined cursor">expand_more</span> Biasing</h4>
</div>
<div id="biasing">
<div id="biasing"class="biasing" ui_level=1>
<div class="help_text">Influence the likelihood for the AI to output certain phrases.</div>
<div class="bias_header">
<div class="bias_header_phrase">Phrase</div>
@@ -315,22 +315,23 @@
<div class="collapsable_header" onclick="toggle_setting_category(this);">
<h4 style="width:var(--flyout_menu_width);"><span class="material-icons-outlined cursor">expand_more</span> Substitutions</h4>
</div>
<div>
<div class="setting_tile_area setting_container_single_wide" id="Substitutions" ui_level=2>
<div class="help_text">
Automatically replaces phrases that you or the AI insert.
<span class="helpicon material-icons-outlined" tooltip="Can be used to help you insert special characters or automatically correct the AI. The pencil button toggles if a substitution is active or not.">help_icon</span>
</div>
<div class="setting_tile_area" id="Substitutions">
<div class="help_text">
Automatically replaces phrases that you or the AI insert.
<span class="helpicon material-icons-outlined" tooltip="Can be used to help you insert special characters or automatically correct the AI. The pencil button toggles if a substitution is active or not.">help_icon</span>
</div>
<div id="substitution-header" class="noselect">
<b>Replace</b> <b>With</b>
</div>
<div id="substitution-container"></div>
<div id="substitution-header" class="noselect">
<b>Replace</b> <b>With</b>
</div>
<div id="substitution-container"></div>
<div id="new-sub-card" class="cursor" tooltip="Add Substitution">
<span class="material-icons-outlined">
add
</span>
<div id="new-sub-card" class="cursor" tooltip="Add Substitution">
<span class="material-icons-outlined">
add
</span>
</div>
</div>
</div>
@@ -351,7 +352,7 @@
<div class="setting_tile_area" id="Theme">
<select id="selected_theme" class="var_sync_system_theme_list" autocomplete="off" onchange="Change_Theme(this.value);">
</select><span class="material-icons-outlined cursor" tooltip="Refresh List" onclick="socket.emit('theme_list_refresh', '');">autorenew</span>
<div id="palette_area">
<div id="palette_area" class="palette_area" ui_level=2>
<b style="font-size: 20px;">Palette</b>
<div id="save_theme_area" >
<input type="text" id="save_theme_name" autocomplete="off" placeholder="New Theme Name"/>
@@ -420,9 +421,9 @@
</div>
<div class="collapsable_header" onclick="toggle_setting_category(this);">
<h4 style="width:var(--flyout_menu_width);"><span class="material-icons-outlined cursor">expand_more</span> Tweaks</h4>
<h4 style="width:var(--flyout_menu_width);"><span class="material-icons-outlined cursor">navigate_next</span> Tweaks</h4>
</div>
<div class="setting_tile_area" id="Tweaks">
<div class="setting_tile_area hidden" id="Tweaks">
<div class="help_text">Small UI changes that can be mixed and matched.</div>
<div class="tweak-container" tweak-path="hide-timing">
<span>Hide timing information</span>

View File

@@ -1,15 +1,15 @@
{% for item in settings %}
{% if item["menu_path"] == menu and item['sub_path'] == sub_path %}
{% if 'extra_classes' in item %}
<div id="{{ item['name'] }}_card" class="setting_container {{ item['extra_classes'] }}">
<div id="{{ item['name'] }}_card" class="setting_container {{ item['extra_classes'] }}" ui_level="{{ item['ui_level'] }}">
{% else %}
<div id="{{ item['name'] }}_card" class="setting_container">
<div id="{{ item['name'] }}_card" class="setting_container" ui_level="{{ item['ui_level'] }}">
{% endif %}
<!---Top Row---->
<span class="setting_label">
<span>{{ item['label'] }}:&nbsp;</span><span class="helpicon material-icons-outlined" tooltip="{{ item['tooltip'] }}">help_icon</span>
</span>
{% if (item['unit'] != 'bool') and (item['unit'] != 'text') %}
{% if (item['unit'] != 'bool') and (item['unit'] != 'text') and (item['uitype'] != 'dropdown') %}
<input autocomplete="off" class="setting_value var_sync_{{ item['classname'] }}_{{ item['name'] }}" id="{{ item['classname'] }}_{{ item['name'] }}_cur"
value="{{ item['default'] }}" item_id="{{ item['classname'] }}_{{ item['name'] }}"
{% if item['unit'] == 'float' %} inputmode="decimal"{% elif item['unit'] == 'float' %} inputmode="numeric"{% endif %}