Logo

azure-openai

#10032

model_operation_error

The specified model is incompatible with the chosen operation. Please select a different model and try again. Learn more about compatible models with operations here: https://go.microsoft.com/fwlink/?linkid=2197993.

This error has been identified and solved.

Reason

The 400 status error in the Azure OpenAI API for the chatCompletion operation with the text-embedding-ada-002 model is occurring because of the following reasons:

Model Incompatibility

The text-embedding-ada-002 model is not supported for the chatCompletion operation. This operation only supports specific models, such as gpt-3.5-turbo and gpt-3.5-turbo-0301, but not embedding models like text-embedding-ada-002.

Invalid Request

The error indicates that the request is not properly configured, which can be due to using a model that is incompatible with the specified operation. This results in the server being unable to understand the request, leading to a "Bad Request" response.

Solution

To resolve the 400 status error in the Azure OpenAI API, you need to ensure that the model you are using is compatible with the operation you are attempting.

  • Select a model that supports the chatCompletion operation, such as gpt-3.5-turbo or gpt-35-turbo-instruct.

  • Avoid using embedding models like text-embedding-ada-002 for this operation.

  • Check the Azure OpenAI documentation for compatible models and operations to ensure your request is properly configured.

Original Error Message

Raw

The specified model is incompatible with the chosen operation. Please select a different model and try again. Learn more about compatible models with operations here: https://go.microsoft.com/fwlink/?linkid=2197993.

Original Error Message

Raw

The specified model is incompatible with the chosen operation. Please select a different model and try again. Learn more about compatible models with operations here: https://go.microsoft.com/fwlink/?linkid=2197993.

Suggested Links

© 2024 Portkey, Inc. All rights reserved

HIPAA

COMPLIANT

GDPR

Transform Your AI app prototypes to be production-ready

Talk to us →