Skip to content

feat(api): add audio-mini model choices - #3886

Merged
jbeckwith-oai merged 1 commit into
mainfrom
codex/audio-mini-514a730b
Sep 17, 2026
Merged

jbeckwith-oai merged 1 commit into
mainfrom
codex/audio-mini-514a730b

Conversation

@jbeckwith-oai

Copy link
Copy Markdown
Contributor

Summary

Adds typed model names for gpt-audio-mini and gpt-audio-mini-2025-12-15.

Changes

  • Add both audio-mini model names to shared and Responses model choices
  • Preserve all existing accepted model names for compatibility

@jbeckwith-oai
jbeckwith-oai requested a review from a team as a code owner September 17, 2026 17:40
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-17T17:42:19.461943Z b78414a PR opened
🔒 Security Review ✅ Completed 2026-09-17T17:43:40.134356Z b78414a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openai-sdks

openai-sdks Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

OkTest Summary

✅ 236/236 SDK tests passed in 8.789s for Python SDK PR #3886.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 104ms
tests/chat-completions-create.test.ts ✅ Passed 140ms
tests/chat-completions-stream.test.ts ✅ Passed 97ms
tests/files-content-binary.test.ts ✅ Passed 132ms
tests/files-create-multipart.test.ts ✅ Passed 166ms
tests/files-list-pagination.test.ts ✅ Passed 107ms
tests/initialize-config.test.ts ✅ Passed 127ms
tests/instance-isolation.test.ts ✅ Passed 182ms
tests/models-list.test.ts ✅ Passed 123ms
tests/responses-background-lifecycle.test.ts ✅ Passed 135ms
tests/responses-body-method-errors.test.ts ✅ Passed 289ms
tests/responses-cancel-timeout.test.ts ✅ Passed 181ms
tests/responses-cancel.test.ts ✅ Passed 142ms
tests/responses-compact-retries.test.ts ✅ Passed 231ms
tests/responses-compact.test.ts ✅ Passed 240ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 338ms
tests/responses-create-advanced.test.ts ✅ Passed 124ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.041s
tests/responses-create-errors.test.ts ✅ Passed 168ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 95ms
tests/responses-create-retries.test.ts ✅ Passed 215ms
tests/responses-create-stream-failures.test.ts ✅ Passed 89ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 195ms
tests/responses-create-stream-wire.test.ts ✅ Passed 2.9s
tests/responses-create-stream.test.ts ✅ Passed 65ms
tests/responses-create-terminal-states.test.ts ✅ Passed 159ms
tests/responses-create-timeout.test.ts ✅ Passed 226ms
tests/responses-create.test.ts ✅ Passed 358ms
tests/responses-delete.test.ts ✅ Passed 155ms
tests/responses-input-items-errors.test.ts ✅ Passed 265ms
tests/responses-input-items-list.test.ts ✅ Passed 227ms
tests/responses-input-items-options.test.ts ✅ Passed 267ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 291ms
tests/responses-input-tokens-count.test.ts ✅ Passed 168ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.08s
tests/responses-not-found-errors.test.ts ✅ Passed 219ms
tests/responses-parse.test.ts ✅ Passed 196ms
tests/responses-retrieve-retries.test.ts ✅ Passed 206ms
tests/responses-retrieve.test.ts ✅ Passed 163ms
tests/responses-stored-method-errors.test.ts ✅ Passed 388ms
tests/retry-behavior.test.ts ✅ Passed 3.15s
tests/sdk-error-shape.test.ts ✅ Passed 176ms

View OkTest run #35254169830

SDK merge (69ce2a2401cc) · head (b78414af82b2) · base (f0457aba3403) · OkTest (cdb90acd46e5)

@github-actions

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

46 mixed files remain; 0 existing customizations changed; 2 generated baselines changed.

Compared f0457aba3403 → b78414af82b2. Generated baselines verified.

File Result Current custom patch
src/openai/resources/beta/responses/responses.py Generated baseline changed +12 / −11
src/openai/resources/responses/responses.py Generated baseline changed +851 / −18
44 existing customizations unchanged
  • api.md
  • scripts/castiron/README.md
  • scripts/castiron/custom_code_report.py
  • scripts/castiron/test_custom_code_report.py
  • src/openai/init.py
  • src/openai/_client.py
  • src/openai/resources/audio/transcriptions.py
  • src/openai/resources/audio/translations.py
  • src/openai/resources/beta/agents/sessions/sessions.py
  • src/openai/resources/beta/beta.py
  • src/openai/resources/beta/threads/runs/runs.py
  • src/openai/resources/beta/threads/threads.py
  • src/openai/resources/chat/completions/completions.py
  • src/openai/resources/embeddings.py
  • src/openai/resources/files.py
  • src/openai/resources/live/forks.py
  • src/openai/resources/live/live.py
  • src/openai/resources/live/sideband.py
  • src/openai/resources/realtime/api.md
  • src/openai/resources/realtime/realtime.py
  • src/openai/resources/uploads/uploads.py
  • src/openai/resources/vector_stores/file_batches.py
  • src/openai/resources/vector_stores/files.py
  • src/openai/resources/videos.py
  • src/openai/resources/webhooks/init.py
  • src/openai/resources/webhooks/webhooks.py
  • src/openai/types/beta/agent_session_message.py
  • src/openai/types/chat/init.py
  • src/openai/types/chat/chat_completion_message_tool_call.py
  • src/openai/types/fine_tuning/fine_tuning_job_integration.py
  • src/openai/types/realtime/conversation_item_input_audio_transcription_delta_event.py
  • src/openai/types/realtime/realtime_error_event.py
  • src/openai/types/responses/init.py
  • src/openai/types/responses/response.py
  • src/openai/types/responses/response_function_web_search.py
  • src/openai/types/responses/response_function_web_search_param.py
  • src/openai/types/responses/responses_client_event.py
  • src/openai/types/responses/responses_client_event_param.py
  • src/openai/types/responses/tool.py
  • src/openai/types/responses/tool_param.py

4 more in the full report.

A changed generated baseline means this report cannot reliably identify which handwritten lines changed.

Inspect the custom-code diff

Download the exact patch produced by this run (requires repository access):

gh run download 35254209840 --repo openai/openai-python \
  --name castiron-custom-code-35254209840-1 --dir /tmp/castiron-custom-code-35254209840-1
git apply --stat /tmp/castiron-custom-code-35254209840-1/custom-code.patch
cat /tmp/castiron-custom-code-35254209840-1/custom-code.patch

Or reproduce it from an SDK checkout containing the vendored reporter:

git fetch --no-tags origin f0457aba3403f83e91a369ab55e0e55d5f012372 b78414af82b2efdf8ae54288d3ae2b7aa68802ab
python3 scripts/castiron/custom_code_report.py report \
  --base f0457aba3403f83e91a369ab55e0e55d5f012372 \
  --head b78414af82b2efdf8ae54288d3ae2b7aa68802ab --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-b78414af82b2
cat /tmp/castiron-custom-code-b78414af82b2/custom-code.patch

This is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR.

Full report and patch

@markstuart-oai markstuart-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed b78414af82b2efdf8ae54288d3ae2b7aa68802ab, including an independent SDK review. No actionable findings. The change adds gpt-audio-mini and gpt-audio-mini-2025-12-15 consistently with the published shared-model schema. Every previous choice, including the relocated gpt-5.1-mini, remains available. The full transformed-schema comparison contains only these two enum additions; there is no new runtime or transport logic.

Independent checks verified all 22 changed annotations, imported/compiled all ten Python files, and validated all 86 choices in both exported aliases. The complete ASTs otherwise match base. CI passed on this exact commit, including Python 3.10/3.14, HTTPX2, build and lint; the sampled 3.14 run passed 13,195 tests with Pydantic 2 and 13,181 with Pydantic 1.

The bounded generated changes need no new abstraction or unrelated decomposition. No live model requests were made. Approved.

@jbeckwith-oai
jbeckwith-oai added this pull request to the merge queue Sep 17, 2026
Merged via the queue into main with commit a6eeb3f Sep 17, 2026
26 checks passed
@jbeckwith-oai
jbeckwith-oai deleted the codex/audio-mini-514a730b branch September 17, 2026 19:00
@openai-sdks openai-sdks Bot mentioned this pull request Sep 17, 2026
pull Bot pushed a commit to Mattlk13/openai-python that referenced this pull request Sep 18, 2026
Automated Release PR
---


##
[3.15.0](openai/openai-python@v3.14.1...v3.15.0)
(2026-09-18)


### Features

* **api:** add agent session model settings
([openai#3882](openai#3882))
([4b15817](openai@4b15817))
* **api:** add audio-mini model choices
([openai#3886](openai#3886))
([a6eeb3f](openai@a6eeb3f))
* **api:** add compaction progress events
([openai#3866](openai#3866))
([98e1d24](openai@98e1d24))
* **api:** add managed Responses WebSocket sessions
([openai#3887](openai#3887))
([3b865af](openai@3b865af))
* **api:** add prompt-cache prewarming
([openai#3888](openai#3888))
([8f7cdb8](openai@8f7cdb8))


### Bug Fixes

* preserve chat stream moderation results
([openai#3864](openai#3864))
([b77076d](openai@b77076d))


### Chores

* **api:** clarify incoming SIP call ID usage
([openai#3885](openai#3885))
([f0457ab](openai@f0457ab))
* **api:** update image request examples
([openai#3889](openai#3889))
([bb79676](openai@bb79676))


### Documentation

* **realtime:** remove nonexistent type imports
([openai#3869](openai#3869))
([2971aaf](openai@2971aaf))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants