embeddings done

This commit is contained in:
Concedo 2025-03-25 22:41:46 +08:00
parent 82f2654049
commit 2bdf1dacff
4 changed files with 95 additions and 14 deletions

View file

@ -1492,6 +1492,28 @@
]
}
},
"/api/extra/embeddings": {
"post": {
"summary": "Creates an embedding vector representing the input text. Please refer to OpenAI documentation",
"description": "Creates an embedding vector representing the input text.\n\nThis is an OpenAI compatibility endpoint.\n\n Please refer to OpenAI documentation at [https://platform.openai.com/docs/api-reference/embeddings/create](https://platform.openai.com/docs/api-reference/embeddings/create)",
"requestBody": {
"content": {
"application/json": {
"example": {},
"schema": {
"properties": {},
"type": "object"
}
}
},
"required": true
},
"tags": [
"api/extra"
],
"responses": {"default": {"description": ""}}
}
},
"/api/extra/data/save": {
"post": {
"description": "Saves data to a slot in a database file in the KoboldCpp server.",
@ -2152,6 +2174,28 @@
"responses": {"default": {"description": ""}}
}
},
"/v1/embeddings": {
"post": {
"summary": "Creates an embedding vector representing the input text. Please refer to OpenAI documentation",
"description": "Creates an embedding vector representing the input text.\n\nThis is an OpenAI compatibility endpoint.\n\n Please refer to OpenAI documentation at [https://platform.openai.com/docs/api-reference/embeddings/create](https://platform.openai.com/docs/api-reference/embeddings/create)",
"requestBody": {
"content": {
"application/json": {
"example": {},
"schema": {
"properties": {},
"type": "object"
}
}
},
"required": true
},
"tags": [
"v1"
],
"responses": {"default": {"description": ""}}
}
},
},
"servers": [
{