Skip to content

docs: fix nested params example#3318

Open
nightcityblade wants to merge 1 commit into
openai:mainfrom
nightcityblade:fix/issue-3264
Open

docs: fix nested params example#3318
nightcityblade wants to merge 1 commit into
openai:mainfrom
nightcityblade:fix/issue-3264

Conversation

@nightcityblade
Copy link
Copy Markdown

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Fixes #3264.

Updates the README "Nested params" example to use the Responses API consistently:

  • calls client.responses.create(...) instead of the non-existent client.chat.responses.create(...)
  • uses text={"format": {"type": "json_object"}} for JSON output configuration

Additional context & links

Validation run locally:

  • python compile check for the extracted README nested params example
  • ruff check /tmp/readme_nested_params.py
  • ruff format --check /tmp/readme_nested_params.py

Note: ruff format --check --preview README.md reports the existing README would be reformatted outside this targeted change, so I validated the extracted Python snippet directly.

@nightcityblade nightcityblade requested a review from a team as a code owner May 27, 2026 03:12
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.

README "Nested params" example calls non-existent client.chat.responses.create and mixes two API surfaces

2 participants