OpenAI API 错误:“模型 `text-davinci-003` 已被弃用”

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

我正在使用 ChatGPT,它说要使用这行代码作为 API 端点:

$endpoint = 'https://api.openai.com/v1/engines/text-davinci-003/completions';

但这不起作用。我收到以下错误:

{ "error": { "message": "The model `text-davinci-003` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations", "type": "invalid_request_error", "param": null, "code": "model_not_found" } }

我真的找不到任何东西可以解决它。

我尝试更改 URL 本身中的模型,但没有成功。

php openai-api gpt-3
1个回答
0
投票

2024 年 1 月 4 日,OpenAI 弃用了一堆模型。

请参阅下表中已弃用的型号和推荐的替代品。

指导GPT模型

关闭日期 传统型号 建议更换
2024-01-04
text-ada-001
gpt-3.5-turbo-instruct
2024-01-04
text-babbage-001
gpt-3.5-turbo-instruct
2024-01-04
text-curie-001
gpt-3.5-turbo-instruct
2024-01-04
text-davinci-001
gpt-3.5-turbo-instruct
2024-01-04
text-davinci-002
gpt-3.5-turbo-instruct
2024-01-04
text-davinci-003
gpt-3.5-turbo-instruct

基础 GPT 模型

关闭日期 传统型号 建议更换
2024-01-04
ada
babbage-002
2024-01-04
babbage
babbage-002
2024-01-04
curie
davinci-002
2024-01-04
davinci
davinci-002
2024-01-04
code-davinci-002
gpt-3.5-turbo-instruct

微调GPT模型

关闭日期 传统型号 建议更换
2024-01-04
ada
babbage-002
2024-01-04
babbage
babbage-002
2024-01-04
curie
davinci-002
2024-01-04
davinci
davinci-002
gpt-3.5-turbo
gpt-4

编辑模型

关闭日期 型号 建议更换
2024-01-04
text-davinci-edit-001
gpt-4
2024-01-04
code-davinci-edit-001
gpt-4

嵌入模型

关闭日期 传统型号 建议更换
2024-01-04
text-similarity-ada-001
text-embedding-ada-002
2024-01-04
text-search-ada-doc-001
text-embedding-ada-002
2024-01-04
text-search-ada-query-001
text-embedding-ada-002
2024-01-04
code-search-ada-code-001
text-embedding-ada-002
2024-01-04
code-search-ada-text-001
text-embedding-ada-002
2024-01-04
text-similarity-babbage-001
text-embedding-ada-002
2024-01-04
text-search-babbage-doc-001
text-embedding-ada-002
2024-01-04
text-search-babbage-query-001
text-embedding-ada-002
2024-01-04
code-search-babbage-code-001
text-embedding-ada-002
2024-01-04
code-search-babbage-text-001
text-embedding-ada-002
2024-01-04
text-similarity-curie-001
text-embedding-ada-002
2024-01-04
text-search-curie-doc-001
text-embedding-ada-002
2024-01-04
text-search-curie-query-001
text-embedding-ada-002
2024-01-04
text-similarity-davinci-001
text-embedding-ada-002
2024-01-04
text-search-davinci-doc-001
text-embedding-ada-002
2024-01-04
text-search-davinci-query-001
text-embedding-ada-002

此外,您尝试使用的 API 端点是错误的。

改变这个...

https://api.openai.com/v1/engines/text-davinci-003/completions

...对此。

https://api.openai.com/v1/completions
© www.soinside.com 2019 - 2024. All rights reserved.