Power-Fx icon indicating copy to clipboard operation
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

Open LucGenetier opened this issue 2 years ago • 1 comments

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

LucGenetier avatar Jan 12 '24 15:01 LucGenetier

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)

LucGenetier avatar Jan 26 '24 14:01 LucGenetier