Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

POST https://api.openai.com/v1/chat/completions 404

Exuberant Elephant answered on May 23, 2023 Popularity 1/10 Helpfulness 3/10

Contents


More Related Answers


POST https://api.openai.com/v1/chat/completions 404

0

change your model value to a lower (public) model

you might be here because the link says that you didn't pass an API key (but you did)
what helped me resolve this issue was changing the model. seems like i didn't have access to the one i tried at first: 

ex: 

//initial 

async function getReply(){

const response = await openai.createChatCompletion({

model: 'gpt-4', 

messages: conversationArray

})

console.log(response)



//updated with lower model value

async function getReply(){

const response = await openai.createChatCompletion({

model: 'gpt-3.5-turbo',

messages: conversationArray

})

console.log(response)

Popularity 1/10 Helpfulness 3/10 Language whatever
Source: Grepper
Tags: post whatever
Link to this answer
Share Copy Link
Contributed on May 23 2023
Exuberant Elephant
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.