I have a request with a body that contains ‘input’ with the text I’m moderating to make sure it doesn’t violate terms, but I get an error that says:
{
"error": {
"code": null,
"param": null,
"message": "'input' is a required property",
"type": "invalid_request_error"
}
}
The input is there. Why am I seeing this issue?
I’m POSTing to https://api.openai.com/v1/moderations
with this payload:
{
"input": "I want to kill them.",
}
Content-Type: application/json
Authorization: Bearer [MY TOKEN]
It works locally, but not when I push it to a lambda. Any ideas?