llamaxing 0.0.0¶
Endpoints¶
POST /v1/chat/completions¶
Chat Completions
Response 200 OK
POST /chat/completions¶
Chat Completions
Response 200 OK
POST /v1/completions¶
Completions
Response 200 OK
POST /completions¶
Completions
Response 200 OK
POST /{workspace_id}/v1/embeddings¶
Generate embeddings.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
workspace_id | path | string | No |
Request body
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
Schema of the request body
{
"properties": {
"model": {
"allOf": [
{
"$ref": "#/components/schemas/ModelEnum"
}
],
"title": "Model",
"description": "Model to use for generate embddings.",
"default": "intfloat/multilingual-e5-large-instruct",
"examples": [
"intfloat/multilingual-e5-large-instruct"
]
},
"input": {
"items": {
"type": "string"
},
"type": "array",
"title": "Input",
"description": "Text to generate embeddings from.",
"examples": [
[
"Some text to generate embeddings."
]
]
}
},
"type": "object",
"required": [
"input"
],
"title": "EmbeddingInSchema",
"description": "EmbeddingInSchema _summary_.\n\nReturns\n-------\n _type_: _description_"
}
Response 200 OK
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
Schema of the response body
{
"properties": {
"model": {
"$ref": "#/components/schemas/ModelEnum"
},
"data": {
"items": {
"$ref": "#/components/schemas/EmbeddingDataOutSchema"
},
"type": "array",
"title": "Data"
}
},
"type": "object",
"required": [
"model",
"data"
],
"title": "EmbeddingOutSchema",
"description": "EmbeddingInnSchema _summary_.\n\nReturns\n-------\n _type_: _description_"
}
Response 422 Unprocessable Entity
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
POST /v1/images/generations¶
Images Generations
Response 200 OK
POST /images/generations¶
Images Generations
Response 200 OK
GET /v1/models¶
Models
Response 200 OK
GET /models¶
Models
Response 200 OK
Schemas¶
EmbeddingDataOutSchema¶
Name | Type |
---|---|
embedding | Array<number> |
index | integer |
object | string |
EmbeddingInSchema¶
Name | Type |
---|---|
input | Array<string> |
model |
EmbeddingOutSchema¶
Name | Type |
---|---|
data | Array<EmbeddingDataOutSchema> |
model | ModelEnum |
HTTPValidationError¶
Name | Type |
---|---|
detail | Array<ValidationError> |
ModelEnum¶
Type: string
ValidationError¶
Name | Type |
---|---|
loc | Array<> |
msg | string |
type | string |