mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 01:24:36 +00:00
embeddings done
This commit is contained in:
parent
82f2654049
commit
2bdf1dacff
4 changed files with 95 additions and 14 deletions
|
@ -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": [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue