OpenAI API 快速开发手册 - Deprecations

发布时间 2023-08-04 17:03:37作者: jerryqm

Deprecations
概述
随着我们推出更安全、功能更强大的模型,我们定期停用较旧的模型。依赖OpenAI模型的软件可能需要偶尔进行更新以保持正常运行。受影响的客户将始终通过电子邮件和我们的文档以及博客文章中得到通知,以便了解较大的变更。

本页面列出了所有API停用的内容,以及推荐的替代方案。

增量模型更新
根据2023年3月的公告,我们定期发布gpt-4和gpt-3.5-turbo的新版本。

每个模型版本都带有-MMDD后缀,例如gpt-4-0613。未标注日期的模型名称,例如gpt-4,通常指向最新版本(例如,gpt-4指向gpt-4-0613)。使用未标注日期的模型名称的用户通常会在任何更改发生前的2周内收到电子邮件通知。

新版本发布后,旧版本通常会在3个月后停用。

迁移到替代方案
一旦模型停用,请确保在停用日期之前将所有使用迁移到合适的替代方案。在停用日期之后的模型请求将失败。

为了帮助衡量替代方案在您的任务上的性能,我们已经开源了Evals,一个用于评估语言模型的Python框架。

如果新模型在您的任务上表现不佳,请通过向我们的Evals仓库提交拉取请求并附上任务示例来告知我们。

停用历史
以下是所有停用的内容,最近的公告排在前面。

2023-07-06: GPT和嵌入式模型
在2023年7月6日,我们宣布将停用通过completions端点提供的旧GPT-3和GPT-3.5模型。我们还宣布将停用第一代文本嵌入式模型。它们将在2024年1月4日关闭。

InstructGPT模型

停用日期 模型 价格 推荐替代方案
2024-01-04 text-ada-001 $0.0004 / 1K tokens gpt-3.5-turbo-instruct
2024-01-04 text-babbage-001 $0.0005 / 1K tokens gpt-3.5-turbo-instruct
2024-01-04 text-curie-001 $0.0020 / 1K tokens gpt-3.5-turbo-instruct
2024-01-04 text-davinci-001 $0.0200 / 1K tokens gpt-3.5-turbo-instruct
2024-01-04 text-davinci-002 $0.0200 / 1K tokens gpt-3.5-turbo-instruct
2024-01-04 text-davinci-003 $0.0200 / 1K tokens gpt-3.5-turbo-instruct

Base GPT模型

停用日期 模型 价格 推荐替代方案
2024-01-04 ada $0.0004 / 1K tokens ada-002
2024-01-04 babbage $0.0005 / 1K tokens babbage-002
2024-01-04 curie $0.0020 / 1K tokens curie-002
2024-01-04 davinci $0.0200 / 1K tokens davinci-002
2024-01-04 code-davinci-002 free to researchers gpt-3.5-turbo-base

编辑模型和端点

停用日期 模型/系统 推荐替代方案
2024-01-04 text-davinci-edit-001 gpt-4
2024-01-04 code-davinci-edit-001 gpt-4
2024-01-04 /v1/edits /v1/chat/completions

微调GPT模型

停用日期 模型 训练价格 使用价格 推荐替代方案
2024-01-04 ada $0.0004 / 1K tokens $0.0016 / 1K tokens ada-002
2024-01-04 babbage $0.0006 / 1K tokens $0.0024 / 1K tokens babbage-002
2024-01-04 curie $0.003 / 1K tokens $0.012 / 1K tokens curie-002
2024-01-04 davinci $0.03 / 1K tokens $0.12 / 1K tokens davinci-002, gpt-3.5-turbo, gpt-4

第一代文本嵌入式模型

停用日期 模型 价格 推荐替代方案
2024-01-04 text-similarity-ada-001 $0.004 / 1K tokens text-embedding-ada-002
2024-01-04 text-search-ada-doc-001 $0.004 / 1K tokens text-embedding-ada-002
2024-01-04 text-search-ada-query-001 $0.004 / 1K tokens text-embedding-ada-002
2024-01-04 code-search-ada-code-001 $0.004 / 1K tokens text-embedding-ada-002
2024-01-04 code-search-ada-text-001 $0.004 / 1K tokens text-embedding-ada-002
2024-01-04 text-similarity-babbage-001 $0.005 / 1K tokens text-embedding-ada-002
2024-01-04 text-search-babbage-doc-001 $0.005 / 1K tokens text-embedding-ada-002
2024-01-04 text-search-babbage-query-001 $0.005 / 1K tokens text-embedding-ada-002
2024-01-04 code-search-babbage-code-001 $0.005 / 1K tokens text-embedding-ada-002
2024-01-04 code-search-babbage-text-001 $0.005 / 1K tokens text-embedding-ada-002
2024-01-04 text-similarity-curie-001 $0.020 / 1K tokens text-embedding-ada-002
2024-01-04 text-search-curie-doc-001 $0.020 / 1K tokens text-embedding-ada-002
2024-01-04 text-search-curie-query-001 $0.020 / 1K tokens text-embedding-ada-002
2024-01-04 text-similarity-davinci-001 $0.200 / 1K tokens text-embedding-ada-002
2024-01-04 text-search-davinci-doc-001 $0.200 / 1K tokens text-embedding-ada-002
2024-01-04 text-search-davinci-query-001 $0.200 / 1K tokens text-embedding-ada-002

2023-06-13: 更新的聊天模型
根据开发者的反馈,我们将继续支持OpenAI API中的gpt-3.5-turbo-0301和gpt-4-0314模型,至少延长到2024年6月13日。我们在2023年6月13日的博客文章中更新了更多详细信息。在2024年6月最早,将停用最初的三个版本。

停用日期 模型 价格 推荐替代方案
最早2024-06-13 gpt-3.5-turbo-0301 $0.0015 / 1K输入标记 + $0.0020 / 1K输出标记 gpt-3.5-turbo-0613
最早2024-06-13 gpt-4-0314 $0.03 / 1K输入标记 + $0.06 / 1K输出标记 gpt-4-0613
最早2024-06-13 gpt-4-32k-0314 $0.06 / 1K输入标记 + $0.12 / 1K输出标记 gpt-4-32k-0613

2023-03-20: Codex模型

停用日期 模型 推荐替代方案
2023-03-23 code-davinci-002 gpt-4或研究员访问计划
2023-03-23 code-davinci-001 gpt-4或研究员访问计划

2023-03-23 | code-cushman-002 | gpt-4或研究员访问计划
2023-03-23 | code-cushman-001 | gpt-4或研究员访问计划

2022-06-03: 旧端点

停用日期 系统 推荐替代方案
2022-12-03 /v1/engines /v1/models
2022-12-03 /v1/search 查看过渡指南
2022-12-03 /v1/classifications 查看过渡指南
2022-12-03 /v1/answers 查看过渡指南