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

Handle triple quotes in invalid json responses returned by the model #49

Merged
merged 5 commits into from
Aug 19, 2023

Conversation

ferrislucas
Copy link
Owner

@ferrislucas ferrislucas commented Aug 19, 2023

Should resolve #48

…function

Prompt:
Refactor the extractOperationsFromOutput function into a new class called ExtractOperationsService.
ExtractOperationsService should have a single static method called "call".
The "call" method should be the code that is currently in the extractOperationsFromOutput function.
You will need to modify the following files:
src/services/PromptrService.js
test/extractOperationsFromOutput.test.js
src/services/ExtractOperationsFromOutput.js
@ferrislucas ferrislucas merged commit f7b5baf into main Aug 19, 2023
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.

Response from GPT4 is sometimes invalid JSON
1 participant