Is Suffix broken for the codex API?

Since a few days it seems that any request I send to the codex API that includes a suffix, returns an invalid_request_error with message: “Invalid Token”. For example:

curl https://api.openai.com/v1/completions
-H “Content-Type: application/json”
-H “Authorization: Bearer $OPENAI_API_KEY”
-d ‘{
“model”: “code-davinci-002”,
“prompt”: "# Write function to calculate fibonacci ",
“temperature”: 0,
“max_tokens”: 256,
“suffix”: “# end of function”,
“top_p”: 1,
“frequency_penalty”: 0,
“presence_penalty”: 0
}’

This worked until recently I think

1 Like