Skip to content
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

OpenAI Structured Output #1241

Merged
merged 1 commit into from
Oct 9, 2024
Merged

OpenAI Structured Output #1241

merged 1 commit into from
Oct 9, 2024

Conversation

collindutter
Copy link
Member

@collindutter collindutter commented Oct 9, 2024

Describe your changes

Adds basic support for OpenAi Structured Output. Long term I'd like this to feel more "native", but this at least allows the functionality at the Driver level.

Issue ticket number and link

NA


📚 Documentation preview 📚: https://griptape--1241.org.readthedocs.build//1241/

model="gpt-4o",
response_format="json_object",
seed=42,
model="gpt-4o-2024-08-06",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we include the temperature/seed from past example (if still relevant)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sure, I added them back

@collindutter collindutter force-pushed the feature/structure-output branch from 723bdde to de0f35c Compare October 9, 2024 16:34
@collindutter collindutter force-pushed the feature/structure-output branch from de0f35c to 382ca1f Compare October 9, 2024 16:35
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@collindutter collindutter merged commit 2a24ec2 into dev Oct 9, 2024
15 checks passed
@collindutter collindutter deleted the feature/structure-output branch October 9, 2024 16:51
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