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

Eco Quiz questions generation error #19

Open
charles-55 opened this issue Jul 28, 2024 · 0 comments
Open

Eco Quiz questions generation error #19

charles-55 opened this issue Jul 28, 2024 · 0 comments
Labels
AI AI or Gemini API related feature bug Something isn't working

Comments

@charles-55
Copy link
Collaborator

Generating questions from Gemini returns the result with some extra characters. The current solution is using responseText.replaceAll("\n", "").replaceAll("```json{ ", "").replaceAll("\"questions\":", "").replaceAll("}```", "").replaceAll(" ", "").replaceAll("```json", "").replaceAll("```", "") but on testing is has not been 100% successful as Gemini can change the format of it's response.

@charles-55 charles-55 added the bug Something isn't working label Jul 28, 2024
@charles-55 charles-55 changed the title Eco Trivia questions generation error Eco Quiz questions generation error Jul 28, 2024
@charles-55 charles-55 added the AI AI or Gemini API related feature label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI AI or Gemini API related feature bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant