Logo

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:

  1. Incorrect Endpoint: The gpt-3.5-turbo models are chat models and need to be accessed through the v1/chat/completions endpoint, not the v1/completions endpoint. Using the wrong endpoint can result in a 404 error.

  2. 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.

  3. 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.

  4. 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.

Original Error Message

Raw

The selected model has been deprecated. Learn more here: https://platform.openai.com/docs/deprecations.

Original Error Message

Raw

The selected model has been deprecated. Learn more here: https://platform.openai.com/docs/deprecations.

© 2024 Portkey, Inc. All rights reserved

HIPAA

COMPLIANT

GDPR

Transform Your AI app prototypes to be production-ready

Talk to us →