feat(swagger): update swagger (#7276)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
This commit is contained in:
LocalAI [bot]
2025-11-15 21:50:30 +01:00
committed by GitHub
parent 5e5f01badd
commit 3276d1cdaf
3 changed files with 63 additions and 0 deletions

View File

@@ -634,6 +634,30 @@ const docTemplate = `{
}
}
},
"/v1/mcp/chat/completions": {
"post": {
"summary": "Stream MCP chat completions with reasoning, tool calls, and results",
"parameters": [
{
"description": "query params",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/schema.OpenAIRequest"
}
}
],
"responses": {
"200": {
"description": "Response",
"schema": {
"$ref": "#/definitions/schema.OpenAIResponse"
}
}
}
}
},
"/v1/models": {
"get": {
"summary": "List and describe the various models available in the API.",

View File

@@ -627,6 +627,30 @@
}
}
},
"/v1/mcp/chat/completions": {
"post": {
"summary": "Stream MCP chat completions with reasoning, tool calls, and results",
"parameters": [
{
"description": "query params",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/schema.OpenAIRequest"
}
}
],
"responses": {
"200": {
"description": "Response",
"schema": {
"$ref": "#/definitions/schema.OpenAIResponse"
}
}
}
}
},
"/v1/models": {
"get": {
"summary": "List and describe the various models available in the API.",

View File

@@ -1149,6 +1149,21 @@ paths:
schema:
$ref: '#/definitions/schema.OpenAIResponse'
summary: Creates an image given a prompt.
/v1/mcp/chat/completions:
post:
parameters:
- description: query params
in: body
name: request
required: true
schema:
$ref: '#/definitions/schema.OpenAIRequest'
responses:
"200":
description: Response
schema:
$ref: '#/definitions/schema.OpenAIResponse'
summary: Stream MCP chat completions with reasoning, tool calls, and results
/v1/models:
get:
responses: