GenkitG
Genkit•2y ago•
2 replies
ltd-scarlet

I am using Genkit Go and using the Quick

I am using Genkit Go and using the Quick Start guide. When using resp.getText() method, it seems to append a "\n" at the end of the JSON formatted string due to which the JSON parsing on the front-end fails. Any specific reason that it might be doing so? For e.g. I even modified the flow code to just return the JSON representation of *ai.GenerateResponse but it still has a get a "\n" at the end as the screenshot indicates.
image.png
Was this page helpful?