My problem is about text-davinci-003 . help

I apologize, I’m not familiar with curl, so this might not be anything, but you seem to have mismatched or missing quotation marks and curly braces on the lines indicated by <-

curl https://api.openai.com/v1/completions
-H"Content-Type:application/json <-
-H"Authorization: tF -d’ <-
“model”:“text-davinci-003”,
“prompt”:“Correct this to standard English: n\nShe no went to the market.”,“temperature :0,“max_tokens :60,“top_p”:1.0, <-
“frequency_penalty”: 0.0 presence_penalty”: 0.0} <-

I’m using the the following snippet from the API docs to compare:

curl https://api.openai.com/v1/completions \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
  "model": "text-davinci-003",
  "prompt": "Say this is a test",
  "max_tokens": 7,
  "temperature": 0
}'

I hope this helps!

1 Like