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

Fix OpenAI response text links #9

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Fix OpenAI response text links #9

merged 1 commit into from
Jul 25, 2024

Conversation

Lukaaashek
Copy link
Contributor

OpenAI API returns sometimes response without ENDLINKS word:

image

It makes $textLinks variable contains this:

image

And then it throws this exception instead of Ignition page:

image

The problem occur with gpt-3.5-turbo model. With model gpt-4* looks OK. But responses are changing, so it can happen with gpt-4* too.

This PR fixes the problem quickly.

@freekmurze freekmurze merged commit ae73931 into spatie:main Jul 25, 2024
33 of 34 checks passed
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