HTTP client libraries on the various languages still seems so lousy with excessive boilerplate and all sorts of complexity to handle cases that are beyond rare.
10,126 karma · joined April 9, 2007
Are data types useful for data to/fro web/mobile clients? Encode type into the column header?
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
}
}"Authorization: Bearer $OPENAI_API_KEY"