Home > Blockchain >  openai api gives me this error with basic example: "That model does not exist"
openai api gives me this error with basic example: "That model does not exist"

Time:02-03

Get "That model does not exist" from api call in node.js

const chatGptUrl = "https://api.openai.com/v1/engines/chat-gpt/jobs";

...

const response = await axios.post(
      chatGptUrl,
      {
        prompt,
        max_tokens: 100,
        n: 1,
        stop: "",
      },
      {
        headers: {
          "Content-Type": "application/json",
          "Authorization": `Bearer ${chatGptApiKey}`,
        },
      }
    );

    const responseText = response.data.choices[0].text;

CodePudding user response:

You have to set the model parameter to text-davinci-003, text-curie-001, text-babbage-001 or text-ada-001. It's a Deprecated

  • Related