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-002 model retirement

Stopped working

On March 23, 2023, model code-davinci-002 was shut down. Requests sent to model code-davinci-002 fail since that day. This retirement directly affects all calls specifying this model identifier.

View as Markdown

The error you get

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

HTTP 404
{"error":{"message":"The model `code-davinci-002` 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-002

Move to gpt-6-luna. Note that gpt-4o was named first as a replacement but stops working on January 14, 2027.

In OpenAI's words

Shutdown date: Mar 23, 2023; Affected model or feature: code-davinci-002 (Codex models); Listed replacement: gpt-4o; Notice date: Mar 20, 2023

OpenAI, Deprecations page

Facts

API
OpenAI api.openai.com
Model
code-davinci-002
Kind
Model retirement
Takes effect
March 23, 2023
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.