ModelRot

code-davinci-002 vs gpt-3.5-turbo-instruct

OpenAI names gpt-3.5-turbo-instruct as the replacement for code-davinci-002. code-davinci-002 shut down on Mar 23, 2023.

Retired→Retired
Per 1M tokenscode-davinci-002gpt-3.5-turbo-instruct
Input——
Output——
Blended changeUnknown: a list price is missing
ProviderOpenAIOpenAI
Statusretiredretired
ShutdownMar 23, 2023Sep 28, 2026
Context window——

Migrating

  • Replace the ID code-davinci-002 with gpt-3.5-turbo-instruct 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-3.5-turbo-instruct lifecycle.