gpt-4o-mini doesn't work with chatCompletion api via nodejs

arb 1 Reputation point
2024-08-14T15:39:29.2533333+00:00

i have deployed gpt-4o-mini onto my account but when i try and call openai.chat.completions.create i receive the following error (gpt3.5 and gpt4 variants work perfectly, the openai model also works out of the box).

Error: 400 The chatCompletion 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.
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,936 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Kaarlehto Juhana 0 Reputation points
    2024-08-15T10:49:42.6+00:00

    I have the same problem.

    Calling gpt-4o-mini deployment endpoint for /chat/completions yields the same error.

    0 comments No comments

  2. Christian 20 Reputation points
    2024-08-22T13:27:36.3733333+00:00

    Make sure you didn't deploy de model as "Global-Batch". It has to be "Global-Standard" (or Provisioned if you have it)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.