
openai
#10546
model_deprecation_error
The selected model has been deprecated. Learn more here: https://platform.openai.com/docs/deprecations.
This error has been identified and solved.
Reason
The 404 error you are encountering when using the gpt-3.5-turbo-0301
model or similar models can be attributed to several reasons:
Incorrect Endpoint: The
gpt-3.5-turbo
models are chat models and need to be accessed through thev1/chat/completions
endpoint, not thev1/completions
endpoint. Using the wrong endpoint can result in a 404 error.Model Deprecation: The
gpt-3.5-turbo-0301
model might have been deprecated or modified in behavior, leading to compatibility issues. There have been reports of sudden changes in behavior and token limit errors with this model, suggesting internal changes or deprecation.API Version Changes: Recent changes in the OpenAI Python package, particularly in version 1, have introduced breaking changes that might affect how models are accessed. Ensuring you are using the correct API version and endpoints is crucial.
Resource Not Found: If the model or the specific version of the model you are trying to access is not available or has been moved, it will result in a 404 error. This could be due to the model being deprecated or not being available on the server.
These factors collectively contribute to the 404 errors when attempting to use the gpt-3.5-turbo-0301
model.
Solution
To resolve the 404 error when using the OpenAI API, particularly with the gpt-3.5-turbo-0301
model, you should:
Ensure you are using the correct endpoint, such as v1/chat/completions
for chat models.
Use the
gpt-3.5-turbo
model instead, as it points to the latest available version.Verify that the model you are trying to access is not deprecated.
Update your OpenAI Python package to the latest version to avoid compatibility issues.
Check your API key and permissions to ensure they are correct and have the necessary access.
By making these adjustments, you should be able to resolve the 404 error and successfully use the desired model.
Suggested Links
https://community.openai.com/t/gpt-3-5-turbo-model-gives-me-a-404-error/83297
https://community.openai.com/t/gpt-3-5-turbo-0301-showing-different-behavior-suddenly/431326
https://github.com/langchain-ai/langchain/issues/13284
https://github.com/crewAIInc/crewAI/issues/197
https://community.openai.com/t/getting-404-not-found-error-for-api-endpoint-in-postman/903181
https://community.deeplearning.ai/t/the-model-gpt-3-5-turbo-0301-has-been-deprecated/716988
https://community.openai.com/t/my-program-is-unable-to-use-the-gpt-3-5-turbo-model-and-i-need-help-urgently/207341