Specify API Version from C# API

Schunk, Edward 25 Reputation points
2024-03-06T20:41:42.63+00:00

I want to test the 2023-10-31 Preview version using c# using the DocumentAnalysisClient class in the SDK. How do I specify which version of the API version it should use?

Thanks,

Ted

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,984 questions
0 comments No comments
{count} votes

Accepted answer
  1. VasaviLankipalle-MSFT 18,576 Reputation points
    2024-03-06T22:26:06.6266667+00:00

    Hello @Schunk, Edward, Thanks for using Microsoft Q&A Platform.For SDK, the API version is not the required parameter to set like REST API. This works differently.

    Based on the SDK version the API version related clients are supported. The following tables represents the correlation between each .NET SDK version and it's supported API versions of the Document Intelligence service.

    User's image

    To Install the SDK client library for the 2023-10-31 Preview version try to install this:

    dotnet add package Azure.AI.DocumentIntelligence --version 1.0.0-beta.1
    

    Similarly, if you want to work on 2023-07-31 version you need to install SDK using the below code. This version of the client library defaults to the 2023-07-31 version of the service.

    dotnet add package Azure.AI.FormRecognizer
    

    I hope this helps.

    Regards,

    Vasavi

    -Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.


0 additional answers

Sort by: Most helpful

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.