added basic support for password protection (+2 squashed commit)

Squashed commit:

[ff91ca72] added basic support for password protection

[91b0b208] updated docs
This commit is contained in:
Concedo
2024-03-12 16:05:51 +08:00
parent a69bc44e7a
commit 6c6ad93f01
4 changed files with 192 additions and 49 deletions
+10 -2
View File
@@ -183,6 +183,10 @@
"memory": {
"description": "KoboldCpp ONLY. If set, forcefully appends this string to the beginning of any submitted prompt text. If resulting context exceeds the limit, forcefully overwrites text from the beginning of the main prompt until it can fit. Useful to guarantee full memory insertion even when you cannot determine exact token count.",
"type": "string"
},
"images": {
"description": "KoboldCpp ONLY. If set, takes an array of base64 encoded strings, each one representing an image to be processed.",
"type": "array"
},
"trim_stop": {
"default": false,
@@ -345,7 +349,7 @@
"info": {
"title": "KoboldCpp API",
"description": "For swagger.json, <a href=\"?json=1\">click here</a>.",
"version": "1.60"
"version": "1.61"
},
"openapi": "3.0.3",
"paths": {
@@ -544,7 +548,10 @@
"application/json": {
"example": {
"result": "KoboldCpp",
"version": "1.46"
"version": "1.61",
"protected": false,
"txt2img": false,
"vision": false
},
"schema": {
"$ref": "#/components/schemas/KcppVersion"
@@ -1105,6 +1112,7 @@
};
</script>
<script>
//self destruct into json if requested
const urlParams = new URLSearchParams(window.location.search);