Skip to content

llamaxing 0.0.0

Endpoints


POST /v1/chat/completions

Chat Completions

Response 200 OK

Schema of the response body


POST /chat/completions

Chat Completions

Response 200 OK

Schema of the response body


POST /v1/completions

Completions

Response 200 OK

Schema of the response body


POST /completions

Completions

Response 200 OK

Schema of the response body


POST /{workspace_id}/v1/embeddings

Generate embeddings.

Input parameters

Parameter In Type Default Nullable Description
workspace_id path string No

Request body

{
    "model": null,
    "input": [
        "string"
    ]
}
⚠️ 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

{
    "model": "BAAI/bge-m3",
    "data": [
        {
            "object": "string",
            "index": 0,
            "embedding": [
                10.12
            ]
        }
    ]
}
⚠️ 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

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}
⚠️ 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": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

POST /v1/images/generations

Images Generations

Response 200 OK

Schema of the response body


POST /images/generations

Images Generations

Response 200 OK

Schema of the response body


GET /v1/models

Models

Response 200 OK

Schema of the response body


GET /models

Models

Response 200 OK

Schema of the response body


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