TypeChat
TypeChat copied to clipboard
ChatGPT interpretes prompt as wanting and example of JSON, not JSON with actual data for the user request
Hello
I've been playing around with a meal plan app for which I've been working a lot on how to get ChatGPT to give the result as JSON. For this reason, when I heard about TypeChat, I thought that, that sounded like a perfect solution.
Not sure whether its due to my type definitions are a bit complex, but the resulting prompts make ChatGPT interpret that I want an example on how a resulting JSON could look.
Here's a link to a chat I made with the prompt generated by Typechat.
https://chat.openai.com/share/5bce537a-f9b8-4fbc-afd7-7ebb724b3f89
In my own approach I've had success with ending my prompt with the type definition. Like for example:
"Your response should be in JSON format {meals: {"description": string, "ingredients": {"name": string, "quantity": number, "unit": string}[], "directions": string[]}[]}."
Have you considered this sort of approach?