From 793e4907a239ddd83a9d3dc7131de646fbd61eec Mon Sep 17 00:00:00 2001 From: "LocalAI [bot]" <139863280+localai-bot@users.noreply.github.com> Date: Sat, 3 Jan 2026 22:09:39 +0100 Subject: [PATCH] feat(swagger): update swagger (#7847) 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 deletions(-) diff --git a/swagger/docs.go b/swagger/docs.go index 60b4da993..ab779b648 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -702,30 +702,6 @@ const docTemplate = `{ } } }, - "/mcp/v1/completions": { - "post": { - "summary": "Generate completions for a given prompt and model.", - "parameters": [ - { - "description": "query params", - "name": "request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/schema.OpenAIRequest" - } - } - ], - "responses": { - "200": { - "description": "Response", - "schema": { - "$ref": "#/definitions/schema.OpenAIResponse" - } - } - } - } - }, "/metrics": { "get": { "summary": "Prometheus metrics endpoint", diff --git a/swagger/swagger.json b/swagger/swagger.json index 781b61758..6fadcab51 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -695,30 +695,6 @@ } } }, - "/mcp/v1/completions": { - "post": { - "summary": "Generate completions for a given prompt and model.", - "parameters": [ - { - "description": "query params", - "name": "request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/schema.OpenAIRequest" - } - } - ], - "responses": { - "200": { - "description": "Response", - "schema": { - "$ref": "#/definitions/schema.OpenAIResponse" - } - } - } - } - }, "/metrics": { "get": { "summary": "Prometheus metrics endpoint", diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index a18b69f89..cc5816b36 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -1495,21 +1495,6 @@ paths: schema: $ref: '#/definitions/services.GalleryOpStatus' summary: Returns the job status - /mcp/v1/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: Generate completions for a given prompt and model. /metrics: get: parameters: