I think you may be right. I’ve had more consistent luck asking it to respond in a numerical list, with each list item on it’s own line. That’s easy enough to parse into JSON with a little string hackery.
ScottFennell
11
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Fine tuning models to generate JSON response | 6 | 6426 | November 9, 2023 | |
| Valid json every time? | 16 | 12549 | March 27, 2023 | |
| Prompt integrating JSON, or JSON request after the prompt | 4 | 21412 | May 29, 2023 | |
| I want to get json format response which I can pass using gpt-4 model. Also I want to give my prompt to get json data | 14 | 21798 | October 26, 2023 | |
| Is there any better approach to get a Json from gpt? | 6 | 4876 | March 27, 2024 |