We are integrating Azure's GPT into a PowerApp using our Premium License.
It works perfectly fine when we send the message body without any parameters but when we add the parameters, we are faced with this error:
The extensions chat completions operation must have at least one extension.
My endpoint:
https://XXXXXXXX.azure.com/openai/deployments/ccc-gpt4/extensions/chat/completions?api-version=2023-07-01-preview
My code:
{
"messages": [
{
"role": "user",
"content": "Hi"
}
],
"extensions": [
{
"type": "default",
"settings": {
"temperature": 0.7,
"top_p": 0.95,
"frequency_penalty": 0,
"presence_penalty": 0,
"max_tokens": 110,
"stop": null
}
}
],
"azureSearchEndpoint": "https://XXXX.net",
"azureSearchKey": "XXXXXXXXXX",
"azureSearchIndexName": "XXXXXXX"
}
Any help would be greatly appreciated.
I get this error when I am working on it from the portal. How is that possible?
Hi, I am also facing the same issue.
Without extensions its working but while adding extension its throwing the same error that "The extensions chat completions operation must have at least one extension.".
I am using the Azure OpenAI endpoints and key with power automate.
I am also facing same issue by using similar JSON code suggested by OpenAI playground in my Logic APp flow