Skip to content

fix: correct nested params README example#3456

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

fix: correct nested params README example#3456
nightcityblade wants to merge 1 commit into
openai:mainfrom
nightcityblade:fix/issue-3264-readme-nested-params

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.

This updates the README's "Nested params" example so it uses the real Chat Completions surface instead of the non-existent client.chat.responses.create(...) hybrid. The snippet now uses client.chat.completions.create(...) with messages=[...], which matches the response_format={"type": "json_object"} example being demonstrated.

Additional context & links

Local verification:

  • python3 -m pytest tests/test_files.py

@nightcityblade nightcityblade requested a review from a team as a code owner June 30, 2026 03:15
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