generative-ai-swift icon indicating copy to clipboard operation
generative-ai-swift copied to clipboard

JSON mode glitches out when asked to make a codeblock in markdown

Open Visual-Studio-Coder opened this issue 1 year ago • 2 comments

Description of the bug:

The response stops generating randomly, and causes an incomplete JSON to be formed.

Actual vs expected behavior:

It says something like

"What is the following code supposed to do?\n\n"

instead of "What is the following code supposed to do?\n\njava System.out.print("helloworld");"

It just stops generating the prompt for some reason. this is also recreatable in the AI Studio

Any other information you'd like to share?

No response

Visual-Studio-Coder avatar Aug 08 '24 05:08 Visual-Studio-Coder

Hi @Visual-Studio-Coder, would you mind filing feedback from AI Studio when it fails? It's in the triple dots overflow menu: AI Studio - Send Feedback Screenshot

Currently it doesn't sound like this is an SDK issue but if you have a reproducible example, feel free to include the details here and I can share them with some backend folks.

andrewheard avatar Aug 09 '24 22:08 andrewheard

Ok thank you. I just decided to send it here because I just didn't know who to contact. Yk how it is with Google right? 😅

https://aistudio.google.com/app/prompts?state=%7B%22ids%22:%5B%221SvilaBYudHeewpfChp8a4_3IRLLPXFhI%22%5D,%22action%22:%22open%22,%22userId%22:%22116531269555057652166%22,%22resourceKeys%22:%7B%7D%7D&usp=sharing

Visual-Studio-Coder avatar Aug 09 '24 22:08 Visual-Studio-Coder

Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.

github-actions[bot] avatar Aug 24 '24 01:08 github-actions[bot]

This issue was closed because it has been inactive for 28 days. Please post a new issue if you need further assistance. Thanks!

github-actions[bot] avatar Sep 07 '24 01:09 github-actions[bot]