Skip to content

openai: improve result parsing #31

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

Merged
merged 3 commits into from
Dec 2, 2024
Merged

openai: improve result parsing #31

merged 3 commits into from
Dec 2, 2024

Conversation

0xKurt
Copy link
Contributor

@0xKurt 0xKurt commented Dec 2, 2024

This PR improves the parsing of JSON objects and Arrays we receive form openai

In case we get results like

Here is some text before the JSON.
{...}

now we're able to extract the object from the result which should result in less issues

Copy link

@nijoe1 nijoe1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@0xKurt 0xKurt merged commit 8c074ab into main Dec 2, 2024
2 checks passed
@0xKurt 0xKurt deleted the improve-parsing branch December 2, 2024 12:32
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