From fcd06ae329e584738795166c797c98d58a40b3a6 Mon Sep 17 00:00:00 2001 From: jbeckwith-oai <269036200+jbeckwith-oai@users.noreply.github.com> Date: Fri, 16 Oct 2026 08:32:33 -0700 Subject: [PATCH] chore(api): declare SSE response contracts for streaming endpoints Castiron-Internal-PR: https://github.com/openai/openai-python-internal/pull/271 Castiron-Source-SHA: 54527f1c3ffce8594964193c16571a36ba9db26c Castiron-Public-Base-SHA: 230a923faba5574ebdc5b45a505a26b6bad79f61 --- .castiron.stats.yml | 12 ++++++------ api_reference/openapi.transformed.yml | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.castiron.stats.yml b/.castiron.stats.yml index 75cfeb462a..83cade6d52 100644 --- a/.castiron.stats.yml +++ b/.castiron.stats.yml @@ -1,8 +1,8 @@ schema_version: 1 -generation_id: 4655b3fd-100f-41ed-a911-2a1a9d32ea2b -openapi_spec_hash: 2013b5fe3879ad548bef3c02a8400e28 -openapi_transformed_spec_hash: ebaa4dc38d766dcc79436fa46d7578b5 -config_hash: e2240ed667dcf3afd130abd71b47b9fc -codegen_sha: 096a813d99130ad2016e14f79774c24773508eee +generation_id: eeb2c5de-b2c2-4746-840e-eb9b10f63960 +openapi_spec_hash: 82e364ae01db88c439152a14590a2798 +openapi_transformed_spec_hash: 3ef2eff77c3be343f9948c2a9c9fbd58 +config_hash: cf24319292c48508c19b7bc1d0c53823 +codegen_sha: 85a8f37b1d9365aeb867bd95981452a7fbc04fb3 codegen_hash: a162fbfb7bc65621f28757a1057460101763c6d38f99aff46d045581f34361d8 -public_codegen_sha: 89aff405340b117ab2b7c2e790c2baea90439069 +public_codegen_sha: 18083220e7f070c5987854de9132fe435fe3c25e diff --git a/api_reference/openapi.transformed.yml b/api_reference/openapi.transformed.yml index a65135f9c1..1f11b27265 100644 --- a/api_reference/openapi.transformed.yml +++ b/api_reference/openapi.transformed.yml @@ -3573,6 +3573,9 @@ paths: application/json: schema: $ref: '#/components/schemas/CreateCompletionResponse' + text/event-stream: + schema: + $ref: '#/components/schemas/CreateCompletionResponse' '400': description: Invalid completion request or incompatible request parameters. content: @@ -21290,6 +21293,9 @@ paths: application/json: schema: $ref: '#/components/schemas/Response' + text/event-stream: + schema: + $ref: '#/components/schemas/ResponseStreamEvent' '404': description: The response was not found. content: @@ -21783,6 +21789,9 @@ paths: application/json: schema: $ref: '#/components/schemas/RunObject' + text/event-stream: + schema: + $ref: '#/components/schemas/AssistantStreamEvent' '429': $ref: '#/components/responses/TooManyRequests' x-oaiMeta: @@ -23067,6 +23076,9 @@ paths: application/json: schema: $ref: '#/components/schemas/RunObject' + text/event-stream: + schema: + $ref: '#/components/schemas/AssistantStreamEvent' '429': $ref: '#/components/responses/TooManyRequests' x-oaiMeta: @@ -24007,6 +24019,9 @@ paths: application/json: schema: $ref: '#/components/schemas/RunObject' + text/event-stream: + schema: + $ref: '#/components/schemas/AssistantStreamEvent' '429': $ref: '#/components/responses/TooManyRequests' x-oaiMeta: @@ -35889,6 +35904,9 @@ paths: application/json: schema: $ref: '#/components/schemas/BetaResponse' + text/event-stream: + schema: + $ref: '#/components/schemas/BetaResponseStreamEvent' '404': description: The response was not found. content: