Skip to content

Commit bcaedfa

Browse files
committed
Updated OpenAPI schema
1 parent d1bdce9 commit bcaedfa

1 file changed

Lines changed: 7 additions & 181 deletions

File tree

docs/openapi.json

Lines changed: 7 additions & 181 deletions
Original file line numberDiff line numberDiff line change
@@ -15424,7 +15424,7 @@
1542415424
"title": "OpenAIResponseMCPApprovalResponse",
1542515425
"description": "A response to an MCP approval request."
1542615426
},
15427-
"OpenAIResponseMessage-Input": {
15427+
"OpenAIResponseMessage": {
1542815428
"properties": {
1542915429
"content": {
1543015430
"anyOf": [
@@ -15459,7 +15459,7 @@
1545915459
"items": {
1546015460
"oneOf": [
1546115461
{
15462-
"$ref": "#/components/schemas/OpenAIResponseOutputMessageContentOutputText-Input"
15462+
"$ref": "#/components/schemas/OpenAIResponseOutputMessageContentOutputText"
1546315463
},
1546415464
{
1546515465
"$ref": "#/components/schemas/OpenAIResponseContentPartRefusal"
@@ -15468,7 +15468,7 @@
1546815468
"discriminator": {
1546915469
"propertyName": "type",
1547015470
"mapping": {
15471-
"output_text": "#/components/schemas/OpenAIResponseOutputMessageContentOutputText-Input",
15471+
"output_text": "#/components/schemas/OpenAIResponseOutputMessageContentOutputText",
1547215472
"refusal": "#/components/schemas/OpenAIResponseContentPartRefusal"
1547315473
}
1547415474
}
@@ -15536,181 +15536,7 @@
1553615536
"title": "OpenAIResponseMessage",
1553715537
"description": "Corresponds to the various Message types in the Responses API.\nThey are all under one type because the Responses API gives them all\nthe same \"type\" value, and there is no way to tell them apart in certain\nscenarios."
1553815538
},
15539-
"OpenAIResponseMessage-Output": {
15540-
"properties": {
15541-
"content": {
15542-
"anyOf": [
15543-
{
15544-
"type": "string"
15545-
},
15546-
{
15547-
"items": {
15548-
"oneOf": [
15549-
{
15550-
"$ref": "#/components/schemas/OpenAIResponseInputMessageContentText"
15551-
},
15552-
{
15553-
"$ref": "#/components/schemas/OpenAIResponseInputMessageContentImage"
15554-
},
15555-
{
15556-
"$ref": "#/components/schemas/OpenAIResponseInputMessageContentFile"
15557-
}
15558-
],
15559-
"discriminator": {
15560-
"propertyName": "type",
15561-
"mapping": {
15562-
"input_file": "#/components/schemas/OpenAIResponseInputMessageContentFile",
15563-
"input_image": "#/components/schemas/OpenAIResponseInputMessageContentImage",
15564-
"input_text": "#/components/schemas/OpenAIResponseInputMessageContentText"
15565-
}
15566-
}
15567-
},
15568-
"type": "array"
15569-
},
15570-
{
15571-
"items": {
15572-
"oneOf": [
15573-
{
15574-
"$ref": "#/components/schemas/OpenAIResponseOutputMessageContentOutputText-Output"
15575-
},
15576-
{
15577-
"$ref": "#/components/schemas/OpenAIResponseContentPartRefusal"
15578-
}
15579-
],
15580-
"discriminator": {
15581-
"propertyName": "type",
15582-
"mapping": {
15583-
"output_text": "#/components/schemas/OpenAIResponseOutputMessageContentOutputText-Output",
15584-
"refusal": "#/components/schemas/OpenAIResponseContentPartRefusal"
15585-
}
15586-
}
15587-
},
15588-
"type": "array"
15589-
}
15590-
],
15591-
"title": "Content"
15592-
},
15593-
"role": {
15594-
"anyOf": [
15595-
{
15596-
"type": "string",
15597-
"const": "system"
15598-
},
15599-
{
15600-
"type": "string",
15601-
"const": "developer"
15602-
},
15603-
{
15604-
"type": "string",
15605-
"const": "user"
15606-
},
15607-
{
15608-
"type": "string",
15609-
"const": "assistant"
15610-
}
15611-
],
15612-
"title": "Role"
15613-
},
15614-
"type": {
15615-
"type": "string",
15616-
"const": "message",
15617-
"title": "Type",
15618-
"default": "message"
15619-
},
15620-
"id": {
15621-
"anyOf": [
15622-
{
15623-
"type": "string"
15624-
},
15625-
{
15626-
"type": "null"
15627-
}
15628-
],
15629-
"title": "Id"
15630-
},
15631-
"status": {
15632-
"anyOf": [
15633-
{
15634-
"type": "string"
15635-
},
15636-
{
15637-
"type": "null"
15638-
}
15639-
],
15640-
"title": "Status"
15641-
}
15642-
},
15643-
"type": "object",
15644-
"required": [
15645-
"content",
15646-
"role"
15647-
],
15648-
"title": "OpenAIResponseMessage",
15649-
"description": "Corresponds to the various Message types in the Responses API.\nThey are all under one type because the Responses API gives them all\nthe same \"type\" value, and there is no way to tell them apart in certain\nscenarios."
15650-
},
15651-
"OpenAIResponseOutputMessageContentOutputText-Input": {
15652-
"properties": {
15653-
"text": {
15654-
"type": "string",
15655-
"title": "Text"
15656-
},
15657-
"type": {
15658-
"type": "string",
15659-
"const": "output_text",
15660-
"title": "Type",
15661-
"default": "output_text"
15662-
},
15663-
"annotations": {
15664-
"items": {
15665-
"oneOf": [
15666-
{
15667-
"$ref": "#/components/schemas/OpenAIResponseAnnotationFileCitation"
15668-
},
15669-
{
15670-
"$ref": "#/components/schemas/OpenAIResponseAnnotationCitation"
15671-
},
15672-
{
15673-
"$ref": "#/components/schemas/OpenAIResponseAnnotationContainerFileCitation"
15674-
},
15675-
{
15676-
"$ref": "#/components/schemas/OpenAIResponseAnnotationFilePath"
15677-
}
15678-
],
15679-
"discriminator": {
15680-
"propertyName": "type",
15681-
"mapping": {
15682-
"container_file_citation": "#/components/schemas/OpenAIResponseAnnotationContainerFileCitation",
15683-
"file_citation": "#/components/schemas/OpenAIResponseAnnotationFileCitation",
15684-
"file_path": "#/components/schemas/OpenAIResponseAnnotationFilePath",
15685-
"url_citation": "#/components/schemas/OpenAIResponseAnnotationCitation"
15686-
}
15687-
}
15688-
},
15689-
"type": "array",
15690-
"title": "Annotations"
15691-
},
15692-
"logprobs": {
15693-
"anyOf": [
15694-
{
15695-
"items": {
15696-
"$ref": "#/components/schemas/OpenAITokenLogProb"
15697-
},
15698-
"type": "array"
15699-
},
15700-
{
15701-
"type": "null"
15702-
}
15703-
],
15704-
"title": "Logprobs"
15705-
}
15706-
},
15707-
"type": "object",
15708-
"required": [
15709-
"text"
15710-
],
15711-
"title": "OpenAIResponseOutputMessageContentOutputText"
15712-
},
15713-
"OpenAIResponseOutputMessageContentOutputText-Output": {
15539+
"OpenAIResponseOutputMessageContentOutputText": {
1571415540
"properties": {
1571515541
"text": {
1571615542
"type": "string",
@@ -17975,7 +17801,7 @@
1797517801
"ResponseItem": {
1797617802
"anyOf": [
1797717803
{
17978-
"$ref": "#/components/schemas/OpenAIResponseMessage-Input"
17804+
"$ref": "#/components/schemas/OpenAIResponseMessage"
1797917805
},
1798017806
{
1798117807
"$ref": "#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall"
@@ -18372,7 +18198,7 @@
1837218198
"items": {
1837318199
"oneOf": [
1837418200
{
18375-
"$ref": "#/components/schemas/OpenAIResponseMessage-Output"
18201+
"$ref": "#/components/schemas/OpenAIResponseMessage"
1837618202
},
1837718203
{
1837818204
"$ref": "#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall"
@@ -18401,7 +18227,7 @@
1840118227
"mcp_approval_request": "#/components/schemas/OpenAIResponseMCPApprovalRequest",
1840218228
"mcp_call": "#/components/schemas/OpenAIResponseOutputMessageMCPCall",
1840318229
"mcp_list_tools": "#/components/schemas/OpenAIResponseOutputMessageMCPListTools",
18404-
"message": "#/components/schemas/OpenAIResponseMessage-Output",
18230+
"message": "#/components/schemas/OpenAIResponseMessage",
1840518231
"web_search_call": "#/components/schemas/OpenAIResponseOutputMessageWebSearchToolCall"
1840618232
}
1840718233
}

0 commit comments

Comments
 (0)