From 996dd7652f4dfe559060a24bc5166418a932bb4f Mon Sep 17 00:00:00 2001 From: "LocalAI [bot]" <139863280+localai-bot@users.noreply.github.com> Date: Wed, 11 Mar 2026 22:01:55 +0100 Subject: [PATCH] feat(swagger): update swagger (#8961) 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 | 5 ++++- swagger/swagger.json | 5 ++++- swagger/swagger.yaml | 4 +++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/swagger/docs.go b/swagger/docs.go index 8eb283ab9..ce84e7d6f 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -1176,7 +1176,7 @@ const docTemplate = `{ }, "/v1/mcp/chat/completions": { "post": { - "summary": "Stream MCP chat completions with reasoning, tool calls, and results", + "summary": "MCP chat completions with automatic tool execution", "parameters": [ { "description": "query params", @@ -2608,6 +2608,9 @@ const docTemplate = `{ "type": "string" } }, + "tool_call_id": { + "type": "string" + }, "tool_calls": { "type": "array", "items": { diff --git a/swagger/swagger.json b/swagger/swagger.json index 6b1f6c248..7ae562848 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -1169,7 +1169,7 @@ }, "/v1/mcp/chat/completions": { "post": { - "summary": "Stream MCP chat completions with reasoning, tool calls, and results", + "summary": "MCP chat completions with automatic tool execution", "parameters": [ { "description": "query params", @@ -2601,6 +2601,9 @@ "type": "string" } }, + "tool_call_id": { + "type": "string" + }, "tool_calls": { "type": "array", "items": { diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index 981245c52..82dc8745c 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -745,6 +745,8 @@ definitions: items: type: string type: array + tool_call_id: + type: string tool_calls: items: $ref: '#/definitions/schema.ToolCall' @@ -2339,7 +2341,7 @@ paths: description: Response schema: $ref: '#/definitions/schema.OpenAIResponse' - summary: Stream MCP chat completions with reasoning, tool calls, and results + summary: MCP chat completions with automatic tool execution /v1/messages: post: parameters: