OpenAI GPT-3 API 错误:“该模型不存在”

问题描述 投票:0回答:1

从 node.js 中的 api 调用获取“该模型不存在”

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;
node.js openai-api gpt-3
1个回答
1
投票

您必须将

model
参数设置为
text-davinci-003
text-curie-001
text-babbage-001
text-ada-001
。这是一个必需的参数.

此外,所有引擎端点已被弃用。

© www.soinside.com 2019 - 2024. All rights reserved.