Repository navigation
docs: use GPT-6.2 Sol in SDK examples - #4352
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
markstuart-oai
left a comment
There was a problem hiding this comment.
Static review of the example requests. The Chat Completions parsing examples use structured output, and the function-calling examples retain their existing model.
jbeckwith-oai
left a comment
There was a problem hiding this comment.
Reviewed the Responses README migration, sync/async and streaming examples, structured-output handling around reasoning items, Azure v1 setup, and existing feedback. No actionable issues found.
Reviewed commit 012d31ea777f206804f763bfb77b4ea7c4faef24. Hosted CI: 9 skipped, 17 success; no failing or pending checks observed. Static review only; no candidate code or tests run locally.
…ai#4354) ## Changes being requested Make the examples easier to understand and run independently, with real program tests that check answers, saved files, and completed actions. - Add purpose-first folder guides and a root inventory. Remove the booking app's sibling-folder import and the TUI's repository-relative SDK dependency; remove unused audio dependencies and their test stubs. - Embed current OpenAI models in the examples, retain resource-specific provider configuration, replace deprecated Speech workflows with a Realtime WAV example, and remove the retired Videos example. - Fix structured parsing with reasoning output, force the demonstrated query tool, resume background streams from the observed cursor, await the async final response, and reject incomplete image streams. Save image artifacts and support file-based transcription. - Add `python examples/test_examples.py --live <groups> -v`: opt-in subprocess tests run copies of example folders and check semantic output, PNG/WAV artifacts, stored upload metadata, or saved browser/desktop results. Unselected groups skip; selected failures remain failures. Live calls are not enabled in CI. - Correct the upload example's MIME type/purpose and offer explicit metadata verification with remote-file cleanup. Add focused regression tests for cleanup, stream failures, async final responses, and speech output/error handling. ## Validation - 332 offline example, upload, security, Live, and Realtime terminal tests passed. - 48 push-to-talk/player tests passed with simulated audio devices. - 21 desktop guest tests and 18 subtests passed on the host; one platform-specific test skipped. Desktop frame/cancellation, helper-environment, and container lifecycle exercises passed. - Live core checks passed: text, token counting, sync/async streaming, math and structured output, query/weather arguments, and all four background programs. - Both image programs passed PNG validation; disk/memory uploads passed metadata verification and remote deletion; multi-agent SSE passed delegated-output checks. The corrected async parsed background and image-stream programs were rerun live and passed. - Whole-repository Ruff and ty checks passed, as did example formatting, compilation, and `git diff --check`. Staged changes reviewed and checked for credential patterns. ### Remaining live/hardware verification The broad live run deliberately reports failures for unavailable capabilities; this is not a claim that every example passed end to end. - Responses WebSocket connections returned HTTP 401; Realtime returned HTTP 405 at the configured endpoint. Both WebSocket examples and multi-agent WebSocket failed; speech generation/roundtrip and Live audio remain blocked by Realtime access. - Browser checks cannot launch Chromium with its sandbox on this host, including outside the execution sandbox after installing the pinned browser. Browser sandboxing remains enabled. Reader, booking, UI, and Decisions live verification need a compatible host. - Full desktop VM/container provisioning and audible microphone/playback/interruption still need a supported runtime/hardware. Azure, Bedrock, mTLS, and X.509 live groups require provisioned deployments or identities and were not selected. - The existing main lock/config combination rejects `uv sync --locked`; validation used the committed lock via `uv sync --frozen --all-extras --group provider-browser`. Optional TUI test dependencies were installed locally. Root dependency files are unchanged. ## Additional context & links Builds on the merged model refresh in openai#4352. Model retirement choices follow the [official deprecation schedule](https://developers.openai.com/api/docs/deprecations). SDK CODEOWNER review requested for the upload/file-handling and configuration changes. No SDK API changes or audit document are included.
Automated Release PR --- ## [3.62.0](openai/openai-python@v3.61.0...v3.62.0) (2026-12-01) ### Features * **api:** add health alert rules and notification retrieval ([openai#4355](openai#4355)) ([e5718c0](openai@e5718c0)) * **examples:** improve standalone examples and add live checks ([openai#4354](openai#4354)) ([8af22db](openai@8af22db)) ### Documentation * use GPT-6.2 Sol in SDK examples ([openai#4352](openai#4352)) ([ca8a591](openai@ca8a591)) --- 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>
Summary
Use the Responses API throughout the README and use
gpt-6.2-solfor compatible examples. Read structured output and tool calls from the matching output items so reasoning items can precede them.Validation
git diff --check, Ruff lint and formatting, and type checking passed.