Forum Discussion
Azure Open AI: Error when calling completions api with GPT4o-mini
Hello,
I am getting the following error when calling completions api with GPT4o-mini model.
{
"error": {
"code": "OperationNotSupported",
"message": "The completion operation does not work with the specified model, gpt-4o-mini. Please choose different model and try again. You can learn more about which models can be used with each operation here: https://go.microsoft.com/fwlink/?linkid=2197993."
}
}
If I use an older model like GPT3.5, I get no errors.
The endpoint I am using is similar to https://dev-swedencentral-openai.openai.azure.com/openai/deployments/dev-gpt-4o-mini/completions?api-version=2024-04-01-preview
I saw that at https://learn.microsoft.com/en-us/azure/ai-services/openai/overview,
it says that GPT4o-mini is already supported.
Can you help to solve this error?
Thanks
Hi Kidd_Ip,
I have been in contact with Microsoft. To use GPT4o-mini, I will have to replace the call to Completions API with a call to the Chat Completions API. GPT4o-mini doesn't have and will not have support for Completions API.
Thanks
Thanks.
2 Replies
See this, the error message you’re encountering indicates that the GPT-4o-mini model does not support the completion operation:
OperationNotSupported when trying to fun completion with gpt-4o - Microsoft Q&A
- miguelisidoroIron Contributor
Hi Kidd_Ip,
I have been in contact with Microsoft. To use GPT4o-mini, I will have to replace the call to Completions API with a call to the Chat Completions API. GPT4o-mini doesn't have and will not have support for Completions API.
Thanks
Thanks.