Blog Post: Creating a Content Assistant with Gemini and GenAI

Enjoy! :slight_smile:

1 Like

Hey, so I have a requirement where the JSON output will have speeches inside them. For example:

{
“a”: “Wow, “THIS” is awesome!”
}

But Gemini OFTEN responds with issue where a double quotation is missing inside the response. Therefore I cannot parse the response properly. Did you ever face this issue? How did you fix it?

Here’s some examples of mistakes it’s making:

{
“a”: "Wow, “THIS is awesome!”
}

OR

{
“a”: “Wow, THIS” is awesome!"
}

Would you mind posting this to the general support/help forum as a new thread?