Skip to content

Commit 23df7ee

Browse files
mudlergithub-actions[bot]
authored andcommitted
feat(swagger): update swagger
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 47b546a commit 23df7ee

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

swagger/docs.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,30 @@ const docTemplate = `{
634634
}
635635
}
636636
},
637+
"/v1/mcp/chat/completions": {
638+
"post": {
639+
"summary": "Stream MCP chat completions with reasoning, tool calls, and results",
640+
"parameters": [
641+
{
642+
"description": "query params",
643+
"name": "request",
644+
"in": "body",
645+
"required": true,
646+
"schema": {
647+
"$ref": "#/definitions/schema.OpenAIRequest"
648+
}
649+
}
650+
],
651+
"responses": {
652+
"200": {
653+
"description": "Response",
654+
"schema": {
655+
"$ref": "#/definitions/schema.OpenAIResponse"
656+
}
657+
}
658+
}
659+
}
660+
},
637661
"/v1/models": {
638662
"get": {
639663
"summary": "List and describe the various models available in the API.",

swagger/swagger.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,30 @@
627627
}
628628
}
629629
},
630+
"/v1/mcp/chat/completions": {
631+
"post": {
632+
"summary": "Stream MCP chat completions with reasoning, tool calls, and results",
633+
"parameters": [
634+
{
635+
"description": "query params",
636+
"name": "request",
637+
"in": "body",
638+
"required": true,
639+
"schema": {
640+
"$ref": "#/definitions/schema.OpenAIRequest"
641+
}
642+
}
643+
],
644+
"responses": {
645+
"200": {
646+
"description": "Response",
647+
"schema": {
648+
"$ref": "#/definitions/schema.OpenAIResponse"
649+
}
650+
}
651+
}
652+
}
653+
},
630654
"/v1/models": {
631655
"get": {
632656
"summary": "List and describe the various models available in the API.",

swagger/swagger.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,6 +1149,21 @@ paths:
11491149
schema:
11501150
$ref: '#/definitions/schema.OpenAIResponse'
11511151
summary: Creates an image given a prompt.
1152+
/v1/mcp/chat/completions:
1153+
post:
1154+
parameters:
1155+
- description: query params
1156+
in: body
1157+
name: request
1158+
required: true
1159+
schema:
1160+
$ref: '#/definitions/schema.OpenAIRequest'
1161+
responses:
1162+
"200":
1163+
description: Response
1164+
schema:
1165+
$ref: '#/definitions/schema.OpenAIResponse'
1166+
summary: Stream MCP chat completions with reasoning, tool calls, and results
11521167
/v1/models:
11531168
get:
11541169
responses:

0 commit comments

Comments
 (0)