Skip to content

Update h-structured.py #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update h-structured.py #7

wants to merge 2 commits into from

Conversation

tim-o
Copy link

@tim-o tim-o commented Apr 16, 2025

The example is using structured outputs but a version of chatGPT that doesn't support structured outputs: https://platform.openai.com/docs/guides/structured-outputs?api-mode=responses#json-mode

The PR fixes the example so that it doesn't error out. Defer to owners on whether this is the right approach.

tim-o added 2 commits April 16, 2025 12:21
Updated model since gpt-3.5 appears to be deprecated.
Switched to 4o-mini since 3.5-turbo doesn't support structured outputs either:
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