diff --git a/.github/workflows/kcpp-build-release-win-full.yaml b/.github/workflows/kcpp-build-release-win-full.yaml index 7923e425e..21c07b688 100644 --- a/.github/workflows/kcpp-build-release-win-full.yaml +++ b/.github/workflows/kcpp-build-release-win-full.yaml @@ -53,10 +53,15 @@ jobs: mv bin/Release/koboldcpp_cublas.dll ../koboldcpp_cublas.dll cd .. - - name: Download CuBLAS Libraries + # - name: Download CuBLAS Libraries + # run: | + # curl -L https://github.com/LostRuins/koboldcpp/releases/download/cuda11_cublas_libraries/cublas64_11.dll --output cublas64_11.dll + # curl -L https://github.com/LostRuins/koboldcpp/releases/download/cuda11_cublas_libraries/cublasLt64_11.dll --output cublasLt64_11.dll + # ls + - name: Copy CuBLAS Libraries run: | - curl -L https://github.com/LostRuins/koboldcpp/releases/download/cuda11_cublas_libraries/cublas64_11.dll --output cublas64_11.dll - curl -L https://github.com/LostRuins/koboldcpp/releases/download/cuda11_cublas_libraries/cublasLt64_11.dll --output cublasLt64_11.dll + copy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\bin\cublasLt64_11.dll" .\ /Y + copy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\bin\cublas64_11.dll" .\ /Y ls - name: Package PyInstallers diff --git a/klite.embd b/klite.embd index e146ed7c1..b1c4b1c46 100644 --- a/klite.embd +++ b/klite.embd @@ -1241,7 +1241,7 @@ Current version: 133 .saveloadpopup { width: 660px; background-color: #262626; - margin-top: 90px; + margin-top: 80px; } @media (max-width: 768px) { .saveloadpopup { @@ -1255,11 +1255,17 @@ Current version: 133 height: auto; overflow-y: auto; margin-top: 4px; - padding: 6px; + padding: 4px; display: grid; - gap: 6px; + gap: 4px; + font-size: 12px; /* grid-auto-rows: 56px; */ } + @media (max-width: 340px) { + .saveloadgrid { + font-size: 8px; + } + } .scenariopopup { @@ -6818,6 +6824,7 @@ Current version: 133 } var onInputboxOk = null; + var onInputboxCancel = null; function inputBox(text,title,inputVal,inputPlaceholder,onDone,isHtml=false,isTextArea=false) { if (!text) { text = ""; } @@ -6846,6 +6853,14 @@ Current version: 133 } onInputboxOk = function(){document.getElementById("inputboxcontainer").classList.add("hidden");onDone();}; + onInputboxCancel = null; + document.getElementById("inputboxcancel").classList.add("hidden"); + } + function inputBoxOkCancel(text,title,inputVal,inputPlaceholder,onDone,onCancel,isHtml=false,isTextArea=false) + { + inputBox(text,title,inputVal,inputPlaceholder,onDone,isHtml,isTextArea); + document.getElementById("inputboxcancel").classList.remove("hidden"); + onInputboxCancel = function(){document.getElementById("inputboxcontainer").classList.add("hidden");onCancel();}; } function getInputBoxValue() { @@ -7639,29 +7654,29 @@ Current version: 133 let filetable = ``; let entry = `
- - - + + +
-
+
Temporary Browser Storage
`; filetable += entry; try { - for(let i=0;i<4;++i) + for(let i=0;i<6;++i) { let testslot = localStorage.getItem(STORAGE_PREFIX + "slot_"+i+"_meta"); - entry = `
-
+ entry = `
+
`+(testslot?`[ Slot `+(i+1)+` - `+testslot+` ]`:`[ Slot `+(i+1)+` - Empty ]`)+`
- - - - + + + +
`; filetable += entry; } @@ -9006,13 +9021,18 @@ Current version: 133 } function apply_user_mod() { - inputBox("Here, you can apply third-party mod scripts shared by other users.

Caution: This mod will have full access to your story and API keys, so only run third-party mods that you trust! For security, mods must always be manually applied every time.

Want to start modding? Click here to load a simple example mod.","Apply Third-Party Mod","","Paste Mod Script Here",()=>{ + let currmod = localStorage.getItem(STORAGE_PREFIX + "savedusermod", ""); + inputBoxOkCancel("Here, you can apply third-party mod scripts shared by other users.

Caution: This mod will have full access to your story and API keys, so only run third-party mods that you trust! For security, mods must always be manually applied every time.

Want to start modding? Click here to load a simple example mod.","Apply Third-Party Mod",currmod,"Paste Mod Script Here",()=>{ let userinput = getInputBoxValue().trim(); + localStorage.setItem(STORAGE_PREFIX + "savedusermod", userinput); if(userinput!="" && userinput.trim()!="") { var userModScript = new Function(userinput); userModScript(); } + }, + ()=>{ + //do nothing on cancel },true,true); } @@ -9086,6 +9106,7 @@ Current version: 133 document.getElementById("keep_memory").checked = false; clear_bg_img(); pick_default_horde_models(); + localStorage.setItem(STORAGE_PREFIX + "savedusermod", ""); },null); } @@ -11801,7 +11822,7 @@ Current version: 133 //runs every second var idle_timer = 0; //used in chat mode to send multi replies var idle_triggered_counter = 0; - var idle_backoff_array = [15000,60000,300000,1200000]; + var idle_backoff_array = [15000,60000,300000,1200000,14400000]; function poll_background_tasks() { let idle_timer_max = 0; @@ -15671,6 +15692,7 @@ Current version: 133
+