diff --git a/.castiron.stats.yml b/.castiron.stats.yml index e1f1c874a1..142fd7d974 100644 --- a/.castiron.stats.yml +++ b/.castiron.stats.yml @@ -1,7 +1,7 @@ schema_version: 1 -generation_id: 118ddabe-fe6b-4298-945e-8c6620ca6518 -openapi_spec_hash: ef2dda1aa7b22009e708e923f2d16671 -openapi_transformed_spec_hash: 9c2476b34fc1bd1f07ca1c9353122b55 +generation_id: e164ac83-c112-4711-be50-ebb428fe3158 +openapi_spec_hash: 0fa065837f86231ded0decb63dbdf0b7 +openapi_transformed_spec_hash: 89a4e53d02ad69dde25fe7b073c64609 config_hash: 0e042fd083471fc089bcbfe7011a7d01 -codegen_sha: 9296df390e1dc6119238e97fd60cd3b5cf6a86ac -codegen_hash: 97a6b18a5145df17893b2cb178d490c1fa4f075cd46b022e8439b29a6df3c979 +codegen_sha: 3f4c502584c527f11658bdeb8c487e8cee0ed4da +codegen_hash: a13510d3bcce387fb660ffbe32d7a3155e53c9b19fe9339d4ff1dd4e4211335c diff --git a/api_reference/openapi.transformed.yml b/api_reference/openapi.transformed.yml index 834c31e7fc..c52b867995 100644 --- a/api_reference/openapi.transformed.yml +++ b/api_reference/openapi.transformed.yml @@ -582,6 +582,13 @@ paths: Generates audio from the input text. Returns the audio file content, or a stream of audio events. + + The `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, `gpt-4o-mini-tts-2025-03-20`, and + `gpt-4o-mini-tts-2025-12-15` models are deprecated and scheduled to shut down + on January 6, 2027. These examples use the existing Speech API; for new + integrations, migrate to `gpt-realtime-2.1-mini` through the + [Realtime API](https://developers.openai.com/api/docs/guides/realtime). See the + [deprecation schedule](https://developers.openai.com/api/docs/deprecations) for migration details. requestBody: required: true content: @@ -1344,7 +1351,14 @@ paths: tags: - Audio summary: Create translation - description: Translates audio into English. + description: | + Translates audio into English. + + This endpoint supports only `whisper-1`. The endpoint and model are deprecated + and scheduled to shut down on February 26, 2027. Migrate to + `/v1/realtime/translations`, which requires a separate integration. See the + [deprecation schedule](https://developers.openai.com/api/docs/deprecations) + for details. requestBody: required: true content: @@ -1463,6 +1477,7 @@ paths: { "text": "Hello, my name is Wolfgang and I come from Germany. Where are you heading today?" } + deprecated: true /audio/voice_consents: post: operationId: createVoiceConsent @@ -38360,6 +38375,18 @@ components: message: 'Announced shutdown date: 2027-01-14. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' gpt-4o-mini: message: 'Announced shutdown date: 2027-01-14. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-mini: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-nano: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-2025-08-07: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-mini-2025-08-07: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-nano-2025-08-07: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' AssistantToolsCode: type: object title: Code interpreter tool @@ -38513,6 +38540,17 @@ components: - gpt-4o-transcribe - gpt-4o-transcribe-diarize - gpt-realtime-whisper + x-openai-enum-deprecations: + gpt-4o-mini-transcribe-2025-12-15: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + whisper-1: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-4o-transcribe: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-4o-mini-transcribe: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-4o-transcribe-diarize: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' language: type: string description: | @@ -38570,6 +38608,17 @@ components: - gpt-4o-transcribe - gpt-4o-transcribe-diarize - gpt-realtime-whisper + x-openai-enum-deprecations: + gpt-4o-mini-transcribe-2025-12-15: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + whisper-1: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-4o-transcribe: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-4o-mini-transcribe: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-4o-transcribe-diarize: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' language: type: string description: | @@ -45208,6 +45257,15 @@ components: - tts-1-hd - gpt-4o-mini-tts - gpt-4o-mini-tts-2025-12-15 + x-openai-enum-deprecations: + gpt-4o-mini-tts: + message: 'Announced shutdown date: 2027-01-06. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + tts-1: + message: 'Announced shutdown date: 2027-01-06. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + tts-1-hd: + message: 'Announced shutdown date: 2027-01-06. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-4o-mini-tts-2025-12-15: + message: 'Announced shutdown date: 2027-01-06. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' x-stainless-nominal: false x-oaiTypeLabel: string input: @@ -45353,6 +45411,19 @@ components: - gpt-3.5-turbo-1106 - gpt-3.5-turbo-0125 - gpt-3.5-turbo-16k-0613 + x-openai-enum-deprecations: + gpt-5: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-mini: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-nano: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-2025-08-07: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-mini-2025-08-07: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-nano-2025-08-07: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' x-oaiTypeLabel: string nullable: true instructions: @@ -45598,6 +45669,17 @@ components: - gpt-4o-mini-transcribe-2025-12-15 - gpt-4o-transcribe-diarize x-stainless-const: true + x-openai-enum-deprecations: + gpt-4o-mini-transcribe-2025-12-15: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + whisper-1: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-4o-transcribe: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-4o-mini-transcribe: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-4o-transcribe-diarize: + message: 'Announced shutdown date: 2027-02-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' x-stainless-nominal: false x-oaiTypeLabel: string language: @@ -61561,6 +61643,19 @@ components: - gpt-audio-mini - gpt-audio-mini-2025-10-06 - gpt-audio-mini-2025-12-15 + x-openai-enum-deprecations: + gpt-realtime-2025-08-28: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-realtime-mini-2025-12-15: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-audio-mini-2025-12-15: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-realtime: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-realtime-mini: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-audio-mini: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' instructions: type: string description: | @@ -61995,6 +62090,19 @@ components: - gpt-audio-mini - gpt-audio-mini-2025-10-06 - gpt-audio-mini-2025-12-15 + x-openai-enum-deprecations: + gpt-realtime-2025-08-28: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-realtime-mini-2025-12-15: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-audio-mini-2025-12-15: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-realtime: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-realtime-mini: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-audio-mini: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' x-stainless-nominal: false x-openai-go-public-type: string_alias description: | @@ -62440,6 +62548,19 @@ components: - gpt-audio-mini - gpt-audio-mini-2025-10-06 - gpt-audio-mini-2025-12-15 + x-openai-enum-deprecations: + gpt-realtime-2025-08-28: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-realtime-mini-2025-12-15: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-audio-mini-2025-12-15: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-realtime: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-realtime-mini: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-audio-mini: + message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' description: | The Realtime model used for this session. instructions: @@ -110806,6 +110927,10 @@ components: message: 'Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' gpt-5.1-mini: message: Not a supported model ID. Retained for SDK compatibility. + gpt-5.1-2025-11-13: + message: 'Announced shutdown date: 2027-04-01. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5.4-nano-2026-03-17: + message: 'Announced shutdown date: 2027-04-01. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' x-stainless-nominal: false LiveBuiltInVoice: type: string @@ -110906,6 +111031,19 @@ components: - gpt-3.5-turbo-1106 - gpt-3.5-turbo-0125 - gpt-3.5-turbo-16k-0613 + x-openai-enum-deprecations: + gpt-5: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-mini: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-nano: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-2025-08-07: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-mini-2025-08-07: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' + gpt-5-nano-2025-08-07: + message: 'Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.' x-oaiTypeLabel: string nullable: true instructions: diff --git a/examples/audio.py b/examples/audio.py index 1d826cc0ec..880d3b897d 100755 --- a/examples/audio.py +++ b/examples/audio.py @@ -26,8 +26,10 @@ def main() -> None: ) print(transcription.text) - # Create translation from audio file - translation = openai.audio.translations.create( + # Legacy translation endpoint: shuts down February 26, 2027. + # New integrations should use Realtime translations instead: + # https://developers.openai.com/api/docs/deprecations + translation = openai.audio.translations.create( # pyright: ignore[reportDeprecated] model="whisper-1", file=speech_file_path, ) diff --git a/scripts/castiron/generated-files.json b/scripts/castiron/generated-files.json index 5a623acbcc..bc3a74a99b 100644 --- a/scripts/castiron/generated-files.json +++ b/scripts/castiron/generated-files.json @@ -203,15 +203,15 @@ }, "src/openai/resources/audio/speech.py": { "mode": "100644", - "sha256": "5654e4105ba0118d6467eb42aaad6dcf62b7e57123512423d9b72bb1e77aad69" + "sha256": "2e871dd9db0b6c786350ae27228ee7ddf1344391be130f0e6e9e952f11535018" }, "src/openai/resources/audio/transcriptions.py": { "mode": "100644", - "sha256": "b470fe61944498e74e9bc86c5a74763a49646f0e276e7c96ea339ebe0171b404" + "sha256": "a0ffd448d9c0243cbc4ad4bf0e05040cb1b8b9cf9e294517eb74197700a6e21e" }, "src/openai/resources/audio/translations.py": { "mode": "100644", - "sha256": "9643b5ab66d84a9c1e0115e3dcd7e384de371f6eca5c1aac7f5168ce0d7e5245" + "sha256": "2d0ba2a0c4e8235759793e4af0d98dd2e845a26b0dc4dd4094ee3a47aa700549" }, "src/openai/resources/audio/voice_consents.py": { "mode": "100644", @@ -339,7 +339,7 @@ }, "src/openai/resources/beta/assistants.py": { "mode": "100644", - "sha256": "0996802494a9b36de76079852185e7aee139e9eef26e97c9ecc65ba935a28a64" + "sha256": "3b3fed19ca0b8c74082ff2387b73f33a62822e60abee55b93dc33f527fbe9318" }, "src/openai/resources/beta/beta.py": { "mode": "100644", @@ -375,7 +375,7 @@ }, "src/openai/resources/beta/responses/responses.py": { "mode": "100644", - "sha256": "fa1a44295495c8609fbbde9457902722b51e56b28ce3ed3b95c7212433f7c8b2" + "sha256": "27b0726c4b7c6f4e037f241548a14adf5d38e4f701ff12c46569a03f17f5f53a" }, "src/openai/resources/beta/threads/__init__.py": { "mode": "100644", @@ -391,7 +391,7 @@ }, "src/openai/resources/beta/threads/runs/runs.py": { "mode": "100644", - "sha256": "254b4c052c8ca7200f7c63d581895feef54f78db0c50b105e1092dd15d391cf6" + "sha256": "112765c8d6358e7b11afb412b5b67589363b7dbb9c7f3721bdc714fb6f1f0696" }, "src/openai/resources/beta/threads/runs/steps.py": { "mode": "100644", @@ -399,7 +399,7 @@ }, "src/openai/resources/beta/threads/threads.py": { "mode": "100644", - "sha256": "b2834a13b0614f0952168655cc496ff344a766c3e9a92e7ce00b2eea73077430" + "sha256": "652f35ffa56651f81e8b7d3b2dfd1a4bb6728bd1fd7c5489c1586e5394bd21a8" }, "src/openai/resources/chat/__init__.py": { "mode": "100644", @@ -415,7 +415,7 @@ }, "src/openai/resources/chat/completions/completions.py": { "mode": "100644", - "sha256": "7bc12b0cff8913fd3229ddb9055fdbb187da497a5f2dd0feda637b41235489dc" + "sha256": "024326c180b556c045497f041301bd1eb44c26a435dc14eb929cd6a2c5500c96" }, "src/openai/resources/chat/completions/messages.py": { "mode": "100644", @@ -543,7 +543,7 @@ }, "src/openai/resources/images.py": { "mode": "100644", - "sha256": "51249a721473cb85820b9818ab9bc86db6a67dafec38c37d5fff937914738acf" + "sha256": "bc0bfc7d1a96b6c14761215ff2333fd58922d835e04956a2fa5157ea41b68dc9" }, "src/openai/resources/live/__init__.py": { "mode": "100644", @@ -587,7 +587,7 @@ }, "src/openai/resources/realtime/calls.py": { "mode": "100644", - "sha256": "570a2f0476e2308b84d61fd63d509f722b0e24c4e5a4433f324f48bfe1d3407d" + "sha256": "8160372345273d9483ecafd003a8c40e24119e50f83fc9e55e92dec4cc63a0fb" }, "src/openai/resources/realtime/client_secrets.py": { "mode": "100644", @@ -627,7 +627,7 @@ }, "src/openai/resources/responses/responses.py": { "mode": "100644", - "sha256": "7e18e308b99dd85bb224064b2c6d8eb632586a79e4cb71b8212eb39f0c410fd9" + "sha256": "b9a2ef1b61d33450318babc49e2b25f604628983804e7ebf4291f8802f372aee" }, "src/openai/resources/safety/__init__.py": { "mode": "100644", @@ -1419,11 +1419,11 @@ }, "src/openai/types/audio/speech_create_params.py": { "mode": "100644", - "sha256": "d7fe69e980d62c53974dd4762b41fdf0b0d945d673706197c522d8e12dc26d7d" + "sha256": "d4c25647c93f00168530ea5e2799b356534ea4baa2063f8d7d32c87e57edd87f" }, "src/openai/types/audio/speech_model.py": { "mode": "100644", - "sha256": "fb7ed16cd7b5546b5542f87483d6a94a265c04a7f05359d55e1b75c1532d1c8f" + "sha256": "37276fa22664c1c774efcf5ab2cbcc702948e179ca0754b8c8969ca9d9a048aa" }, "src/openai/types/audio/transcription.py": { "mode": "100644", @@ -1431,7 +1431,7 @@ }, "src/openai/types/audio/transcription_create_params.py": { "mode": "100644", - "sha256": "54870dbc1d0d26da292e196fcb33bf440997ed49a3f46333a511dc64b51c36a5" + "sha256": "9c4d52bc353a8606b5f32171356ecfb22d59b3ad02a15357ec00c02b39806dc9" }, "src/openai/types/audio/transcription_create_response.py": { "mode": "100644", @@ -1487,7 +1487,7 @@ }, "src/openai/types/audio/translation_create_params.py": { "mode": "100644", - "sha256": "966c1295c09a6173762113600440208cfe57c293aca1d3f8c06740e4272dffa0" + "sha256": "a52708572329064afaf5768d7ff4b643027cc55641945bfe09cad783cbd3b8ab" }, "src/openai/types/audio/translation_create_response.py": { "mode": "100644", @@ -1531,7 +1531,7 @@ }, "src/openai/types/audio_model.py": { "mode": "100644", - "sha256": "10c4c46d91afc4b2f8d1a5843464bc4cce44d7dbee472978c60999e438a3dd4b" + "sha256": "4de34946ca0d11a973978a70babb7021d5a030525944961441fc928f097546da" }, "src/openai/types/audio_response_format.py": { "mode": "100644", @@ -2171,7 +2171,7 @@ }, "src/openai/types/beta/assistant_create_params.py": { "mode": "100644", - "sha256": "961a304cd988cdcdd5c6a15512238f80be3221f6ffb196a2de8ea874efe32f3d" + "sha256": "0276aa1e1fc65558e3b132798a419fa26c6bc518fa0e3b0c12a7c71d7843ee4a" }, "src/openai/types/beta/assistant_deleted.py": { "mode": "100644", @@ -2227,7 +2227,7 @@ }, "src/openai/types/beta/assistant_update_params.py": { "mode": "100644", - "sha256": "23a6ce3b6210e58e57955d6123b527536725b088447d620474d83a0fce39a2f4" + "sha256": "49812f9b0cee9fb078b8f39ddcdf7afc020d121126eafc4c11680837648be113" }, "src/openai/types/beta/beta_apply_patch_tool.py": { "mode": "100644", @@ -2407,7 +2407,7 @@ }, "src/openai/types/beta/beta_response.py": { "mode": "100644", - "sha256": "8011267edd70f6c5caecda2bb50a79f880b5d64d0db4427bafcd3385117eb2a4" + "sha256": "51b540b82d5eabd7aad037a89094abaa9e5ec4d3d4c2aa5226a69ee2dd62311d" }, "src/openai/types/beta/beta_response_apply_patch_tool_call.py": { "mode": "100644", @@ -3043,11 +3043,11 @@ }, "src/openai/types/beta/beta_response_tool_search_output_item_param.py": { "mode": "100644", - "sha256": "42877c73a1ea330066a250a6956d4ffd0aa852552ccb443b5c3027fd6857aa13" + "sha256": "4b192c62e37059f8c5498f5e417930b85e4f36c0625f9d3707efa6f840d14175" }, "src/openai/types/beta/beta_response_tool_search_output_item_param_param.py": { "mode": "100644", - "sha256": "a112f6bc0d8ad99ffd4446574867e7b80562b274e9b3eb9fce37ba93df3114d7" + "sha256": "20de082754eb1e759baa8c08ba3ba3f02e18089f668932af2f4969bf4a1643de" }, "src/openai/types/beta/beta_response_usage.py": { "mode": "100644", @@ -3067,11 +3067,11 @@ }, "src/openai/types/beta/beta_responses_client_event.py": { "mode": "100644", - "sha256": "6a7d886b9e68cdc72d07ca67abeb359bae7ef6233cc10d876430b046ff4d6aaf" + "sha256": "939052a456df5a661ed334033a9151c18ed63dfba6c520fd92a7572d50efc091" }, "src/openai/types/beta/beta_responses_client_event_param.py": { "mode": "100644", - "sha256": "eadebc5be4696f3f86a45ab6ebc45cf10c7bfd272c6d4f4a543670f7ba7c28df" + "sha256": "ba2e2d06061761345308086b4b1d2ce39f86db631c46db825c5bbc7f62f63ccb" }, "src/openai/types/beta/beta_responses_server_event.py": { "mode": "100644", @@ -3091,7 +3091,7 @@ }, "src/openai/types/beta/beta_tool.py": { "mode": "100644", - "sha256": "72db599a0dbee47b7db58d1d3644af3a831e0745b88eb2690a1ad08b727e1977" + "sha256": "376e973c388fc10edecf69beb021aff4e4dba63afcaa41ae10fed500e5407c00" }, "src/openai/types/beta/beta_tool_choice_allowed.py": { "mode": "100644", @@ -3155,7 +3155,7 @@ }, "src/openai/types/beta/beta_tool_param.py": { "mode": "100644", - "sha256": "68150a4b840dbcdbe5c4efe018d446930dff904a57c07caf0f04f1d398caf2ec" + "sha256": "633d42782663ff3e67e76e36ac48513ea44f65f0920d4176d7728c0af325653a" }, "src/openai/types/beta/beta_tool_search_output_namespace_tool.py": { "mode": "100644", @@ -3399,11 +3399,11 @@ }, "src/openai/types/beta/response_compact_params.py": { "mode": "100644", - "sha256": "0ade13303e1a4f4bfb102ad52911dbb28dac31a50d7c0ff6a35728e0c6190fb2" + "sha256": "d0a31f4458a0f6ca017d548c9df73bc6d6c2ca12fae533840088d8f4598b9f41" }, "src/openai/types/beta/response_create_params.py": { "mode": "100644", - "sha256": "81053de0d2b45adb86d3d8edbf352650e2005072bcc6a968ba737de316fb3e1c" + "sha256": "60c12f205d4f4b3acca7ea2edde698bbed12461d12282f69903143b54fd83298" }, "src/openai/types/beta/response_retrieve_params.py": { "mode": "100644", @@ -3463,7 +3463,7 @@ }, "src/openai/types/beta/thread_create_and_run_params.py": { "mode": "100644", - "sha256": "b635020d07c9cd4ec9af0c0a96483625ecd5e3824a3ac9a145f9b470d5ce5a47" + "sha256": "607455cee4c422ddd7c78ed5c68cc3b595d8e942289740f62afb11aa36291489" }, "src/openai/types/beta/thread_create_params.py": { "mode": "100644", @@ -3611,7 +3611,7 @@ }, "src/openai/types/beta/threads/run_create_params.py": { "mode": "100644", - "sha256": "1cbb24127422f45b6e57d7ff32fe1ad6ab3de93129de056ee01aa4d2245dc0f7" + "sha256": "2e96236fcae5848c0fb38310083dd7160aa57e60a6ce605284b0d0d3c0488765" }, "src/openai/types/beta/threads/run_list_params.py": { "mode": "100644", @@ -3919,7 +3919,7 @@ }, "src/openai/types/chat/completion_create_params.py": { "mode": "100644", - "sha256": "9ba565d98306db4188839ef39e84a7ed0f7490fef2e2f5deda2d632c25815d47" + "sha256": "a5d49781efabeaaa1e4b037e4ef163d564488266b6a584cbf83e79bc7de49362" }, "src/openai/types/chat/completion_list_params.py": { "mode": "100644", @@ -4515,7 +4515,7 @@ }, "src/openai/types/image_create_variation_params.py": { "mode": "100644", - "sha256": "3f6ec922587f6d2dd63d4f3b939432cee2dfdb45bc4c510af91503d4b6f0ece4" + "sha256": "ec0fa1ac5128e05be922cdcf04ef38a058cccdadf03d792bc6c94ac5b4661c96" }, "src/openai/types/image_edit_completed_event.py": { "mode": "100644", @@ -4523,7 +4523,7 @@ }, "src/openai/types/image_edit_params.py": { "mode": "100644", - "sha256": "1468e16c7f7bd5bb5827fdfeb7ca5e3906392993dba59abc0d7b5d60751456f0" + "sha256": "e45d0c075029142ad45cbb557962a6e065d299687449b97405390a9534d5b7bf" }, "src/openai/types/image_edit_partial_image_event.py": { "mode": "100644", @@ -4547,7 +4547,7 @@ }, "src/openai/types/image_generate_params.py": { "mode": "100644", - "sha256": "a7d4d661d27941a10ce8104d537ce7166d46cc20eb96e17559a0a3dd7beeb3bf" + "sha256": "6196d5bd543cbc62ed4f0e64a06b78c5291d4babfde07fd8a58105f4531d614c" }, "src/openai/types/image_input_reference_param.py": { "mode": "100644", @@ -5123,15 +5123,15 @@ }, "src/openai/types/realtime/audio_transcription.py": { "mode": "100644", - "sha256": "e8b654b7248d40573bfe1ca41339025da56cfb7e23402c6c59fa2c9e102aae9d" + "sha256": "59cd4da03111d171b087505da90ed6eb9dc5407d8f2e8c1135d5c5798ce752be" }, "src/openai/types/realtime/audio_transcription_param.py": { "mode": "100644", - "sha256": "a849d72a6307ee783ab707f4c3f77a997f328048486713ce6c651cf372cedcd7" + "sha256": "9bdd038f32c2799339e48713817101e2ed1779ea98e63593e0dcde3e55e08f81" }, "src/openai/types/realtime/call_accept_params.py": { "mode": "100644", - "sha256": "a94645fafcb94221f15dc4d9e99a16a7a30acedf818db0b2733cd147c4cf47bb" + "sha256": "ca5a354965d8a8fcfb5ae0c6644752507085270f857542e24790895bfbe5acb9" }, "src/openai/types/realtime/call_create_params.py": { "mode": "100644", @@ -5547,15 +5547,15 @@ }, "src/openai/types/realtime/realtime_session_create_request.py": { "mode": "100644", - "sha256": "922e39059bfa14fec2d2de506d3bc93c013e58dfa4e2744c873a678e2407fef6" + "sha256": "9638e6e645ed0f9df54094dcc456ab90f69c39a06ff772e51b07fcdfb61b9ad1" }, "src/openai/types/realtime/realtime_session_create_request_param.py": { "mode": "100644", - "sha256": "73b62b50f41143a89329fb5eff7b40566e153877bb6de6cf80fc6f4b68ada3f5" + "sha256": "649222e828bee6965cb0a8e056d3df0e6c564051f30456f3a545002c954a3c31" }, "src/openai/types/realtime/realtime_session_create_response.py": { "mode": "100644", - "sha256": "b7ab37c1f6af3193b21c005cc688a1d2fa0d28b3d118ed8eca3b5e570b07bc1c" + "sha256": "d85dffaa20373e37f99da42a3095b0f6346808304d82593f8c55003c69632528" }, "src/openai/types/realtime/realtime_tool_choice_config.py": { "mode": "100644", @@ -6103,7 +6103,7 @@ }, "src/openai/types/responses/response_compact_params.py": { "mode": "100644", - "sha256": "d6ac093d30c520031c5feff97bea4754bbe7d8220838890b45d1e5d6d121e1b7" + "sha256": "4ab1d8aef579028de8cfb78f233e3c53a9b12475f42da7328b19f04397bbf53b" }, "src/openai/types/responses/response_compaction_compacting_event.py": { "mode": "100644", @@ -6691,11 +6691,11 @@ }, "src/openai/types/responses/response_tool_search_output_item_param.py": { "mode": "100644", - "sha256": "1b65a676c27102006b69afa0c2d4419280cc018856fdfd7e204419654238dc03" + "sha256": "8a7c4064d95a1ad47a04dfbdaf019fd5118ad25a30a1b49f85752b7f07ec7ac5" }, "src/openai/types/responses/response_tool_search_output_item_param_param.py": { "mode": "100644", - "sha256": "ee6784cfe2dd285c8ee880e25d50396088d3f1f72c7511ea61d9e92ca1d5cbf7" + "sha256": "df3872ae332dec18ef26ab3711ef6714e3ebdad7ee92d72327ea3375f10ec693" }, "src/openai/types/responses/response_usage.py": { "mode": "100644", @@ -6739,7 +6739,7 @@ }, "src/openai/types/responses/tool.py": { "mode": "100644", - "sha256": "07beb87f933d61c9288cbdf08cdc3d2c9d5e6ebd34c8da1a46ba1186f7ba6b29" + "sha256": "a8c85b7c06b6dbb6767cecfbe20b6b94a4c8b6dbc15febee58188b76b11e9ed3" }, "src/openai/types/responses/tool_choice_allowed.py": { "mode": "100644", @@ -6803,7 +6803,7 @@ }, "src/openai/types/responses/tool_param.py": { "mode": "100644", - "sha256": "96beeed6e6fbe90f379fc05bf1a090cf9fcc02aaca50194b37d70b490713085f" + "sha256": "90eee188a20ab5c89cce638b3226585386c43da0f400fd00ef9756c681fcbe99" }, "src/openai/types/responses/tool_search_output_namespace_tool.py": { "mode": "100644", @@ -6859,7 +6859,7 @@ }, "src/openai/types/shared/chat_model.py": { "mode": "100644", - "sha256": "6dd3c89893b63157ba1a5fa013adb9dd84e8b3f00733b8e84851b55f4c8cef56" + "sha256": "d2a74c51d4ee5cf1f782fc753c3db15d49cb19f8c3d04cadc4b76775b6ba4167" }, "src/openai/types/shared/comparison_filter.py": { "mode": "100644", @@ -6947,7 +6947,7 @@ }, "src/openai/types/shared_params/chat_model.py": { "mode": "100644", - "sha256": "cdb7019b0274146e4f7fd5b0115268b7a4959011742548c2466318d71e931179" + "sha256": "2b5104655f6f8942bc4a80251b65362dc4e7909a32fda979b4df3bb309bbecc9" }, "src/openai/types/shared_params/comparison_filter.py": { "mode": "100644", @@ -7587,7 +7587,7 @@ }, "tests/api_resources/audio/test_translations.py": { "mode": "100644", - "sha256": "f8be56e40c3af5e922e0bb1e2e4cc7a677a9abf162287fd1818b89b3a367560f" + "sha256": "73ced6a2e0c145127c61738b0e96152425f19654d7e7ba46254fecb0b34e288d" }, "tests/api_resources/audio/test_voice_consents.py": { "mode": "100644", diff --git a/src/openai/resources/audio/speech.py b/src/openai/resources/audio/speech.py index 91ef259f4c..2b64a101f8 100644 --- a/src/openai/resources/audio/speech.py +++ b/src/openai/resources/audio/speech.py @@ -69,6 +69,14 @@ def create( Returns the audio file content, or a stream of audio events. + The `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, `gpt-4o-mini-tts-2025-03-20`, and + `gpt-4o-mini-tts-2025-12-15` models are deprecated and scheduled to shut down on + January 6, 2027. These examples use the existing Speech API; for new + integrations, migrate to `gpt-realtime-2.1-mini` through the + [Realtime API](https://developers.openai.com/api/docs/guides/realtime). See the + [deprecation schedule](https://developers.openai.com/api/docs/deprecations) for + migration details. + Args: input: The text to generate audio for. The maximum length is 4096 characters. @@ -77,6 +85,13 @@ def create( [TTS models](https://developers.openai.com/api/docs/guides/text-to-speech): `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`. + Deprecated values: + + - "tts-1", "tts-1-hd", "gpt-4o-mini-tts", "gpt-4o-mini-tts-2025-12-15": + Announced shutdown date: 2027-01-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + voice: The voice to use when generating the audio. Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, `verse`, `marin`, and `cedar`. You may also provide a custom voice @@ -176,6 +191,14 @@ async def create( Returns the audio file content, or a stream of audio events. + The `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, `gpt-4o-mini-tts-2025-03-20`, and + `gpt-4o-mini-tts-2025-12-15` models are deprecated and scheduled to shut down on + January 6, 2027. These examples use the existing Speech API; for new + integrations, migrate to `gpt-realtime-2.1-mini` through the + [Realtime API](https://developers.openai.com/api/docs/guides/realtime). See the + [deprecation schedule](https://developers.openai.com/api/docs/deprecations) for + migration details. + Args: input: The text to generate audio for. The maximum length is 4096 characters. @@ -184,6 +207,13 @@ async def create( [TTS models](https://developers.openai.com/api/docs/guides/text-to-speech): `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`. + Deprecated values: + + - "tts-1", "tts-1-hd", "gpt-4o-mini-tts", "gpt-4o-mini-tts-2025-12-15": + Announced shutdown date: 2027-01-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + voice: The voice to use when generating the audio. Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, `verse`, `marin`, and `cedar`. You may also provide a custom voice diff --git a/src/openai/resources/audio/transcriptions.py b/src/openai/resources/audio/transcriptions.py index d8719c5a72..c6e829a5e7 100644 --- a/src/openai/resources/audio/transcriptions.py +++ b/src/openai/resources/audio/transcriptions.py @@ -221,6 +221,14 @@ def create( (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`. + Deprecated values: + + - "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe", + "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize": Announced + shutdown date: 2027-02-26. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + chunking_strategy: Controls how the audio is cut into chunks. When set to `"auto"`, the server first normalizes loudness and then uses voice activity detection (VAD) to choose boundaries. `server_vad` object can be provided to tweak VAD detection @@ -343,6 +351,14 @@ def create( (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`. + Deprecated values: + + - "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe", + "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize": Announced + shutdown date: 2027-02-26. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + stream: If set to true, the model response data will be streamed to the client as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). @@ -465,6 +481,14 @@ def create( (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`. + Deprecated values: + + - "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe", + "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize": Announced + shutdown date: 2027-02-26. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + stream: If set to true, the model response data will be streamed to the client as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). @@ -587,6 +611,14 @@ def create( (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`. + Deprecated values: + + - "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe", + "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize": Announced + shutdown date: 2027-02-26. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + chunking_strategy: Controls how the audio is cut into chunks. When set to `"auto"`, the server first normalizes loudness and then uses voice activity detection (VAD) to choose boundaries. `server_vad` object can be provided to tweak VAD detection @@ -879,6 +911,14 @@ async def create( (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`. + Deprecated values: + + - "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe", + "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize": Announced + shutdown date: 2027-02-26. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + chunking_strategy: Controls how the audio is cut into chunks. When set to `"auto"`, the server first normalizes loudness and then uses voice activity detection (VAD) to choose boundaries. `server_vad` object can be provided to tweak VAD detection @@ -1001,6 +1041,14 @@ async def create( (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`. + Deprecated values: + + - "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe", + "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize": Announced + shutdown date: 2027-02-26. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + stream: If set to true, the model response data will be streamed to the client as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). @@ -1123,6 +1171,14 @@ async def create( (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`. + Deprecated values: + + - "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe", + "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize": Announced + shutdown date: 2027-02-26. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + stream: If set to true, the model response data will be streamed to the client as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). @@ -1245,6 +1301,14 @@ async def create( (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`. + Deprecated values: + + - "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe", + "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize": Announced + shutdown date: 2027-02-26. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + chunking_strategy: Controls how the audio is cut into chunks. When set to `"auto"`, the server first normalizes loudness and then uses voice activity detection (VAD) to choose boundaries. `server_vad` object can be provided to tweak VAD detection diff --git a/src/openai/resources/audio/translations.py b/src/openai/resources/audio/translations.py index 779da4e8a4..b998715827 100644 --- a/src/openai/resources/audio/translations.py +++ b/src/openai/resources/audio/translations.py @@ -3,6 +3,7 @@ from __future__ import annotations import logging +import typing_extensions from typing import Union, Mapping, cast from typing_extensions import Literal, overload @@ -61,6 +62,7 @@ def with_streaming_response(self) -> TranslationsWithStreamingResponse: return TranslationsWithStreamingResponse(self) @overload + @typing_extensions.deprecated("deprecated", category=None) def create( self, *, @@ -78,6 +80,7 @@ def create( ) -> Translation: ... @overload + @typing_extensions.deprecated("deprecated", category=None) def create( self, *, @@ -95,6 +98,7 @@ def create( ) -> TranslationVerbose: ... @overload + @typing_extensions.deprecated("deprecated", category=None) def create( self, *, @@ -112,6 +116,7 @@ def create( ) -> str: ... @overload + @typing_extensions.deprecated("deprecated", category=None) def create( self, *, @@ -128,6 +133,7 @@ def create( timeout: float | httpx2.Timeout | None | NotGiven = not_given, ) -> Translation | TranslationVerbose | str: ... + @typing_extensions.deprecated("deprecated") def create( self, *, @@ -146,6 +152,12 @@ def create( """ Translates audio into English. + This endpoint supports only `whisper-1`. The endpoint and model are deprecated + and scheduled to shut down on February 26, 2027. Migrate to + `/v1/realtime/translations`, which requires a separate integration. See the + [deprecation schedule](https://developers.openai.com/api/docs/deprecations) for + details. + Args: file: The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include enough @@ -155,6 +167,14 @@ def create( model: ID of the model to use. Only `whisper-1` (which is powered by our open source Whisper V2 model) is currently available. + Deprecated values: + + - "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe", + "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize": Announced + shutdown date: 2027-02-26. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + prompt: An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://developers.openai.com/api/docs/guides/speech-to-text#prompting) @@ -230,6 +250,7 @@ def with_streaming_response(self) -> AsyncTranslationsWithStreamingResponse: return AsyncTranslationsWithStreamingResponse(self) @overload + @typing_extensions.deprecated("deprecated", category=None) async def create( self, *, @@ -247,6 +268,7 @@ async def create( ) -> Translation: ... @overload + @typing_extensions.deprecated("deprecated", category=None) async def create( self, *, @@ -264,6 +286,7 @@ async def create( ) -> TranslationVerbose: ... @overload + @typing_extensions.deprecated("deprecated", category=None) async def create( self, *, @@ -281,6 +304,7 @@ async def create( ) -> str: ... @overload + @typing_extensions.deprecated("deprecated", category=None) async def create( self, *, @@ -297,6 +321,7 @@ async def create( timeout: float | httpx2.Timeout | None | NotGiven = not_given, ) -> Translation | TranslationVerbose | str: ... + @typing_extensions.deprecated("deprecated") async def create( self, *, @@ -315,6 +340,12 @@ async def create( """ Translates audio into English. + This endpoint supports only `whisper-1`. The endpoint and model are deprecated + and scheduled to shut down on February 26, 2027. Migrate to + `/v1/realtime/translations`, which requires a separate integration. See the + [deprecation schedule](https://developers.openai.com/api/docs/deprecations) for + details. + Args: file: The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include enough @@ -324,6 +355,14 @@ async def create( model: ID of the model to use. Only `whisper-1` (which is powered by our open source Whisper V2 model) is currently available. + Deprecated values: + + - "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe", + "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize": Announced + shutdown date: 2027-02-26. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + prompt: An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://developers.openai.com/api/docs/guides/speech-to-text#prompting) @@ -380,8 +419,10 @@ class TranslationsWithRawResponse: def __init__(self, translations: Translations) -> None: self._translations = translations - self.create = _legacy_response.to_raw_response_wrapper( - translations.create, + self.create = ( # pyright: ignore[reportDeprecated] + _legacy_response.to_raw_response_wrapper( + translations.create, # pyright: ignore[reportDeprecated], + ) ) @@ -389,8 +430,10 @@ class AsyncTranslationsWithRawResponse: def __init__(self, translations: AsyncTranslations) -> None: self._translations = translations - self.create = _legacy_response.async_to_raw_response_wrapper( - translations.create, + self.create = ( # pyright: ignore[reportDeprecated] + _legacy_response.async_to_raw_response_wrapper( + translations.create, # pyright: ignore[reportDeprecated], + ) ) @@ -398,8 +441,10 @@ class TranslationsWithStreamingResponse: def __init__(self, translations: Translations) -> None: self._translations = translations - self.create = to_streamed_response_wrapper( - translations.create, + self.create = ( # pyright: ignore[reportDeprecated] + to_streamed_response_wrapper( + translations.create, # pyright: ignore[reportDeprecated], + ) ) @@ -407,6 +452,8 @@ class AsyncTranslationsWithStreamingResponse: def __init__(self, translations: AsyncTranslations) -> None: self._translations = translations - self.create = async_to_streamed_response_wrapper( - translations.create, + self.create = ( # pyright: ignore[reportDeprecated] + async_to_streamed_response_wrapper( + translations.create, # pyright: ignore[reportDeprecated], + ) ) diff --git a/src/openai/resources/beta/assistants.py b/src/openai/resources/beta/assistants.py index 3dea39d337..9a20a474d1 100644 --- a/src/openai/resources/beta/assistants.py +++ b/src/openai/resources/beta/assistants.py @@ -86,6 +86,78 @@ def create( [Model overview](https://developers.openai.com/api/docs/models) for descriptions of them. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + description: The description of the assistant. The maximum length is 512 characters. instructions: The system instructions that the assistant uses. The maximum length is 256,000 @@ -316,6 +388,16 @@ def update( [Model overview](https://developers.openai.com/api/docs/models) for descriptions of them. + Deprecated values: + + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07": Announced shutdown date: + 2026-12-11. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4o", "gpt-4o-mini": Announced shutdown date: + 2027-01-14. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + name: The name of the assistant. The maximum length is 256 characters. reasoning_effort: Constrains effort on reasoning for reasoning models. Currently supported values @@ -565,6 +647,78 @@ async def create( [Model overview](https://developers.openai.com/api/docs/models) for descriptions of them. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + description: The description of the assistant. The maximum length is 512 characters. instructions: The system instructions that the assistant uses. The maximum length is 256,000 @@ -795,6 +949,16 @@ async def update( [Model overview](https://developers.openai.com/api/docs/models) for descriptions of them. + Deprecated values: + + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07": Announced shutdown date: + 2026-12-11. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4o", "gpt-4o-mini": Announced shutdown date: + 2027-01-14. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + name: The name of the assistant. The maximum length is 256 characters. reasoning_effort: Constrains effort on reasoning for reasoning models. Currently supported values diff --git a/src/openai/resources/beta/responses/responses.py b/src/openai/resources/beta/responses/responses.py index 00782d9959..5ef217aafb 100644 --- a/src/openai/resources/beta/responses/responses.py +++ b/src/openai/resources/beta/responses/responses.py @@ -351,6 +351,83 @@ def create( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + moderation: Configuration for running moderation on the input and output of this response. multi_agent: Configuration for server-hosted multi-agent execution. @@ -769,6 +846,83 @@ def create( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + moderation: Configuration for running moderation on the input and output of this response. multi_agent: Configuration for server-hosted multi-agent execution. @@ -1180,6 +1334,83 @@ def create( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + moderation: Configuration for running moderation on the input and output of this response. multi_agent: Configuration for server-hosted multi-agent execution. @@ -1990,6 +2221,83 @@ def compact( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + input: Text, image, or file inputs to the model, used to generate a response instructions: A system (or developer) message inserted into the model's context. When used @@ -2374,6 +2682,83 @@ async def create( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + moderation: Configuration for running moderation on the input and output of this response. multi_agent: Configuration for server-hosted multi-agent execution. @@ -2792,6 +3177,83 @@ async def create( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + moderation: Configuration for running moderation on the input and output of this response. multi_agent: Configuration for server-hosted multi-agent execution. @@ -3203,6 +3665,83 @@ async def create( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + moderation: Configuration for running moderation on the input and output of this response. multi_agent: Configuration for server-hosted multi-agent execution. @@ -4013,6 +4552,83 @@ async def compact( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + input: Text, image, or file inputs to the model, used to generate a response instructions: A system (or developer) message inserted into the model's context. When used diff --git a/src/openai/resources/beta/threads/runs/runs.py b/src/openai/resources/beta/threads/runs/runs.py index ad783a9ff3..a335086034 100644 --- a/src/openai/resources/beta/threads/runs/runs.py +++ b/src/openai/resources/beta/threads/runs/runs.py @@ -498,7 +498,7 @@ def submit_tool_outputs_stream( ) @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) def create( self, thread_id: str, @@ -579,6 +579,78 @@ def create( associated with the assistant. If not, the model associated with the assistant will be used. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + parallel_tool_calls: Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use. @@ -650,7 +722,7 @@ def create( ... @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) def create( self, thread_id: str, @@ -735,6 +807,78 @@ def create( associated with the assistant. If not, the model associated with the assistant will be used. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + parallel_tool_calls: Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use. @@ -802,7 +946,7 @@ def create( ... @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) def create( self, thread_id: str, @@ -887,6 +1031,78 @@ def create( associated with the assistant. If not, the model associated with the assistant will be used. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + parallel_tool_calls: Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use. @@ -1230,7 +1446,7 @@ def cancel( ) @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) def submit_tool_outputs( self, run_id: str, @@ -1269,7 +1485,7 @@ def submit_tool_outputs( ... @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) def submit_tool_outputs( self, run_id: str, @@ -1308,7 +1524,7 @@ def submit_tool_outputs( ... @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) def submit_tool_outputs( self, run_id: str, @@ -1829,7 +2045,7 @@ def submit_tool_outputs_stream( ) @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) async def create( self, thread_id: str, @@ -1910,6 +2126,78 @@ async def create( associated with the assistant. If not, the model associated with the assistant will be used. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + parallel_tool_calls: Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use. @@ -1981,7 +2269,7 @@ async def create( ... @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) async def create( self, thread_id: str, @@ -2066,6 +2354,78 @@ async def create( associated with the assistant. If not, the model associated with the assistant will be used. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + parallel_tool_calls: Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use. @@ -2133,7 +2493,7 @@ async def create( ... @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) async def create( self, thread_id: str, @@ -2218,6 +2578,78 @@ async def create( associated with the assistant. If not, the model associated with the assistant will be used. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + parallel_tool_calls: Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use. @@ -2562,7 +2994,7 @@ async def cancel( ) @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) async def submit_tool_outputs( self, run_id: str, @@ -2601,7 +3033,7 @@ async def submit_tool_outputs( ... @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) async def submit_tool_outputs( self, run_id: str, @@ -2640,7 +3072,7 @@ async def submit_tool_outputs( ... @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) async def submit_tool_outputs( self, run_id: str, diff --git a/src/openai/resources/beta/threads/threads.py b/src/openai/resources/beta/threads/threads.py index 9d1976fb0f..3d20a6f572 100644 --- a/src/openai/resources/beta/threads/threads.py +++ b/src/openai/resources/beta/threads/threads.py @@ -455,7 +455,7 @@ def delete( ) @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) def create_and_run( self, *, @@ -518,6 +518,78 @@ def create_and_run( associated with the assistant. If not, the model associated with the assistant will be used. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + parallel_tool_calls: Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use. @@ -590,7 +662,7 @@ def create_and_run( ... @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) def create_and_run( self, *, @@ -657,6 +729,78 @@ def create_and_run( associated with the assistant. If not, the model associated with the assistant will be used. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + parallel_tool_calls: Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use. @@ -725,7 +869,7 @@ def create_and_run( ... @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) def create_and_run( self, *, @@ -792,6 +936,78 @@ def create_and_run( associated with the assistant. If not, the model associated with the assistant will be used. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + parallel_tool_calls: Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use. @@ -1322,7 +1538,7 @@ async def delete( ) @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) async def create_and_run( self, *, @@ -1385,6 +1601,78 @@ async def create_and_run( associated with the assistant. If not, the model associated with the assistant will be used. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + parallel_tool_calls: Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use. @@ -1457,7 +1745,7 @@ async def create_and_run( ... @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) async def create_and_run( self, *, @@ -1524,6 +1812,78 @@ async def create_and_run( associated with the assistant. If not, the model associated with the assistant will be used. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + parallel_tool_calls: Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use. @@ -1592,7 +1952,7 @@ async def create_and_run( ... @overload - @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API") + @typing_extensions.deprecated("The Assistants API is deprecated in favor of the Responses API", category=None) async def create_and_run( self, *, @@ -1659,6 +2019,78 @@ async def create_and_run( associated with the assistant. If not, the model associated with the assistant will be used. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + parallel_tool_calls: Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use. diff --git a/src/openai/resources/chat/completions/completions.py b/src/openai/resources/chat/completions/completions.py index f327f9c601..356c99540b 100644 --- a/src/openai/resources/chat/completions/completions.py +++ b/src/openai/resources/chat/completions/completions.py @@ -410,6 +410,78 @@ def create( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + audio: Parameters for audio output. Required when audio output is requested with `modalities: ["audio"]`. [Learn more](https://developers.openai.com/api/docs/guides/audio). @@ -749,6 +821,78 @@ def create( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + stream: If set to true, the model response data will be streamed to the client as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). @@ -1088,6 +1232,78 @@ def create( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + stream: If set to true, the model response data will be streamed to the client as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). @@ -1997,6 +2213,78 @@ async def create( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + audio: Parameters for audio output. Required when audio output is requested with `modalities: ["audio"]`. [Learn more](https://developers.openai.com/api/docs/guides/audio). @@ -2336,6 +2624,78 @@ async def create( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + stream: If set to true, the model response data will be streamed to the client as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). @@ -2675,6 +3035,78 @@ async def create( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + stream: If set to true, the model response data will be streamed to the client as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). diff --git a/src/openai/resources/images.py b/src/openai/resources/images.py index 37e91822f5..384e2aed33 100644 --- a/src/openai/resources/images.py +++ b/src/openai/resources/images.py @@ -78,6 +78,13 @@ def create_variation( model: The legacy model used by the retired image variations endpoint. This endpoint no longer accepts requests. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + n: The number of images to generate. Must be between 1 and 10. response_format: The format in which the generated images are returned. Must be one of `url` or @@ -204,6 +211,13 @@ def edit( `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + n: The number of images to generate. Must be between 1 and 10. output_compression: The compression level (0-100%) for the generated images. This parameter is only @@ -226,6 +240,11 @@ def edit( `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. Defaults to `auto`. + Deprecated values: + + - "standard": This quality was only supported by retired DALL·E models. Use a + GPT image quality instead. + response_format: Legacy response format parameter for retired image models. Unsupported for GPT image models, which always return base64-encoded images. @@ -248,6 +267,11 @@ def edit( `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + Deprecated values: + + - "256x256", "512x512": This legacy size suggestion is retained for SDK + compatibility. Check the selected GPT image model's supported sizes. + stream: Edit the image in streaming mode. Defaults to `false`. See the [Image generation guide](https://developers.openai.com/api/docs/guides/image-generation) for more information. @@ -346,6 +370,13 @@ def edit( `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + n: The number of images to generate. Must be between 1 and 10. output_compression: The compression level (0-100%) for the generated images. This parameter is only @@ -368,6 +399,11 @@ def edit( `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. Defaults to `auto`. + Deprecated values: + + - "standard": This quality was only supported by retired DALL·E models. Use a + GPT image quality instead. + response_format: Legacy response format parameter for retired image models. Unsupported for GPT image models, which always return base64-encoded images. @@ -390,6 +426,11 @@ def edit( `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + Deprecated values: + + - "256x256", "512x512": This legacy size suggestion is retained for SDK + compatibility. Check the selected GPT image model's supported sizes. + user: Deprecated: use `safety_identifier` instead. This parameter remains accepted for backward compatibility and is used when `safety_identifier` is omitted, null, or empty. @@ -484,6 +525,13 @@ def edit( `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + n: The number of images to generate. Must be between 1 and 10. output_compression: The compression level (0-100%) for the generated images. This parameter is only @@ -506,6 +554,11 @@ def edit( `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. Defaults to `auto`. + Deprecated values: + + - "standard": This quality was only supported by retired DALL·E models. Use a + GPT image quality instead. + response_format: Legacy response format parameter for retired image models. Unsupported for GPT image models, which always return base64-encoded images. @@ -528,6 +581,11 @@ def edit( `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + Deprecated values: + + - "256x256", "512x512": This legacy size suggestion is retained for SDK + compatibility. Check the selected GPT image model's supported sizes. + user: Deprecated: use `safety_identifier` instead. This parameter remains accepted for backward compatibility and is used when `safety_identifier` is omitted, null, or empty. @@ -674,6 +732,13 @@ def generate( `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + moderation: Control the content-moderation level for images generated by the GPT image models. Must be either `low` for less restrictive filtering or `auto` (default value). @@ -702,6 +767,11 @@ def generate( - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. + Deprecated values: + + - "standard", "hd": This quality was only supported by retired DALL·E models. + Use a GPT image quality instead. + response_format: Legacy response format parameter for retired image models. Unsupported for GPT image models, which always return base64-encoded images. @@ -723,6 +793,12 @@ def generate( `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + Deprecated values: + + - "256x256", "512x512", "1792x1024", "1024x1792": This legacy size suggestion is + retained for SDK compatibility. Check the selected GPT image model's supported + sizes. + stream: Generate the image in streaming mode. Defaults to `false`. See the [Image generation guide](https://developers.openai.com/api/docs/guides/image-generation) for more information. This parameter is only supported for the GPT image models. @@ -807,6 +883,13 @@ def generate( `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + moderation: Control the content-moderation level for images generated by the GPT image models. Must be either `low` for less restrictive filtering or `auto` (default value). @@ -835,6 +918,11 @@ def generate( - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. + Deprecated values: + + - "standard", "hd": This quality was only supported by retired DALL·E models. + Use a GPT image quality instead. + response_format: Legacy response format parameter for retired image models. Unsupported for GPT image models, which always return base64-encoded images. @@ -856,6 +944,12 @@ def generate( `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + Deprecated values: + + - "256x256", "512x512", "1792x1024", "1024x1792": This legacy size suggestion is + retained for SDK compatibility. Check the selected GPT image model's supported + sizes. + style: Legacy style parameter for retired image models. Unsupported for GPT image models; describe the desired style in the prompt instead. @@ -936,6 +1030,13 @@ def generate( `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + moderation: Control the content-moderation level for images generated by the GPT image models. Must be either `low` for less restrictive filtering or `auto` (default value). @@ -964,6 +1065,11 @@ def generate( - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. + Deprecated values: + + - "standard", "hd": This quality was only supported by retired DALL·E models. + Use a GPT image quality instead. + response_format: Legacy response format parameter for retired image models. Unsupported for GPT image models, which always return base64-encoded images. @@ -985,6 +1091,12 @@ def generate( `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + Deprecated values: + + - "256x256", "512x512", "1792x1024", "1024x1792": This legacy size suggestion is + retained for SDK compatibility. Check the selected GPT image model's supported + sizes. + style: Legacy style parameter for retired image models. Unsupported for GPT image models; describe the desired style in the prompt instead. @@ -1123,6 +1235,13 @@ async def create_variation( model: The legacy model used by the retired image variations endpoint. This endpoint no longer accepts requests. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + n: The number of images to generate. Must be between 1 and 10. response_format: The format in which the generated images are returned. Must be one of `url` or @@ -1249,6 +1368,13 @@ async def edit( `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + n: The number of images to generate. Must be between 1 and 10. output_compression: The compression level (0-100%) for the generated images. This parameter is only @@ -1271,6 +1397,11 @@ async def edit( `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. Defaults to `auto`. + Deprecated values: + + - "standard": This quality was only supported by retired DALL·E models. Use a + GPT image quality instead. + response_format: Legacy response format parameter for retired image models. Unsupported for GPT image models, which always return base64-encoded images. @@ -1293,6 +1424,11 @@ async def edit( `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + Deprecated values: + + - "256x256", "512x512": This legacy size suggestion is retained for SDK + compatibility. Check the selected GPT image model's supported sizes. + stream: Edit the image in streaming mode. Defaults to `false`. See the [Image generation guide](https://developers.openai.com/api/docs/guides/image-generation) for more information. @@ -1391,6 +1527,13 @@ async def edit( `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + n: The number of images to generate. Must be between 1 and 10. output_compression: The compression level (0-100%) for the generated images. This parameter is only @@ -1413,6 +1556,11 @@ async def edit( `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. Defaults to `auto`. + Deprecated values: + + - "standard": This quality was only supported by retired DALL·E models. Use a + GPT image quality instead. + response_format: Legacy response format parameter for retired image models. Unsupported for GPT image models, which always return base64-encoded images. @@ -1435,6 +1583,11 @@ async def edit( `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + Deprecated values: + + - "256x256", "512x512": This legacy size suggestion is retained for SDK + compatibility. Check the selected GPT image model's supported sizes. + user: Deprecated: use `safety_identifier` instead. This parameter remains accepted for backward compatibility and is used when `safety_identifier` is omitted, null, or empty. @@ -1529,6 +1682,13 @@ async def edit( `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + n: The number of images to generate. Must be between 1 and 10. output_compression: The compression level (0-100%) for the generated images. This parameter is only @@ -1551,6 +1711,11 @@ async def edit( `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. Defaults to `auto`. + Deprecated values: + + - "standard": This quality was only supported by retired DALL·E models. Use a + GPT image quality instead. + response_format: Legacy response format parameter for retired image models. Unsupported for GPT image models, which always return base64-encoded images. @@ -1573,6 +1738,11 @@ async def edit( `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + Deprecated values: + + - "256x256", "512x512": This legacy size suggestion is retained for SDK + compatibility. Check the selected GPT image model's supported sizes. + user: Deprecated: use `safety_identifier` instead. This parameter remains accepted for backward compatibility and is used when `safety_identifier` is omitted, null, or empty. @@ -1719,6 +1889,13 @@ async def generate( `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + moderation: Control the content-moderation level for images generated by the GPT image models. Must be either `low` for less restrictive filtering or `auto` (default value). @@ -1747,6 +1924,11 @@ async def generate( - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. + Deprecated values: + + - "standard", "hd": This quality was only supported by retired DALL·E models. + Use a GPT image quality instead. + response_format: Legacy response format parameter for retired image models. Unsupported for GPT image models, which always return base64-encoded images. @@ -1768,6 +1950,12 @@ async def generate( `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + Deprecated values: + + - "256x256", "512x512", "1792x1024", "1024x1792": This legacy size suggestion is + retained for SDK compatibility. Check the selected GPT image model's supported + sizes. + stream: Generate the image in streaming mode. Defaults to `false`. See the [Image generation guide](https://developers.openai.com/api/docs/guides/image-generation) for more information. This parameter is only supported for the GPT image models. @@ -1852,6 +2040,13 @@ async def generate( `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + moderation: Control the content-moderation level for images generated by the GPT image models. Must be either `low` for less restrictive filtering or `auto` (default value). @@ -1880,6 +2075,11 @@ async def generate( - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. + Deprecated values: + + - "standard", "hd": This quality was only supported by retired DALL·E models. + Use a GPT image quality instead. + response_format: Legacy response format parameter for retired image models. Unsupported for GPT image models, which always return base64-encoded images. @@ -1901,6 +2101,12 @@ async def generate( `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + Deprecated values: + + - "256x256", "512x512", "1792x1024", "1024x1792": This legacy size suggestion is + retained for SDK compatibility. Check the selected GPT image model's supported + sizes. + style: Legacy style parameter for retired image models. Unsupported for GPT image models; describe the desired style in the prompt instead. @@ -1981,6 +2187,13 @@ async def generate( `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. + moderation: Control the content-moderation level for images generated by the GPT image models. Must be either `low` for less restrictive filtering or `auto` (default value). @@ -2009,6 +2222,11 @@ async def generate( - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. + Deprecated values: + + - "standard", "hd": This quality was only supported by retired DALL·E models. + Use a GPT image quality instead. + response_format: Legacy response format parameter for retired image models. Unsupported for GPT image models, which always return base64-encoded images. @@ -2030,6 +2248,12 @@ async def generate( `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + Deprecated values: + + - "256x256", "512x512", "1792x1024", "1024x1792": This legacy size suggestion is + retained for SDK compatibility. Check the selected GPT image model's supported + sizes. + style: Legacy style parameter for retired image models. Unsupported for GPT image models; describe the desired style in the prompt instead. diff --git a/src/openai/resources/realtime/calls.py b/src/openai/resources/realtime/calls.py index 2f75d31c49..4920094971 100644 --- a/src/openai/resources/realtime/calls.py +++ b/src/openai/resources/realtime/calls.py @@ -208,6 +208,14 @@ def accept( model: The Realtime model used for this session. + Deprecated values: + + - "gpt-realtime", "gpt-realtime-2025-08-28", "gpt-realtime-mini", + "gpt-realtime-mini-2025-12-15", "gpt-audio-mini", "gpt-audio-mini-2025-12-15": + Announced shutdown date: 2027-01-20. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + output_modalities: The set of modalities the model can respond with. It defaults to `["audio"]`, indicating that the model will respond with audio plus a transcript. `["text"]` can be used to make the model respond with text only. It is not possible to @@ -588,6 +596,14 @@ async def accept( model: The Realtime model used for this session. + Deprecated values: + + - "gpt-realtime", "gpt-realtime-2025-08-28", "gpt-realtime-mini", + "gpt-realtime-mini-2025-12-15", "gpt-audio-mini", "gpt-audio-mini-2025-12-15": + Announced shutdown date: 2027-01-20. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + output_modalities: The set of modalities the model can respond with. It defaults to `["audio"]`, indicating that the model will respond with audio plus a transcript. `["text"]` can be used to make the model respond with text only. It is not possible to diff --git a/src/openai/resources/responses/responses.py b/src/openai/resources/responses/responses.py index c3bc99a99a..1eac3b2e96 100644 --- a/src/openai/resources/responses/responses.py +++ b/src/openai/resources/responses/responses.py @@ -1727,6 +1727,83 @@ def compact( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + input: Text, image, or file inputs to the model, used to generate a response instructions: A system (or developer) message inserted into the model's context. When used @@ -3476,6 +3553,83 @@ async def compact( [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + input: Text, image, or file inputs to the model, used to generate a response instructions: A system (or developer) message inserted into the model's context. When used diff --git a/src/openai/types/audio/speech_create_params.py b/src/openai/types/audio/speech_create_params.py index 4218f2f840..c9e36a977a 100644 --- a/src/openai/types/audio/speech_create_params.py +++ b/src/openai/types/audio/speech_create_params.py @@ -19,6 +19,13 @@ class SpeechCreateParams(TypedDict, total=False): One of the available [TTS models](https://developers.openai.com/api/docs/guides/text-to-speech): `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`. + + Deprecated values: + + - "tts-1", "tts-1-hd", "gpt-4o-mini-tts", "gpt-4o-mini-tts-2025-12-15": + Announced shutdown date: 2027-01-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. """ voice: Required[Voice] diff --git a/src/openai/types/audio/speech_model.py b/src/openai/types/audio/speech_model.py index bf9b4ccd05..abfeb093a4 100644 --- a/src/openai/types/audio/speech_model.py +++ b/src/openai/types/audio/speech_model.py @@ -5,3 +5,10 @@ __all__ = ["SpeechModel"] SpeechModel: TypeAlias = Literal["tts-1", "tts-1-hd", "gpt-4o-mini-tts", "gpt-4o-mini-tts-2025-12-15"] +"""Deprecated values: + +- "tts-1", "tts-1-hd", "gpt-4o-mini-tts", "gpt-4o-mini-tts-2025-12-15": + Announced shutdown date: 2027-01-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. +""" diff --git a/src/openai/types/audio/transcription_create_params.py b/src/openai/types/audio/transcription_create_params.py index e1c29e5a3c..e29a0cf1c4 100644 --- a/src/openai/types/audio/transcription_create_params.py +++ b/src/openai/types/audio/transcription_create_params.py @@ -34,6 +34,14 @@ class TranscriptionCreateParamsBase(TypedDict, total=False): The options are `gpt-transcribe`, `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1` (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`. + + Deprecated values: + + - "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe", + "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize": Announced + shutdown date: 2027-02-26. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. """ chunking_strategy: Optional[ChunkingStrategy] diff --git a/src/openai/types/audio/translation_create_params.py b/src/openai/types/audio/translation_create_params.py index c06c9abf5c..a691aff727 100644 --- a/src/openai/types/audio/translation_create_params.py +++ b/src/openai/types/audio/translation_create_params.py @@ -25,6 +25,14 @@ class TranslationCreateParams(TypedDict, total=False): Only `whisper-1` (which is powered by our open source Whisper V2 model) is currently available. + + Deprecated values: + + - "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe", + "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize": Announced + shutdown date: 2027-02-26. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. """ prompt: str diff --git a/src/openai/types/audio_model.py b/src/openai/types/audio_model.py index ac6220d6b1..86388cf8e7 100644 --- a/src/openai/types/audio_model.py +++ b/src/openai/types/audio_model.py @@ -12,3 +12,11 @@ "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize", ] +"""Deprecated values: + +- "whisper-1", "gpt-4o-transcribe", "gpt-4o-mini-transcribe", + "gpt-4o-mini-transcribe-2025-12-15", "gpt-4o-transcribe-diarize": Announced + shutdown date: 2027-02-26. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. +""" diff --git a/src/openai/types/beta/assistant_create_params.py b/src/openai/types/beta/assistant_create_params.py index 7e863575f8..80c03fd3a1 100644 --- a/src/openai/types/beta/assistant_create_params.py +++ b/src/openai/types/beta/assistant_create_params.py @@ -34,6 +34,78 @@ class AssistantCreateParams(TypedDict, total=False): API to see all of your available models, or see our [Model overview](https://developers.openai.com/api/docs/models) for descriptions of them. + + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. """ description: Optional[str] diff --git a/src/openai/types/beta/assistant_update_params.py b/src/openai/types/beta/assistant_update_params.py index 2b28c10627..e631d0d9c1 100644 --- a/src/openai/types/beta/assistant_update_params.py +++ b/src/openai/types/beta/assistant_update_params.py @@ -88,6 +88,16 @@ class AssistantUpdateParams(TypedDict, total=False): API to see all of your available models, or see our [Model overview](https://developers.openai.com/api/docs/models) for descriptions of them. + + Deprecated values: + + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07": Announced shutdown date: + 2026-12-11. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4o", "gpt-4o-mini": Announced shutdown date: + 2027-01-14. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. """ name: Optional[str] diff --git a/src/openai/types/beta/beta_response.py b/src/openai/types/beta/beta_response.py index d84537ae91..e197f1ee6b 100644 --- a/src/openai/types/beta/beta_response.py +++ b/src/openai/types/beta/beta_response.py @@ -467,6 +467,83 @@ class BetaResponse(BaseModel): characteristics, and price points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. """ object: Literal["response"] diff --git a/src/openai/types/beta/beta_response_tool_search_output_item_param.py b/src/openai/types/beta/beta_response_tool_search_output_item_param.py index 74093db9c4..d576f43a9b 100644 --- a/src/openai/types/beta/beta_response_tool_search_output_item_param.py +++ b/src/openai/types/beta/beta_response_tool_search_output_item_param.py @@ -320,6 +320,11 @@ class ToolImageGeneration(BaseModel): `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. """ moderation: Optional[Literal["auto", "low"]] = None diff --git a/src/openai/types/beta/beta_response_tool_search_output_item_param_param.py b/src/openai/types/beta/beta_response_tool_search_output_item_param_param.py index c12119c97d..7655e6b488 100644 --- a/src/openai/types/beta/beta_response_tool_search_output_item_param_param.py +++ b/src/openai/types/beta/beta_response_tool_search_output_item_param_param.py @@ -318,6 +318,11 @@ class ToolImageGeneration(TypedDict, total=False): `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. """ moderation: Literal["auto", "low"] diff --git a/src/openai/types/beta/beta_responses_client_event.py b/src/openai/types/beta/beta_responses_client_event.py index f77142769e..111e4dd070 100644 --- a/src/openai/types/beta/beta_responses_client_event.py +++ b/src/openai/types/beta/beta_responses_client_event.py @@ -470,6 +470,83 @@ class ResponseCreate(BaseModel): characteristics, and price points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. """ moderation: Optional[ResponseCreateModeration] = None diff --git a/src/openai/types/beta/beta_responses_client_event_param.py b/src/openai/types/beta/beta_responses_client_event_param.py index 4d769ff4a8..63f1049cf1 100644 --- a/src/openai/types/beta/beta_responses_client_event_param.py +++ b/src/openai/types/beta/beta_responses_client_event_param.py @@ -469,6 +469,83 @@ class ResponseCreate(TypedDict, total=False): characteristics, and price points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. """ moderation: Optional[ResponseCreateModeration] diff --git a/src/openai/types/beta/beta_tool.py b/src/openai/types/beta/beta_tool.py index d5cebf4b09..db7fce5b57 100644 --- a/src/openai/types/beta/beta_tool.py +++ b/src/openai/types/beta/beta_tool.py @@ -318,6 +318,11 @@ class ImageGeneration(BaseModel): `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. """ moderation: Optional[Literal["auto", "low"]] = None diff --git a/src/openai/types/beta/beta_tool_param.py b/src/openai/types/beta/beta_tool_param.py index 6f1d89e0a9..81885a5955 100644 --- a/src/openai/types/beta/beta_tool_param.py +++ b/src/openai/types/beta/beta_tool_param.py @@ -316,6 +316,11 @@ class ImageGeneration(TypedDict, total=False): `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. """ moderation: Literal["auto", "low"] diff --git a/src/openai/types/beta/response_compact_params.py b/src/openai/types/beta/response_compact_params.py index ee1ee82538..10321effd9 100644 --- a/src/openai/types/beta/response_compact_params.py +++ b/src/openai/types/beta/response_compact_params.py @@ -136,6 +136,83 @@ class ResponseCompactParams(TypedDict, total=False): characteristics, and price points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. """ input: Union[str, Iterable[BetaResponseInputItemParam], None] diff --git a/src/openai/types/beta/response_create_params.py b/src/openai/types/beta/response_create_params.py index 441197d851..cd489e7d1e 100644 --- a/src/openai/types/beta/response_create_params.py +++ b/src/openai/types/beta/response_create_params.py @@ -251,6 +251,83 @@ class ResponseCreateParamsBase(TypedDict, total=False): characteristics, and price points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. """ moderation: Optional[Moderation] diff --git a/src/openai/types/beta/thread_create_and_run_params.py b/src/openai/types/beta/thread_create_and_run_params.py index dbdc17ed9d..fade61b143 100644 --- a/src/openai/types/beta/thread_create_and_run_params.py +++ b/src/openai/types/beta/thread_create_and_run_params.py @@ -87,6 +87,78 @@ class ThreadCreateAndRunParamsBase(TypedDict, total=False): to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. + + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. """ parallel_tool_calls: bool diff --git a/src/openai/types/beta/threads/run_create_params.py b/src/openai/types/beta/threads/run_create_params.py index d2be422b0f..0bb00e8d41 100644 --- a/src/openai/types/beta/threads/run_create_params.py +++ b/src/openai/types/beta/threads/run_create_params.py @@ -99,6 +99,78 @@ class RunCreateParamsBase(TypedDict, total=False): to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used. + + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. """ parallel_tool_calls: bool diff --git a/src/openai/types/chat/completion_create_params.py b/src/openai/types/chat/completion_create_params.py index 1172ba3638..84eb1833e8 100644 --- a/src/openai/types/chat/completion_create_params.py +++ b/src/openai/types/chat/completion_create_params.py @@ -57,6 +57,78 @@ class CompletionCreateParamsBase(TypedDict, total=False): characteristics, and price points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16": + Announced shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125": Announced shutdown date: + 2026-10-23. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. """ audio: Optional[ChatCompletionAudioParam] diff --git a/src/openai/types/image_create_variation_params.py b/src/openai/types/image_create_variation_params.py index 444cb84e86..056f7205cf 100644 --- a/src/openai/types/image_create_variation_params.py +++ b/src/openai/types/image_create_variation_params.py @@ -22,6 +22,13 @@ class ImageCreateVariationParams(TypedDict, total=False): """The legacy model used by the retired image variations endpoint. This endpoint no longer accepts requests. + + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. """ n: Optional[int] diff --git a/src/openai/types/image_edit_params.py b/src/openai/types/image_edit_params.py index 728502d4cf..148962015b 100644 --- a/src/openai/types/image_edit_params.py +++ b/src/openai/types/image_edit_params.py @@ -69,6 +69,13 @@ class ImageEditParamsBase(TypedDict, total=False): `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. """ n: Optional[int] @@ -105,6 +112,11 @@ class ImageEditParamsBase(TypedDict, total=False): The GPT image models support `low`, `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. Defaults to `auto`. + + Deprecated values: + + - "standard": This quality was only supported by retired DALL·E models. Use a + GPT image quality instead. """ response_format: Optional[Literal["url", "b64_json"]] @@ -136,6 +148,11 @@ class ImageEditParamsBase(TypedDict, total=False): satisfy the model's current pixel and edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + + Deprecated values: + + - "256x256", "512x512": This legacy size suggestion is retained for SDK + compatibility. Check the selected GPT image model's supported sizes. """ user: str diff --git a/src/openai/types/image_generate_params.py b/src/openai/types/image_generate_params.py index 4960febe4e..30398ccb75 100644 --- a/src/openai/types/image_generate_params.py +++ b/src/openai/types/image_generate_params.py @@ -42,6 +42,13 @@ class ImageGenerateParamsBase(TypedDict, total=False): `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. + - "dall-e-2", "dall-e-3": This model was retired on May 12, 2026. Use a GPT + image model instead. """ moderation: Optional[Literal["low", "auto"]] @@ -87,6 +94,11 @@ class ImageGenerateParamsBase(TypedDict, total=False): - `high`, `medium` and `low` are supported for the GPT image models. - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support `xhigh` and `max`. + + Deprecated values: + + - "standard", "hd": This quality was only supported by retired DALL·E models. + Use a GPT image quality instead. """ response_format: Optional[Literal["url", "b64_json"]] @@ -122,6 +134,12 @@ class ImageGenerateParamsBase(TypedDict, total=False): current pixel and edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. + + Deprecated values: + + - "256x256", "512x512", "1792x1024", "1024x1792": This legacy size suggestion is + retained for SDK compatibility. Check the selected GPT image model's supported + sizes. """ style: Optional[Literal["vivid", "natural"]] diff --git a/src/openai/types/realtime/audio_transcription.py b/src/openai/types/realtime/audio_transcription.py index 65c789da80..088f1a85b7 100644 --- a/src/openai/types/realtime/audio_transcription.py +++ b/src/openai/types/realtime/audio_transcription.py @@ -57,6 +57,13 @@ class AudioTranscription(BaseModel): `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `gpt-4o-transcribe`, `gpt-4o-transcribe-diarize`, and `gpt-realtime-whisper`. Use `gpt-4o-transcribe-diarize` when you need diarization with speaker labels. + + Deprecated values: + + - "whisper-1", "gpt-4o-mini-transcribe", "gpt-4o-mini-transcribe-2025-12-15", + "gpt-4o-transcribe", "gpt-4o-transcribe-diarize": Announced shutdown date: + 2027-02-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. """ prompt: Optional[str] = None diff --git a/src/openai/types/realtime/audio_transcription_param.py b/src/openai/types/realtime/audio_transcription_param.py index d8b282fbee..6a39b777c9 100644 --- a/src/openai/types/realtime/audio_transcription_param.py +++ b/src/openai/types/realtime/audio_transcription_param.py @@ -58,6 +58,13 @@ class AudioTranscriptionParam(TypedDict, total=False): `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `gpt-4o-transcribe`, `gpt-4o-transcribe-diarize`, and `gpt-realtime-whisper`. Use `gpt-4o-transcribe-diarize` when you need diarization with speaker labels. + + Deprecated values: + + - "whisper-1", "gpt-4o-mini-transcribe", "gpt-4o-mini-transcribe-2025-12-15", + "gpt-4o-transcribe", "gpt-4o-transcribe-diarize": Announced shutdown date: + 2027-02-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. """ prompt: str diff --git a/src/openai/types/realtime/call_accept_params.py b/src/openai/types/realtime/call_accept_params.py index 3e681ac0d4..a76b80604a 100644 --- a/src/openai/types/realtime/call_accept_params.py +++ b/src/openai/types/realtime/call_accept_params.py @@ -77,7 +77,16 @@ class CallAcceptParams(TypedDict, total=False): "gpt-audio-mini-2025-12-15", ], ] - """The Realtime model used for this session.""" + """The Realtime model used for this session. + + Deprecated values: + + - "gpt-realtime", "gpt-realtime-2025-08-28", "gpt-realtime-mini", + "gpt-realtime-mini-2025-12-15", "gpt-audio-mini", "gpt-audio-mini-2025-12-15": + Announced shutdown date: 2027-01-20. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + """ output_modalities: List[Literal["text", "audio"]] """The set of modalities the model can respond with. diff --git a/src/openai/types/realtime/realtime_session_create_request.py b/src/openai/types/realtime/realtime_session_create_request.py index 3b15f995e0..4cf76c021f 100644 --- a/src/openai/types/realtime/realtime_session_create_request.py +++ b/src/openai/types/realtime/realtime_session_create_request.py @@ -79,7 +79,16 @@ class RealtimeSessionCreateRequest(BaseModel): ], None, ] = None - """The Realtime model used for this session.""" + """The Realtime model used for this session. + + Deprecated values: + + - "gpt-realtime", "gpt-realtime-2025-08-28", "gpt-realtime-mini", + "gpt-realtime-mini-2025-12-15", "gpt-audio-mini", "gpt-audio-mini-2025-12-15": + Announced shutdown date: 2027-01-20. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + """ output_modalities: Optional[List[Literal["text", "audio"]]] = None """The set of modalities the model can respond with. diff --git a/src/openai/types/realtime/realtime_session_create_request_param.py b/src/openai/types/realtime/realtime_session_create_request_param.py index d1ce2f1d40..c2eaa1ba6e 100644 --- a/src/openai/types/realtime/realtime_session_create_request_param.py +++ b/src/openai/types/realtime/realtime_session_create_request_param.py @@ -79,7 +79,16 @@ class RealtimeSessionCreateRequestParam(TypedDict, total=False): "gpt-audio-mini-2025-12-15", ], ] - """The Realtime model used for this session.""" + """The Realtime model used for this session. + + Deprecated values: + + - "gpt-realtime", "gpt-realtime-2025-08-28", "gpt-realtime-mini", + "gpt-realtime-mini-2025-12-15", "gpt-audio-mini", "gpt-audio-mini-2025-12-15": + Announced shutdown date: 2027-01-20. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + """ output_modalities: List[Literal["text", "audio"]] """The set of modalities the model can respond with. diff --git a/src/openai/types/realtime/realtime_session_create_response.py b/src/openai/types/realtime/realtime_session_create_response.py index fee2b2e2f0..712d662990 100644 --- a/src/openai/types/realtime/realtime_session_create_response.py +++ b/src/openai/types/realtime/realtime_session_create_response.py @@ -492,7 +492,16 @@ class RealtimeSessionCreateResponse(BaseModel): ], None, ] = None - """The Realtime model used for this session.""" + """The Realtime model used for this session. + + Deprecated values: + + - "gpt-realtime", "gpt-realtime-2025-08-28", "gpt-realtime-mini", + "gpt-realtime-mini-2025-12-15", "gpt-audio-mini", "gpt-audio-mini-2025-12-15": + Announced shutdown date: 2027-01-20. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + """ output_modalities: Optional[List[Literal["text", "audio"]]] = None """The set of modalities the model can respond with. diff --git a/src/openai/types/responses/response_compact_params.py b/src/openai/types/responses/response_compact_params.py index 4cf730a290..8247e0929e 100644 --- a/src/openai/types/responses/response_compact_params.py +++ b/src/openai/types/responses/response_compact_params.py @@ -135,6 +135,83 @@ class ResponseCompactParams(TypedDict, total=False): characteristics, and price points. Refer to the [model guide](https://developers.openai.com/api/docs/models) to browse and compare available models. + + Deprecated values: + + - "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: + 2026-08-10. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-5.1-codex", "gpt-5.1-chat-latest", "gpt-5-chat-latest", + "gpt-4o-search-preview", "gpt-4o-mini-search-preview", + "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", + "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", "computer-use-preview", + "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5.1-codex-max": + Announced shutdown date: 2026-07-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-5.1-mini": Not a supported model ID. Retained for SDK compatibility. + - "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "o3", "o3-2025-04-16", + "o3-pro", "o3-pro-2025-06-10", "gpt-5-pro", "gpt-5-pro-2025-10-06": Announced + shutdown date: 2026-12-11. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", + "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-mini", + "gpt-4o-mini-2024-07-18": Announced shutdown date: 2027-01-14. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", + "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "gpt-4o-2024-05-13", + "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-1106-preview", "gpt-4", + "gpt-4-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-0125", "o1-pro", + "o1-pro-2025-03-19": Announced shutdown date: 2026-10-23. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-preview", "o1-preview-2024-09-12": Announced shutdown date: 2025-07-28. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "o1-mini", "o1-mini-2024-09-12": Announced shutdown date: 2025-10-27. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-audio-mini", "gpt-audio-mini-2025-12-15": Announced shutdown date: + 2027-01-20. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-12-17", + "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", + "gpt-4o-mini-audio-preview-2024-12-17": Announced shutdown date: 2026-05-07. + See https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4o-audio-preview-2024-10-01": Announced shutdown date: 2025-10-10. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "chatgpt-4o-latest": Announced shutdown date: 2026-02-17. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "codex-mini-latest": Announced shutdown date: 2026-02-12. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-0314": Announced shutdown + date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-4-vision-preview": Announced shutdown date: 2024-12-06. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613": Announced shutdown date: + 2025-06-06. See https://developers.openai.com/api/docs/deprecations for + details and recommended replacements. + - "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", + "gpt-3.5-turbo-16k-0613": Announced shutdown date: 2024-09-13. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. + - "gpt-3.5-turbo-1106": Announced shutdown date: 2026-09-28. See + https://developers.openai.com/api/docs/deprecations for details and + recommended replacements. """ input: Union[str, Iterable[ResponseInputItemParam], None] diff --git a/src/openai/types/responses/response_tool_search_output_item_param.py b/src/openai/types/responses/response_tool_search_output_item_param.py index ce5f094729..217b7630d6 100644 --- a/src/openai/types/responses/response_tool_search_output_item_param.py +++ b/src/openai/types/responses/response_tool_search_output_item_param.py @@ -319,6 +319,11 @@ class ToolImageGeneration(BaseModel): `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. """ moderation: Optional[Literal["auto", "low"]] = None diff --git a/src/openai/types/responses/response_tool_search_output_item_param_param.py b/src/openai/types/responses/response_tool_search_output_item_param_param.py index 28b1394f1c..a7e4871a46 100644 --- a/src/openai/types/responses/response_tool_search_output_item_param_param.py +++ b/src/openai/types/responses/response_tool_search_output_item_param_param.py @@ -317,6 +317,11 @@ class ToolImageGeneration(TypedDict, total=False): `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. """ moderation: Literal["auto", "low"] diff --git a/src/openai/types/responses/tool.py b/src/openai/types/responses/tool.py index 3554b077a8..bb49aa2922 100644 --- a/src/openai/types/responses/tool.py +++ b/src/openai/types/responses/tool.py @@ -323,6 +323,11 @@ class ImageGeneration(BaseModel): `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. """ moderation: Optional[Literal["auto", "low"]] = None diff --git a/src/openai/types/responses/tool_param.py b/src/openai/types/responses/tool_param.py index 584ab87e30..8672cb812d 100644 --- a/src/openai/types/responses/tool_param.py +++ b/src/openai/types/responses/tool_param.py @@ -322,6 +322,11 @@ class ImageGeneration(TypedDict, total=False): `gpt-image-1` was shut down on October 23, 2026. Use `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead. + + Deprecated values: + + - "gpt-image-1": GPT Image 1 was shut down on October 23, 2026. Use + gpt-image-2.5-sunburst or gpt-image-2.5-flare instead. """ moderation: Literal["auto", "low"] diff --git a/src/openai/types/shared/chat_model.py b/src/openai/types/shared/chat_model.py index 3282eb9e1f..80c8ac6a81 100644 --- a/src/openai/types/shared/chat_model.py +++ b/src/openai/types/shared/chat_model.py @@ -98,7 +98,8 @@ ] """Deprecated values: -- "gpt-5.4-nano", "gpt-5.1": Announced shutdown date: 2027-04-01. See +- "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements. - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: diff --git a/src/openai/types/shared_params/chat_model.py b/src/openai/types/shared_params/chat_model.py index 3b523c069e..7967a6f2a8 100644 --- a/src/openai/types/shared_params/chat_model.py +++ b/src/openai/types/shared_params/chat_model.py @@ -100,7 +100,8 @@ ] """Deprecated values: -- "gpt-5.4-nano", "gpt-5.1": Announced shutdown date: 2027-04-01. See +- "gpt-5.4-nano", "gpt-5.4-nano-2026-03-17", "gpt-5.1", "gpt-5.1-2025-11-13": + Announced shutdown date: 2027-04-01. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements. - "gpt-5.3-chat-latest", "gpt-5.2-chat-latest": Announced shutdown date: diff --git a/tests/api_resources/audio/test_translations.py b/tests/api_resources/audio/test_translations.py index 84e31906ce..e9eba53660 100644 --- a/tests/api_resources/audio/test_translations.py +++ b/tests/api_resources/audio/test_translations.py @@ -11,6 +11,8 @@ from tests.utils import assert_matches_type from openai.types.audio import TranslationCreateResponse +# pyright: reportDeprecated=false + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") @@ -19,29 +21,34 @@ class TestTranslations: @parametrize def test_method_create(self, client: OpenAI) -> None: - translation = client.audio.translations.create( - file=b"Example data", - model="whisper-1", - ) + with pytest.warns(DeprecationWarning): + translation = client.audio.translations.create( + file=b"Example data", + model="whisper-1", + ) + assert_matches_type(TranslationCreateResponse, translation, path=["response"]) @parametrize def test_method_create_with_all_params(self, client: OpenAI) -> None: - translation = client.audio.translations.create( - file=b"Example data", - model="whisper-1", - prompt="prompt", - response_format="json", - temperature=0, - ) + with pytest.warns(DeprecationWarning): + translation = client.audio.translations.create( + file=b"Example data", + model="whisper-1", + prompt="prompt", + response_format="json", + temperature=0, + ) + assert_matches_type(TranslationCreateResponse, translation, path=["response"]) @parametrize def test_raw_response_create(self, client: OpenAI) -> None: - response = client.audio.translations.with_raw_response.create( - file=b"Example data", - model="whisper-1", - ) + with pytest.warns(DeprecationWarning): + response = client.audio.translations.with_raw_response.create( + file=b"Example data", + model="whisper-1", + ) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -50,15 +57,16 @@ def test_raw_response_create(self, client: OpenAI) -> None: @parametrize def test_streaming_response_create(self, client: OpenAI) -> None: - with client.audio.translations.with_streaming_response.create( - file=b"Example data", - model="whisper-1", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + with pytest.warns(DeprecationWarning): + with client.audio.translations.with_streaming_response.create( + file=b"Example data", + model="whisper-1", + ) as response: + assert not response.is_closed + assert response.http_request.headers.get("X-Stainless-Lang") == "python" - translation = response.parse() - assert_matches_type(TranslationCreateResponse, translation, path=["response"]) + translation = response.parse() + assert_matches_type(TranslationCreateResponse, translation, path=["response"]) assert cast(Any, response.is_closed) is True @@ -70,29 +78,34 @@ class TestAsyncTranslations: @parametrize async def test_method_create(self, async_client: AsyncOpenAI) -> None: - translation = await async_client.audio.translations.create( - file=b"Example data", - model="whisper-1", - ) + with pytest.warns(DeprecationWarning): + translation = await async_client.audio.translations.create( + file=b"Example data", + model="whisper-1", + ) + assert_matches_type(TranslationCreateResponse, translation, path=["response"]) @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOpenAI) -> None: - translation = await async_client.audio.translations.create( - file=b"Example data", - model="whisper-1", - prompt="prompt", - response_format="json", - temperature=0, - ) + with pytest.warns(DeprecationWarning): + translation = await async_client.audio.translations.create( + file=b"Example data", + model="whisper-1", + prompt="prompt", + response_format="json", + temperature=0, + ) + assert_matches_type(TranslationCreateResponse, translation, path=["response"]) @parametrize async def test_raw_response_create(self, async_client: AsyncOpenAI) -> None: - response = await async_client.audio.translations.with_raw_response.create( - file=b"Example data", - model="whisper-1", - ) + with pytest.warns(DeprecationWarning): + response = await async_client.audio.translations.with_raw_response.create( + file=b"Example data", + model="whisper-1", + ) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -101,14 +114,15 @@ async def test_raw_response_create(self, async_client: AsyncOpenAI) -> None: @parametrize async def test_streaming_response_create(self, async_client: AsyncOpenAI) -> None: - async with async_client.audio.translations.with_streaming_response.create( - file=b"Example data", - model="whisper-1", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - translation = await response.parse() - assert_matches_type(TranslationCreateResponse, translation, path=["response"]) + with pytest.warns(DeprecationWarning): + async with async_client.audio.translations.with_streaming_response.create( + file=b"Example data", + model="whisper-1", + ) as response: + assert not response.is_closed + assert response.http_request.headers.get("X-Stainless-Lang") == "python" + + translation = await response.parse() + assert_matches_type(TranslationCreateResponse, translation, path=["response"]) assert cast(Any, response.is_closed) is True diff --git a/tests/lib/test_audio.py b/tests/lib/test_audio.py index 93ed3a33b2..1e0ff70438 100644 --- a/tests/lib/test_audio.py +++ b/tests/lib/test_audio.py @@ -19,10 +19,15 @@ def test_translation_create_overloads_in_sync(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None: checking_client: OpenAI | AsyncOpenAI = client if sync else async_client - fn = checking_client.audio.translations.create + # Keep checking the supported overloads of this deprecated operation. + fn = checking_client.audio.translations.create # pyright: ignore[reportDeprecated] overload_response_formats: set[str] = set() - for i, overload in enumerate(typing_extensions.get_overloads(fn)): + overloads = typing_extensions.get_overloads(fn) + assert len(overloads) == 4, "precise and fallback translation overloads must all remain registered" + for i, overload in enumerate(overloads): + assert getattr(overload, "__deprecated__", None) == "deprecated" + assert inspect.iscoroutinefunction(overload) is (not sync) assert_signatures_in_sync( fn, overload, diff --git a/tests/lib/test_audio_response_format.py b/tests/lib/test_audio_response_format.py index a1456fa16b..cc5510d176 100644 --- a/tests/lib/test_audio_response_format.py +++ b/tests/lib/test_audio_response_format.py @@ -2,6 +2,7 @@ import logging from typing import Any, cast +from contextlib import nullcontext from unittest.mock import Mock from typing_extensions import Literal @@ -151,13 +152,15 @@ def test_sync_create_uses_selected_response_class( audio = cast(Any, client.audio.transcriptions if resource == "transcriptions" else client.audio.translations) kwargs: dict[str, Any] = {"file": b"fake audio", "model": "whisper-1", "response_format": response_format} - if mode == "normal": - response = audio.create(**kwargs) - elif mode == "raw": - response = audio.with_raw_response.create(**kwargs).parse() - else: - with audio.with_streaming_response.create(**kwargs) as raw_response: - response = raw_response.parse() + # Translation is intentionally deprecated; still verify every response mode. + with pytest.warns(DeprecationWarning, match="deprecated") if resource == "translations" else nullcontext(): + if mode == "normal": + response = audio.create(**kwargs) + elif mode == "raw": + response = audio.with_raw_response.create(**kwargs).parse() + else: + with audio.with_streaming_response.create(**kwargs) as raw_response: + response = raw_response.parse() assert route.call_count == 1 assert_request_and_response(route.calls.last.request, response, response_format, expected_type) @@ -183,13 +186,15 @@ async def test_async_create_uses_selected_response_class( ) kwargs: dict[str, Any] = {"file": b"fake audio", "model": "whisper-1", "response_format": response_format} - if mode == "normal": - response = await audio.create(**kwargs) - elif mode == "raw": - response = (await audio.with_raw_response.create(**kwargs)).parse() - else: - async with audio.with_streaming_response.create(**kwargs) as raw_response: - response = await raw_response.parse() + # Translation is intentionally deprecated; still verify every response mode. + with pytest.warns(DeprecationWarning, match="deprecated") if resource == "translations" else nullcontext(): + if mode == "normal": + response = await audio.create(**kwargs) + elif mode == "raw": + response = (await audio.with_raw_response.create(**kwargs)).parse() + else: + async with audio.with_streaming_response.create(**kwargs) as raw_response: + response = await raw_response.parse() assert route.call_count == 1 assert_request_and_response(route.calls.last.request, response, response_format, expected_type)