mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
928 lines
23 KiB
Python
928 lines
23 KiB
Python
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"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"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"
|
|
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"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 an optimal value for this setting. (Put this value on 1 to disable its effect)",
|
|
"menu_path": "Settings",
|
|
"sub_path": "Sampling",
|
|
"classname": "model",
|
|
"name": "tfs"
|
|
},
|
|
{
|
|
"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 suggests 0.2 as an optimal value for this setting. (Put this value on 1 to disable its effect)",
|
|
"menu_path": "Settings",
|
|
"sub_path": "Sampling",
|
|
"classname": "model",
|
|
"name": "typical"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"uitype": "slider",
|
|
"unit": "int",
|
|
"label": "Gens Per Action",
|
|
"id": "setnumseq",
|
|
"min": 1,
|
|
"max": 5,
|
|
"step": 1,
|
|
"default": 1,
|
|
"tooltip": "Number of outputs to generate per action. Increases VRAM/RAM usage.",
|
|
"menu_path": "Settings",
|
|
"sub_path": "Generation",
|
|
"classname": "model",
|
|
"name": "numseqs"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"uitype": "toggle",
|
|
"unit": "bool",
|
|
"label": "Add 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"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"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 prompt. Instead, you must perform an action first.",
|
|
"menu_path": "Settings",
|
|
"sub_path": "Other",
|
|
"classname": "user",
|
|
"name": "nopromptgen"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"uitype": "toggle",
|
|
"unit": "bool",
|
|
"label": "No Genmod",
|
|
"id": "setnogenmod",
|
|
"min": 0,
|
|
"max": 1,
|
|
"step": 1,
|
|
"default": 0,
|
|
"tooltip": "Disables the effect of userscripts.",
|
|
"menu_path": "Settings",
|
|
"sub_path": "Modifiers",
|
|
"classname": "user",
|
|
"name": "nogenmod"
|
|
},
|
|
{
|
|
"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."
|
|
},
|
|
{
|
|
"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": "KoboldAI 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}]
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"uitype": "toggle",
|
|
"unit": "bool",
|
|
"label": "Token Probabilities",
|
|
"id": "setshowprobs",
|
|
"min": 0,
|
|
"max": 1,
|
|
"step": 1,
|
|
"default": 0,
|
|
"tooltip": "Adds context menu to output showing what other words were considered as it was generated.",
|
|
"menu_path": "Interface",
|
|
"sub_path": "UI",
|
|
"classname": "user",
|
|
"name": "show_probs"
|
|
},
|
|
{
|
|
"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_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_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_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_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_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_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_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"
|
|
},
|
|
{
|
|
"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_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}]
|
|
},
|
|
{
|
|
"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_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 functions will be displayed in the UI.",
|
|
"menu_path": "Interface",
|
|
"sub_path": "UI",
|
|
"classname": "system",
|
|
"name": "experimental_features"
|
|
},
|
|
]
|
|
|
|
gensettingsik =[{
|
|
"uitype": "slider",
|
|
"unit": "float",
|
|
"label": "Temperature",
|
|
"id": "settemp",
|
|
"min": 0.1,
|
|
"max": 2.0,
|
|
"step": 0.05,
|
|
"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": "Model",
|
|
"sub_path": "Generation",
|
|
"classname": "model",
|
|
"name": "temp"
|
|
},
|
|
{
|
|
"uitype": "slider",
|
|
"unit": "float",
|
|
"label": "Top P Sampling",
|
|
"id": "settopp",
|
|
"min": 0.0,
|
|
"max": 1.0,
|
|
"step": 0.05,
|
|
"default": 1.1,
|
|
"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": "Model",
|
|
"sub_path": "Sampling",
|
|
"classname": "model",
|
|
"name": "top_p"
|
|
},
|
|
{
|
|
"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.",
|
|
"menu_path": "Model",
|
|
"sub_path": "Sampling",
|
|
"classname": "model",
|
|
"name": "top_k"
|
|
},
|
|
{
|
|
"uitype": "slider",
|
|
"unit": "float",
|
|
"label": "Tail Free Sampling",
|
|
"id": "settfs",
|
|
"min": 0.0,
|
|
"max": 1.0,
|
|
"step": 0.05,
|
|
"default": 0.0,
|
|
"tooltip": "Alternative sampling method. It is recommended to disable (set to 0) top_p and top_k if this setting is used. 0.95 is an optimal value for this setting. (Put this value on 1 to disable its effect)",
|
|
"menu_path": "Model",
|
|
"sub_path": "Sampling",
|
|
"classname": "model",
|
|
"name": "tfs"
|
|
},
|
|
{
|
|
"uitype": "slider",
|
|
"unit": "int",
|
|
"label": "Output Length",
|
|
"id": "setikgen",
|
|
"min": 50,
|
|
"max": 3000,
|
|
"step": 2,
|
|
"default": 200,
|
|
"tooltip": "Number of tokens to be generated. Higher values will take longer to generate.",
|
|
"menu_path": "Model",
|
|
"sub_path": "Generation",
|
|
"classname": "model",
|
|
"name": "max_length"
|
|
},
|
|
{
|
|
"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": "User",
|
|
"classname": "user",
|
|
"name": "widepth"
|
|
},
|
|
{
|
|
"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": "Story",
|
|
"classname": "story",
|
|
"name": "autosave"
|
|
},
|
|
{
|
|
"uitype": "toggle",
|
|
"unit": "bool",
|
|
"label": "Stored 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": "Story",
|
|
"classname": "story",
|
|
"name": "useprompt"
|
|
},
|
|
{
|
|
"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",
|
|
#"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",
|
|
#"classname": "story",
|
|
#"name": "chatmode"
|
|
},
|
|
{
|
|
"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 prompt. Instead, you must perform an action first.",
|
|
"menu_path": "User",
|
|
"classname": "user",
|
|
"name": "nopromptgen"
|
|
},
|
|
{
|
|
"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": "User",
|
|
"classname": "user",
|
|
"name": "rngpersist"
|
|
},
|
|
{
|
|
"uitype": "toggle",
|
|
"unit": "bool",
|
|
"label": "Debug",
|
|
"id": "debug",
|
|
"min": 0,
|
|
"max": 1,
|
|
"step": 1,
|
|
"default": 0,
|
|
"tooltip": "Shows debug information.",
|
|
"menu_path": "User",
|
|
"classname": "user",
|
|
"name": "debug"
|
|
},
|
|
{
|
|
"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": "User",
|
|
"classname": "user",
|
|
"name": "output_streaming"
|
|
},
|
|
{
|
|
"uitype": "toggle",
|
|
"unit": "bool",
|
|
"label": "Token Probabilities",
|
|
"id": "setshowprobs",
|
|
"min": 0,
|
|
"max": 1,
|
|
"step": 1,
|
|
"default": 0,
|
|
"tooltip": "Adds context menu to output showing what other words were considered as it was generated.",
|
|
"menu_path": "Interface",
|
|
"sub_path": "UI",
|
|
"classname": "user",
|
|
"name": "show_probs"
|
|
},
|
|
{
|
|
"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_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_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_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_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_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"
|
|
},
|
|
]
|
|
|
|
formatcontrols = [{
|
|
"label": "Trim incomplete sentences",
|
|
"id": "frmttriminc",
|
|
"tooltip": "Deletes the text after the last sentence closure. If no closure is found, all tokens are returned."
|
|
},
|
|
{
|
|
"label": "Remove blank lines",
|
|
"id": "frmtrmblln",
|
|
"tooltip": "Replaces double newlines (\\n\\n) with single ones to avoid blank lines."
|
|
},
|
|
{
|
|
"label": "Remove special characters",
|
|
"id": "frmtrmspch",
|
|
"tooltip": "Removes special characters (@,#,%,^, etc)."
|
|
},
|
|
{
|
|
"label": "Automatic spacing",
|
|
"id": "frmtadsnsp",
|
|
"tooltip": "Adds spaces automatically if necessary."
|
|
},
|
|
{
|
|
"label": "Single Line",
|
|
"id": "singleline",
|
|
"tooltip": "Allows the AI to generate an output only before the enter."
|
|
}]
|