The error you get
What OpenAI answers a call to code-cushman-002 once the model is gone, as recorded from real responses:
{"error":{"message":"The model `code-cushman-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-cushman-002
Move to gpt-6-luna. Note that gpt-4o, which was named first, stops working on January 14, 2027.
In OpenAI's words
Shutdown date: Mar 23, 2023; Affected model or feature: code-cushman-002; Listed replacement: gpt-4o; Notice date: Mar 20, 2023
Facts
- API
- OpenAI
api.openai.com - Model
code-cushman-002- Kind
- Model retirement
- Takes effect
- March 23, 2023
- Calls after that day
- Fail
- Source
- Deprecations page
- Last updated
- Verified
- , against OpenAI's own pages
Questions
When does code-cushman-002 shut down?
Calls to the model code-cushman-002 on OpenAI stopped working on March 23, 2023.
What happens to calls after March 23, 2023?
They have failed since March 23, 2023.
What error does code-cushman-002 return once it is shut down?
OpenAI answers HTTP 404: "The model `code-cushman-002` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations". Send another model to fix it.
More from OpenAI 10
| Effective | Model | Status |
|---|---|---|
code-cushman-001 | stopped working | |
code-davinci-001 | stopped working | |
code-davinci-002 | stopped working | |
ada | stopped working | |
babbage | stopped working | |
code-davinci-edit-001 | stopped working | |
code-search-ada-code-001 | stopped working | |
code-search-ada-text-001 | stopped working | |
code-search-babbage-code-001 | stopped working | |
code-search-babbage-text-001 | stopped working |