Functions are not supported at this time.

ashakiro 5 Reputation points
2023-11-13T01:13:35.82+00:00
response = openai.ChatCompletion.create(
    engine="turbo16k",
    messages=[{"role": "user", "content": "hi"}],
    deployment_id=deployment_id,
    functions=functions,
    dataSources=[  
        {
            "type": "AzureCognitiveSearch",
            "parameters": {
                "endpoint": search_endpoint,
                "key": search_key,
                "indexName": search_index_name,
                "inScope": False,
            }
        }
    ],
    stream=True,
)
print(response)

This code produces error: openai.error.InvalidRequestError: Functions are not supported at this time.
I've tried: gpt-35-turbo-16k and gpt-35-turbo models.
Also i have tried to delete dataSources.
According to microsoft guide everything should work, but Functions are not supported at this time. How to solve it?

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

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.