3 ms·
FIXED: needs to be a POST. Doh! Can anyone get it to work? I get this error on everything I've tried: GET /v1/completions HTTP/1.1 Host: api.openai.com
by pbreit 4y ago
FIXED: needs to be a POST. Doh!
Can anyone get it to work? I get this error on everything I've tried:
GET /v1/completions HTTP/1.1
Host: api.openai.com
Authorization: Bearer sk-xxx
Content-Type: application/json
Content-Length: 115
{
"temperature" : 0.5,
"model" : "text-davinci-003",
"prompt" : "just a test",
"max_tokens" : 7
}
{
"error": {
"message": "you must provide a model parameter",
"type": "invalid_request_error",
"param": null,
"code": null
}
}
- teaearlgraycold 4y agoPlease include your request body for debugging purposes.
- teaearlgraycold 4y agoThat should be a POST not a GET