Does the prompt contain prohibited characters? My API key works with the OpenAI-CLI "say test" request, but I can't get it to work with this JS script.
const finalPrompt = "Given a list of words, 'run, eat, sleep, pay', generate a JSON as follows: {'run': ['run', 'ran', 'run', 'runs', 'running'], 'eat': ['eat', ate', 'eaten', 'eats', 'eating'], 'sleep': ['sleep', 'slept', 'slept', 'sleeps', 'sleeping' ], 'pay': ['pay', 'paid', 'paid', 'pays', 'paying' ],}. Each word's array entry is [present, past, perfect, third person singular, continuous]. List: have, go, be, say, do, will, could, use, would, can, see, work, come, take, make, think, like, get, know, call, tell, want, give, find, mean ->"
const response = await openai.createCompletion({
model: 'text-davinci-003',
prompt: finalPrompt,
temperature: 0,
max_tokens: 4000,
})
Request failed with status code 400