ModelRot

code-davinci-001 vs gpt-4o

OpenAI names gpt-4o as the replacement for code-davinci-001. code-davinci-001 shut down on Mar 23, 2023.

Retired→Active
Per 1M tokenscode-davinci-001gpt-4o
Input—$2.50
Output—$10
Blended changeUnknown: a list price is missing
ProviderOpenAIOpenAI
Statusretiredactive
ShutdownMar 23, 2023—
Context window——

Migrating

  • Replace the ID code-davinci-001 with gpt-4o everywhere it appears, including .env files, config and infrastructure templates.
  • Run your evaluation set or golden prompts on both before switching: output style, refusals and tool calling can differ between generations.
  • Check max output tokens and parameters: newer models sometimes rename or drop sampling options.
  • Watch the repo on ModelRot so the next retirement doesn't surprise you. gpt-4o lifecycle.