Logo SVG copied to clipboard
Custom development The team behind Manifest can help you develop what your company needs around your LLM gateway. Talk to us

OpenAI code-davinci-edit-001 model retirement

Stopped working

On January 4, 2024, the model code-davinci-edit-001 was retired. Requests targeting model code-davinci-edit-001 fail since that date. This change directly affects any API integrations that still invoke this specific model.

View as Markdown

The error you get

What OpenAI answers a call to code-davinci-edit-001 once the model is gone, as recorded from real responses:

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

What to use instead of code-davinci-edit-001

Move to gpt-6-luna. The initially listed replacement, gpt-4o, stops working on January 14, 2027.

In OpenAI's words

Shutdown date: Jan 4, 2024; Affected model or feature: code-davinci-edit-001; Listed replacement: gpt-4o; Notice date: Jul 6, 2023

OpenAI, Deprecations page

Facts

API
OpenAI api.openai.com
Model
code-davinci-edit-001
Kind
Model retirement
Takes effect
January 4, 2024
Calls after that day
Fail
Last updated
Verified
, against OpenAI's own pages

This data is open source (MIT): mnfst/model-deprecations. Something wrong or missing? Edit on GitHub.

Self-host for free, or let us run it for $19/month.