add common identity provider /.well-known/serviceinfo, updated docs

This commit is contained in:
Concedo 2024-11-04 21:29:26 +08:00
parent 847689e74c
commit f153a14daf
2 changed files with 38 additions and 2 deletions

View file

@ -191,7 +191,10 @@
},
"images": {
"description": "KoboldCpp ONLY. If set, takes an array of base64 encoded strings, each one representing an image to be processed.",
"type": "array"
"type": "array",
"items": {
"type": "string"
}
},
"trim_stop": {
"default": false,
@ -1168,6 +1171,29 @@
]
}
},
"/.well-known/serviceinfo": {
"get": {
"responses": {
"200": {
"content": {
"application/json": {
"example": {"version":"0.2","software":{"name":"KoboldCpp","version":1.77,"repository":"https://github.com/LostRuins/koboldcpp","homepage":"https://github.com/LostRuins/koboldcpp","logo":"https://raw.githubusercontent.com/LostRuins/koboldcpp/refs/heads/concedo/niko.ico"},"api":{"koboldai":{"name":"KoboldAI API","rel_url":"/api","documentation":"https://lite.koboldai.net/koboldcpp_api","version":1.77},"openai":{"name":"OpenAI API","rel_url ":"/v1","documentation":"https://openai.com/documentation/api","version":1.77}}},
"schema": {
"properties": {},
"type": "object"
}
}
},
"description": "Successful request"
}
},
"description": "Retrieve the common API identity provider",
"summary": "Retrieve the common API identity provider",
"tags": [
"serviceinfo"
]
}
},
"/sdapi/v1/sd-models": {
"get": {
"description": "Gets a list of image generation models. For koboldcpp, only one model will be returned. If no model is loaded, the list is empty.",
@ -1364,7 +1390,10 @@
"type": "number"
},
"init_images": {
"type": "array"
"type": "array",
"items": {
"type": "string"
}
},
},
"type": "object"
@ -1517,6 +1546,10 @@
"description": "Extended API unique to KoboldCpp",
"name": "api/extra"
},
{
"description": "Common identity API for LLM services",
"name": "serviceinfo"
},
{
"description": "Image Generation API (A1111 compatible)",
"name": "sdapi/v1"