Ensure JSON response format

Yeah actually, thats true come to think of it

GPT3.5 particularly always wants to respond with an object

Im usually asking for an object with a single prop which contains the array

Its fascinating how subtle the nuances are

Its also amazing how GPT4 can just “do it” with minimal tweaking

Cant wait for the price to drop on that so we can all make more use of it

2 Likes

Getting a response in JSON format is now possible without creating unnecessary functions. Chat completion API supports it natively.

  1. Specify the JSON format in the user or system prompt.
  2. Change response_type to json
1 Like

Too bad it’s not available for Assistant APis