From 3276d1cdaf0f08d1b240006866f8a0e6a9afdfae Mon Sep 17 00:00:00 2001 From: "LocalAI [bot]" <139863280+localai-bot@users.noreply.github.com> Date: Sat, 15 Nov 2025 21:50:30 +0100 Subject: [PATCH] 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> --- swagger/docs.go | 24 ++++++++++++++++++++++++ swagger/swagger.json | 24 ++++++++++++++++++++++++ swagger/swagger.yaml | 15 +++++++++++++++ 3 files changed, 63 insertions(+) diff --git a/swagger/docs.go b/swagger/docs.go index 7dc3b1ff4..a762b2ebd 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -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.", diff --git a/swagger/swagger.json b/swagger/swagger.json index ef5bf82c5..51cb13bbb 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -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.", diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index a2bdf061c..0264bcdac 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -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: