updated docs
This commit is contained in:
parent
4a130ee11c
commit
36e860e94d
1 changed files with 765 additions and 735 deletions
|
@ -6,6 +6,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>KoboldCpp API Documentation</title>
|
<title>KoboldCpp API Documentation</title>
|
||||||
|
|
||||||
|
<!-- schema -->
|
||||||
<script>
|
<script>
|
||||||
let spec = {
|
let spec = {
|
||||||
"components": {
|
"components": {
|
||||||
|
@ -283,6 +284,10 @@
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "Last token count."
|
"description": "Last token count."
|
||||||
},
|
},
|
||||||
|
"total_gens": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Total requests generated since startup."
|
||||||
|
},
|
||||||
"stop_reason": {
|
"stop_reason": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "Reason the generation stopped. INVALID=-1, OUT_OF_TOKENS=0, EOS_TOKEN=1, CUSTOM_STOPPER=2"
|
"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": {
|
"/extra/perf": {
|
||||||
"get": {
|
"get": {
|
||||||
"responses": {
|
"responses": {
|
||||||
|
@ -523,6 +552,7 @@
|
||||||
"last_token_count": 80,
|
"last_token_count": 80,
|
||||||
"stop_reason": 1,
|
"stop_reason": 1,
|
||||||
"queue": 0,
|
"queue": 0,
|
||||||
|
"total_gens": 3,
|
||||||
"idle": 1
|
"idle": 1
|
||||||
},
|
},
|
||||||
"schema": {
|
"schema": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue