How to resolve 'The completion operation does not work with the specified model, gpt-35-turbo-16k. Please choose different model and try again.'

Samirit Saha 75 Reputation points
2023-09-12T16:51:02.1566667+00:00

Am getting this error when I click on explore chat option in Azure OpenAI studio: Completions call failed:OperationNotSupported

The completion operation does not work with the specified model, gpt-35-turbo-16k. 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. | Apim-request-id: c2867017-c4e1-4960-9098-274ee8604436

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,614 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tyler Suard 70 Reputation points
    2024-01-09T00:19:24.86+00:00

    Instead of using

    client.completions.create(
                model="gpt-35-turbo-16k", 
             	prompt="This is a prompt")
    

    Use this instead:

    client.chat.completions.create(
                model="gpt-4", 
                messages = [{"role":"system", "content":"this is a prompt"}])
    
    5 people found this answer helpful.

  2. Saurabh Sharma 23,791 Reputation points Microsoft Employee
    2023-09-12T18:32:44.6866667+00:00

    Hi Samirit Saha,

    Thanks for using Microsoft Q&A!!

    You are getting this error as Completion operation is not supported by gpt-35-turbo(0613) and gpt-35-turbo-16k(0613) models. These models only support Chat Completions API. Only older turn model - GPT-3.5 Turbo (0301) supports both Chat and completions API. Please refer to the GPT-3.5 models for details.

    Additionally, Models page of Azure AI Studio displays the features supported by the Model as shown in the below screenshot -

    User's image

    Please let me know if you have any other questions.

    Thanks

    Saurabh


    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    4 people found this answer helpful.