updated docs

This commit is contained in:
Concedo 2023-11-10 22:25:11 +08:00
parent 4a130ee11c
commit 36e860e94d

View file

@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>KoboldCpp API Documentation</title>
<!-- schema -->
<script>
let spec = {
"components": {
@ -283,6 +284,10 @@
"type": "integer",
"description": "Last token count."
},
"total_gens": {
"type": "integer",
"description": "Total requests generated since startup."
},
"stop_reason": {
"type": "integer",
"description": "Reason the generation stopped. INVALID=-1, OUT_OF_TOKENS=0, EOS_TOKEN=1, CUSTOM_STOPPER=2"
@ -511,6 +516,30 @@
]
}
},
"/extra/preloadstory": {
"get": {
"responses": {
"200": {
"content": {
"application/json": {
"example": {
"prompt": "Hello world",
"memory": "Some text",
"authorsnote": "",
"actions": [],
}
}
},
"description": "Successful request"
}
},
"description": "Retrieves the KoboldCpp preloaded story, --preloadstory configures a prepared story json save file to be hosted on the server, which frontends (such as Kobold Lite) can access over the API.",
"summary": "Retrieves the KoboldCpp preloaded story",
"tags": [
"extra"
]
}
},
"/extra/perf": {
"get": {
"responses": {
@ -523,6 +552,7 @@
"last_token_count": 80,
"stop_reason": 1,
"queue": 0,
"total_gens": 3,
"idle": 1
},
"schema": {