updated lite

This commit is contained in:
Concedo 2024-03-02 22:33:02 +08:00
parent 4c0beef598
commit fa1d8b8d95
2 changed files with 6 additions and 3 deletions

View file

@ -7,7 +7,7 @@ Just copy this single static HTML file anywhere and open it in a browser, or fro
Please go to https://github.com/LostRuins/lite.koboldai.net for updates on Kobold Lite. Please go to https://github.com/LostRuins/lite.koboldai.net for updates on Kobold Lite.
If you are submitting a pull request for Lite, PLEASE use the above repo, not the KoboldCpp one. If you are submitting a pull request for Lite, PLEASE use the above repo, not the KoboldCpp one.
Kobold Lite is under the AGPL v3.0 License unless otherwise exempted. Please do not remove this line. Kobold Lite is under the AGPL v3.0 License unless otherwise exempted. Please do not remove this line.
Current version: 118 Current version: 119
-Concedo -Concedo
--> -->
@ -3484,6 +3484,7 @@ Current version: 118
saved_a1111_url: default_a1111_base, saved_a1111_url: default_a1111_base,
saved_xtts_url: default_xtts_base, saved_xtts_url: default_xtts_base,
prev_custom_endpoint_type: 0, //show a reconnect box to custom endpoint if needed. 0 is horde, otherwise its dropdown value+1 prev_custom_endpoint_type: 0, //show a reconnect box to custom endpoint if needed. 0 is horde, otherwise its dropdown value+1
generate_images_mode: (localflag?0:1), //0=off, 1=horde, 2=a1111, 3=dalle
autoscroll: true, //automatically scroll to bottom on render autoscroll: true, //automatically scroll to bottom on render
printer_view: false, //automatically scroll to bottom on render printer_view: false, //automatically scroll to bottom on render
@ -3511,7 +3512,6 @@ Current version: 118
image_negprompt: "", image_negprompt: "",
grammar:"", grammar:"",
tokenstreammode: (localflag?2:0), //0=off,1=pollstream,2=sse tokenstreammode: (localflag?2:0), //0=off,1=pollstream,2=sse
generate_images_mode: (localflag?0:1), //0=off, 1=horde, 2=a1111, 3=dalle
generate_images_model: "stable_diffusion", //"" is disabled and "*" is all, anything else is the model name pulled from stable horde generate_images_model: "stable_diffusion", //"" is disabled and "*" is all, anything else is the model name pulled from stable horde
img_autogen: false, img_autogen: false,
img_allownsfw: true, img_allownsfw: true,
@ -5146,6 +5146,8 @@ Current version: 118
let tmp_kai = localsettings.saved_kai_addr; let tmp_kai = localsettings.saved_kai_addr;
let tmp_a1111 = localsettings.saved_a1111_url; let tmp_a1111 = localsettings.saved_a1111_url;
let tmp_xtts = localsettings.saved_xtts_url; let tmp_xtts = localsettings.saved_xtts_url;
let tmp_imggen = localsettings.generate_images_mode;
if(loadgensettings) if(loadgensettings)
{ {
import_props_into_object(localsettings, storyobj.savedsettings); import_props_into_object(localsettings, storyobj.savedsettings);
@ -5177,6 +5179,7 @@ Current version: 118
localsettings.saved_kai_addr = tmp_kai; localsettings.saved_kai_addr = tmp_kai;
localsettings.saved_a1111_url = tmp_a1111; localsettings.saved_a1111_url = tmp_a1111;
localsettings.saved_xtts_url = tmp_xtts; localsettings.saved_xtts_url = tmp_xtts;
localsettings.generate_images_mode = tmp_imggen;
if(loadaessettings) if(loadaessettings)
{ {

View file

@ -1879,7 +1879,7 @@ def show_new_gui():
# Image Gen Tab # Image Gen Tab
images_tab = tabcontent["Image Gen"] images_tab = tabcontent["Image Gen"]
makefileentry(images_tab, "Stable Diffusion Model (f16):", "Select Stable Diffusion Model File", sd_model_var, 1, filetypes=[("*.safetensors","*.safetensors")], tooltiptxt="Select a .safetensors Stable Diffusion model file on disk to be loaded.") makefileentry(images_tab, "Stable Diffusion Model (f16 safetensors):", "Select Stable Diffusion Model File", sd_model_var, 1, filetypes=[("*.safetensors","*.safetensors")], tooltiptxt="Select a .safetensors Stable Diffusion model file on disk to be loaded.")
makecheckbox(images_tab, "Quick Mode (Low Quality)", sd_quick_var, 4,tooltiptxt="Force optimal generation settings for speed.") makecheckbox(images_tab, "Quick Mode (Low Quality)", sd_quick_var, 4,tooltiptxt="Force optimal generation settings for speed.")
makelabelentry(images_tab, "Image threads:" , sd_threads_var, 6, 50,"How many threads to use during image generation.\nIf left blank, uses same value as threads.") makelabelentry(images_tab, "Image threads:" , sd_threads_var, 6, 50,"How many threads to use during image generation.\nIf left blank, uses same value as threads.")
makecheckbox(images_tab, "Compress Weights (Slight Memory Saved)", sd_quant_var, 8,tooltiptxt="Quantizes the SD model weights to save memory. May degrade quality.") makecheckbox(images_tab, "Compress Weights (Slight Memory Saved)", sd_quant_var, 8,tooltiptxt="Quantizes the SD model weights to save memory. May degrade quality.")