Skip to content

Added: Response Format for OpenAI#62

Merged
AbhijeetDash merged 1 commit intodevfrom
61-changing-output-format-to-json-in-openai
Apr 16, 2025
Merged

Added: Response Format for OpenAI#62
AbhijeetDash merged 1 commit intodevfrom
61-changing-output-format-to-json-in-openai

Conversation

@AbhijeetDash
Copy link
Member

Json Schema support for OpenAI

With OpenAI rolling out proper JSON output support, this PR adds the JSON schema usage for OpenAi platform. It bypasses the logic to extract code blocks and then validate them from string and only in case of openAI it will directly be able to parse the response as ReplacementBloc[].

@changeset-bot
Copy link

changeset-bot bot commented Apr 6, 2025

🦋 Changeset detected

Latest commit: 924d737

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
overide Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@AbhijeetDash AbhijeetDash requested a review from Zoheb-Malik April 6, 2025 23:46
Copy link
Collaborator

@Zoheb-Malik Zoheb-Malik left a comment

Choose a reason for hiding this comment

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

Great change, much more easier format. Approved!

@AbhijeetDash AbhijeetDash merged commit 9630f34 into dev Apr 16, 2025
2 checks passed
@AbhijeetDash AbhijeetDash deleted the 61-changing-output-format-to-json-in-openai branch April 16, 2025 13:11
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