Azureopenai functions

aakash regmi 11 Reputation points
2023-11-18T16:32:08.11+00:00
Still getting the following error, running the demo with this config based on the documentation below:
https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/chatgpt?tabs=python&pivots=programming-language-chat-completions

model="gpt-35-turbo-0613"

client = AzureOpenAI(
    azure_endpoint=endpoint,
    api_key=api_key,
    api_version="2023-07-01-preview"
    )
YAML


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

1 answer

Sort by: Most helpful
  1. Saurabh Sharma 23,866 Reputation points Microsoft Employee Moderator
    2023-11-27T23:16:17.2266667+00:00

    Hi @aakash regmi

    You are getting this error as your GPT-35-Turbo model version is older (0301) and not GPT-35-Turbo(0601).

    I am able to reproduce this issue and got the same error as you are getting. (See screenshot below)

    User's image

    Please can you update your model to newer version or try with the model with version 0613 of gpt-35-turbo, gpt-35-turbo-16k, gpt-4, or gpt-4-32k.

    You can update an existing model from deployments tab and using edit deployment button.

    User's image

    Please let me know if you have any 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.


Your answer

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