Power-Fx
Power-Fx copied to clipboard
[Connectors] Unable to process api-version when it is 'preview' - Unsupported param with OpenApi type Microsoft.OpenApi.Any.OpenApiDateTime, key = api-version
Azure OpenAI Service connector "operationId": "ChatCompletion"
{
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"default": "2023-03-15-preview",
"x-ms-visibility": "advanced",
"description": "The API version for this REST call to Azure OpenAI. Must be 2023-03-15-preview or later",
"x-ms-summary": "Azure OpenAI API Version (must be 2023-03-15-preview or later)"
},
When loading this swagger file, we get the following error [ERROR] Function ChatCompletion: Unsupported param with OpenApi type Microsoft.OpenApi.Any.OpenApiDateTime, key = api-version
210 functions are impacted
select * from Functions where NotSupportedReason = 'Unknown default value type Microsoft.OpenApi.Any.OpenApiDateTime, Unsupported param with OpenApi type Microsoft.OpenApi.Any.OpenApiDateTime, key = x-ms-api-version' and Category = 'Aapt-Ppc_ConnectorFunction' -- 'Baseline_ConnectorFunction' and BuildId = ( select top 1 BuildId from Connectors order by BuildId desc)