Document about JSON mode, missing quotation mark

I’m trying to use the new JSON mode and set the response_format to { type: "json_object" } according to the document. JSON mode
And it has raised an error

TypeError: keys must be str, int, float, bool or None, not type

It seems that type is missing a quotation mark, when setting response_format to { "type": "json_object" }, I got the correct answer

{
  "response": "Hello! How can I assist you today?"
}
1 Like

Thanks for reporting this! This is now fixed.

1 Like