updated lite

This commit is contained in:
Concedo 2025-01-08 13:35:59 +08:00
parent 568e476997
commit c73d99ccac
3 changed files with 38 additions and 8 deletions

View file

@ -411,7 +411,7 @@
"info": {
"title": "KoboldCpp API",
"description": "For swagger.json, <a href=\"?json=1\">click here</a>.",
"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": {

View file

@ -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)

View file

@ -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