
openai
#10544
model_deprecation_error
The model you are attempting to use has been deprecated. Visit the provided link for more information.
This error has been identified and solved.
Reason
The 404 status error you are encountering with the OpenAI API is likely due to the deprecation of the gpt-4-vision-preview
model. Here are the key points:
Deprecation Notice: On June 6th, 2024, OpenAI notified developers that the
gpt-4-vision-preview
andgpt-4-32k
models would be deprecated in the near future.Access Restrictions: As of June 17, 2024, only existing users of these models can continue using them, and new users do not have access.
Model Non-Existence: The error indicates that the model
gpt-4-vision-preview
does not exist or you do not have access to it, which aligns with the deprecation and access restrictions.
Solution
To resolve the 404 error related to the gpt-4-vision-preview
model, you need to take the following steps:
Use an alternative model: Switch to a model that is not deprecated, such as
gpt-4-turbo
or another available model.Check API version and parameters: Ensure that your OpenAI API version and parameters are correctly configured, as outdated versions or incorrect parameters can lead to similar errors.
Verify API key and access permissions: Confirm that your API key has the necessary permissions and access to the models you are trying to use.
Update dependencies and libraries: Make sure you are using the latest versions of the OpenAI Python package and any other relevant libraries.
By addressing these points, you can avoid the 404 error and continue using the OpenAI API effectively.
Suggested Links
https://github.com/langchain-ai/langchain/issues/13284
https://github.com/tldraw/make-real-starter/issues/30
https://community.openai.com/t/the-model-gpt-4-does-not-exist-is-gpt-4-deprecated/679768
https://community.openai.com/t/getting-404-not-found-error-for-api-endpoint-in-postman/903181
https://platform.openai.com/docs/deprecations
https://community.openai.com/t/how-to-set-billing-limits-and-restrict-model-usage-for-a-project-via-openai-api/1087771
https://community.openai.com/t/getting-a-404-error-when-making-a-createchatcompletion-call-with-gpt-4/541052
https://community.openai.com/t/can-i-enable-some-models-for-api-key/583110