Skip to content

docs: use GPT-6.2 Sol in SDK examples - #4352

Merged
kwhinnery-openai merged 1 commit into
mainfrom
kwhinnery/gpt-6-2-sol-examples
Dec 1, 2026
Merged

kwhinnery-openai merged 1 commit into
mainfrom
kwhinnery/gpt-6-2-sol-examples

Conversation

@kwhinnery-openai

@kwhinnery-openai kwhinnery-openai commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Use the Responses API throughout the README and use gpt-6.2-sol for 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.
  • 172 focused tests and two mocked structured-output examples passed.

@kwhinnery-openai
kwhinnery-openai marked this pull request as ready for review December 1, 2026 11:57
@kwhinnery-openai
kwhinnery-openai requested a review from a team as a code owner December 1, 2026 11:57
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T11:57:50.646544Z 012d31e Draft marked ready
🔒 Security Review ✅ Completed 2026-12-01T11:58:20.898838Z 012d31e Draft marked ready
ℹ️ 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.

@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.

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 jbeckwith-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 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.

@kwhinnery-openai
kwhinnery-openai merged commit ca8a591 into main Dec 1, 2026
26 checks passed
@kwhinnery-openai
kwhinnery-openai deleted the kwhinnery/gpt-6-2-sol-examples branch December 1, 2026 18:04
@openai-sdks openai-sdks Bot mentioned this pull request Dec 1, 2026
gh-actions-shared Bot pushed a commit to xf-qubit/openai-python that referenced this pull request Dec 1, 2026
…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.
secshenchen pushed a commit to secshenchen/openai-python that referenced this pull request Dec 2, 2026
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>
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.

3 participants