#How to specify a model for a second request using the OpenAI API

2 messages · Page 1 of 1 (latest)

ocean patio
#

Hello,
Does anyone know why my JSON is not valid?

Here is the error message and a capture of the variable.

{
"error": {
"message": "We could not parse the JSON body of your request. (HINT: This likely means you aren't using your HTTP library correctly. The OpenAI API expects a JSON payload, but what was sent was not valid JSON. If you have trouble figuring out how to fix this, please send an email to support@openai.com and include any relevant code you'd like help with.)",
"type": "invalid_request_error",
"param": null,
"code": null
}
}
Image
Image

lime valley
#

Have you tried putting the post body of your request into a JSON linter? https://jsonlint.com/