Error code: 400 - {'error': {'code': 'OperationNotSupported', 'message': 'The completion operation does not work with the specified model, gpt-35-turbo-16k. Please choose different model and try again.

Tushar Gupta 40 Reputation points
2023-12-21T17:11:07+00:00

I am trying to use the Azure Open AI Gpt models to help me with writing the sql queries using the schema I provided, but for all the models gpt3.5 turbo, gpt4, I am getting the error "**Error fetching schema: Error code: 400 - {'error': {'code': 'OperationNotSupported', 'message': 'The completion operation does not work with the specified model, gpt-35-turbo. 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.'}}**"

However, if I am trying the same template and question from the playground, I am able to see the responses from all models. Can you please suggest me what's that I am not doing correctly here?

User's image

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,006 questions
{count} votes

Accepted answer
  1. Saurabh Sharma 23,846 Reputation points Microsoft Employee
    2024-01-03T19:23:46.9166667+00:00

    @Tushar Gupta You can go to Models section of Azure Open AI Studio and select column options to add additional columns like Fine Tune, Completion etc. and then you can check the models with a green checkmark under Completion column to identify models supporting the completions API(See screenshot below)

    User's image

    Please let me know if you have any other questions.

    Thanks

    Saurabh


    Please 'Accept as answer' and Upvote if it helped so that it can help others in the community looking for help on similar topics.


1 additional answer

Sort by: Most helpful
  1. Saurabh Sharma 23,846 Reputation points Microsoft Employee
    2023-12-21T21:00:08.18+00:00

    Hi @Tushar Gupta

    Welcome to Microsoft Q&A! Thanks for posting the question.

    I believe you are trying to use 0613 or 1106 version of GPT-3.5 Turbo and thus hitting this error. As mentioned in the documentation please note that the versions 0613 and 1106 only support the Chat Completions API.

    You can get the list of deployed models which you can use for completions under completions playground on Azure Open AI Portal.
    User's image

    Please let know in case you have any other questions.

    Thanks

    Saurabh

    1 person found this answer helpful.

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.