diff --git a/swagger/docs.go b/swagger/docs.go index 7dc3b1ff4c2b..a762b2ebd4a3 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 ef5bf82c51a8..51cb13bbb843 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 a2bdf061ccc8..0264bcdac980 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: