diff --git a/kcpp_docs.embd b/kcpp_docs.embd index 7a1ff1f8f..941ab6a69 100644 --- a/kcpp_docs.embd +++ b/kcpp_docs.embd @@ -411,7 +411,7 @@ "info": { "title": "KoboldCpp API", "description": "For swagger.json, click here.", - "version": "1.79" + "version": "2025.01.08" }, "openapi": "3.0.3", "paths": { @@ -610,7 +610,7 @@ "application/json": { "example": { "result": "KoboldCpp", - "version": "1.79", + "version": "2025.01.08", "protected": false, "txt2img": false, "vision": false, @@ -1429,6 +1429,35 @@ ] } }, + "/props": { + "get": { + "summary": "Returns the Jinja template stored in the GGUF model, if found.", + "description": "Returns the Jinja template stored in the GGUF model, if found.", + "tags": [ + "serviceinfo" + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "chat_template": "string", + "total_slots": 1, + "default_generation_settings": { + "n_ctx": 2048, + }, + }, + "schema": { + "properties": {}, + "type": "object" + } + } + }, + "description": "Successful request" + } + }, + } + }, "/.well-known/serviceinfo": { "get": { "responses": { diff --git a/klite.embd b/klite.embd index 1730e9be4..c8f1ebff5 100644 --- a/klite.embd +++ b/klite.embd @@ -2855,6 +2855,7 @@ Current version indicated by LITEVER below. const OAI_TTS_ID = 1002; const HD_RES_PX = 768; const NO_HD_RES_PX = 512; + const AVATAR_PX = 384; const SAVE_SLOTS = 6; const num_regex_rows = 4; @@ -6250,7 +6251,7 @@ initializeInstructUIFunctionality(); document.getElementById('portrait_ratio_AI').value = aspectratio.toFixed(2); refreshAestheticPreview(true); render_gametext(); - }, true); + }, true, true, AVATAR_PX); } else { //attempt to read as WEBP @@ -7081,7 +7082,7 @@ initializeInstructUIFunctionality(); temp_scenario.image = compressedImageURI; temp_scenario.image_aspect = aspectratio; preview_temp_scenario(); - }, true); + }, true, true, AVATAR_PX); }) .catch(error => { if(original_no_exist) @@ -7164,7 +7165,7 @@ initializeInstructUIFunctionality(); temp_scenario.image = compressedImageURI; temp_scenario.image_aspect = aspectratio; preview_temp_scenario(); - }, true); + }, true, true, AVATAR_PX); } }else{ temp_scenario = null; @@ -7266,7 +7267,7 @@ initializeInstructUIFunctionality(); temp_scenario.image = compressedImageURI; temp_scenario.image_aspect = aspectratio; preview_temp_scenario(); - }, true); + }, true, true, AVATAR_PX); }) .catch(error => { temp_scenario = null; @@ -18172,7 +18173,7 @@ initializeInstructUIFunctionality(); const file = event.target.files[0]; const reader = new FileReader(); reader.onload = function(img) { - compressImage(img.target.result, loadCompressedImage, true); + compressImage(img.target.result, loadCompressedImage, true, true, AVATAR_PX); function loadCompressedImage(compressedImageURI, aspectratio) { if(isSelfPortrait) diff --git a/koboldcpp.py b/koboldcpp.py index d2af29ca9..8d1a23c99 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -58,7 +58,7 @@ maxhordelen = 400 modelbusy = threading.Lock() requestsinqueue = 0 defaultport = 5001 -KcppVersion = "1.81.1" +KcppVersion = "1.82" showdebug = True guimode = False showsamplerwarning = True