-
Notifications
You must be signed in to change notification settings - Fork 5k
[Text Authoring] Create dotnet sdk preview 20250515 #51146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[Text Authoring] Create dotnet sdk preview 20250515 #51146
Conversation
…sState to DeploymentResourcesState
…tes for legacy features
…ignDeploymentResource, getUnassignStatus
…gn/UnassignStatus
…dk_preview_20250515
Thank you for your contribution @amber-Chen-86! We will review the pull request and get back to you soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your account lacks the public GitHub organization memberships and permissions required of an internal contributor. Please review the Azure SDK onboarding documentation and use the associated Teams channel for support.
- Azure SDK onboarding (Microsoft internal)
- Azure SDK onboarding assistance (Microsoft internal)
You can verify the state of your account by running the Validate-AzsdkCodeOwner script from the Azure SDK tools repository.
Please also be sure to add yourself to CODEOWNERS for this library, if you will be maintaining it going forward.
@microsoft-github-policy-service agree company="Microsoft"
…________________________________
From: microsoft-github-policy-service[bot] ***@***.***>
Sent: Tuesday, July 8, 2025 2:46 PM
To: Azure/azure-sdk-for-net ***@***.***>
Cc: Amber Chen (Centific Technologies Inc) ***@***.***>; Mention ***@***.***>
Subject: Re: [Azure/azure-sdk-for-net] Create text authoring sdk preview 20250515 (PR #51146)
[https://avatars.githubusercontent.com/in/95686?s=20&v=4]microsoft-github-policy-service[bot] left a comment (Azure/azure-sdk-for-net#51146)<#51146 (comment)>
@amber-Chen-86<https://github.com/amber-Chen-86> please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]
Options:
* (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
* (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"
Contributor License Agreement
Contribution License Agreement
This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
and conveys certain license rights to Microsoft Corporation and its affiliates (“Microsoft”) for Your
contributions to Microsoft open source projects. This Agreement is effective as of the latest signature
date below.
1. Definitions.
“Code” means the computer software code, whether in human-readable or machine-executable form,
that is delivered by You to Microsoft under this Agreement.
“Project” means any of the projects owned or managed by Microsoft and offered under a license
approved by the Open Source Initiative (www.opensource.org<http://www.opensource.org/>).
“Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any
Project, including but not limited to communication on electronic mailing lists, source code control
systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of
discussing and improving that Project, but excluding communication that is conspicuously marked or
otherwise designated in writing by You as “Not a Submission.”
“Submission” means the Code and any other copyrightable material Submitted by You, including any
associated comments and documentation.
2. Your Submission. You must agree to the terms of this Agreement before making a Submission to any
Project. This Agreement covers any and all Submissions that You, now or in the future (except as
described in Section 4 below), Submit to any Project.
3. Originality of Work. You represent that each of Your Submissions is entirely Your original work.
Should You wish to Submit materials that are not Your original work, You may Submit them separately
to the Project if You (a) retain all copyright and license information that was in the materials as You
received them, (b) in the description accompanying Your Submission, include the phrase “Submission
containing materials of a third party:” followed by the names of the third party and any licenses or other
restrictions of which You are aware, and (c) follow any other instructions in the Project’s written
guidelines concerning Submissions.
4. Your Employer. References to “employer” in this Agreement include Your employer or anyone else
for whom You are acting in making Your Submission, e.g. as a contractor, vendor, or agent. If Your
Submission is made in the course of Your work for an employer or Your employer has intellectual
property rights in Your Submission by contract or applicable law, You must secure permission from Your
employer to make the Submission before signing this Agreement. In that case, the term “You” in this
Agreement will refer to You and the employer collectively. If You change employers in the future and
desire to Submit additional Submissions for the new employer, then You agree to sign a new Agreement
and secure permission from the new employer before Submitting those Submissions.
5. Licenses.
* Copyright License. You grant Microsoft, and those who receive the Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license in the
Submission to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute
the Submission and such derivative works, and to sublicense any or all of the foregoing rights to third
parties.
* Patent License. You grant Microsoft, and those who receive the Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license under
Your patent claims that are necessarily infringed by the Submission or the combination of the
Submission with the Project to which it was Submitted to make, have made, use, offer to sell, sell and
import or otherwise dispose of the Submission alone or with the Project.
* Other Rights Reserved. Each party reserves all rights not expressly granted in this Agreement.
No additional licenses or rights whatsoever (including, without limitation, any implied licenses) are
granted by implication, exhaustion, estoppel or otherwise.
1. Representations and Warranties. You represent that You are legally entitled to grant the above
licenses. You represent that each of Your Submissions is entirely Your original work (except as You may
have disclosed under Section 3). You represent that You have secured permission from Your employer to
make the Submission in cases where Your Submission is made in the course of Your work for Your
employer or Your employer has intellectual property rights in Your Submission by contract or applicable
law. If You are signing this Agreement on behalf of Your employer, You represent and warrant that You
have the necessary authority to bind the listed employer to the obligations contained in this Agreement.
You are not expected to provide support for Your Submission, unless You choose to do so. UNLESS
REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE WARRANTIES
EXPRESSLY STATED IN SECTIONS 3, 4, AND 6, THE SUBMISSION PROVIDED UNDER THIS AGREEMENT IS
PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY OF
NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
2. Notice to Microsoft. You agree to notify Microsoft in writing of any facts or circumstances of which
You later become aware that would make Your representations in this Agreement inaccurate in any
respect.
3. Information about Submissions. You agree that contributions to Projects and information about
contributions may be maintained indefinitely and disclosed publicly, including Your name and other
information that You submit with Your Submission.
4. Governing Law/Jurisdiction. This Agreement is governed by the laws of the State of Washington, and
the parties consent to exclusive jurisdiction and venue in the federal courts sitting in King County,
Washington, unless no federal subject matter jurisdiction exists, in which case the parties consent to
exclusive jurisdiction and venue in the Superior Court of King County, Washington. The parties waive all
defenses of lack of personal jurisdiction and forum non-conveniens.
5. Entire Agreement/Assignment. This Agreement is the entire agreement between the parties, and
supersedes any and all prior agreements, understandings or communications, written or oral, between
the parties relating to the subject matter hereof. This Agreement may be assigned by Microsoft.
—
Reply to this email directly, view it on GitHub<#51146 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BUMSCYHU6LWQWJMCC6QDE2L3HQ32TAVCNFSM6AAAAACBCL27H6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTANJQGM4DCMJZGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thank you, @jsquire. I've joined the public GitHub organization memberships as required and submitted the necessary permission requests. |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request creates a preview SDK release (version 20250515) for the Azure.AI.Language.Text.Authoring SDK. The PR updates the API specification reference and refreshes test data with new endpoints, project names, and API versions.
Reviewed Changes
Copilot reviewed 121 out of 130 changed files in this pull request and generated 1 comment.
- Updated API specification commit reference in
tsp-location.yaml
- Reorganized using statements in the test file for better readability
- Updated test data with new project names, container names, and API version endpoints
- Added new test methods for raw string import, model evaluation results, project export, and deployment retrieval
- Refreshed all session recordings with updated URLs, dates, and response data
File | Description |
---|---|
tsp-location.yaml |
Updates API specification commit hash to point to newer version |
TextAuthoringClientLiveTest.cs |
Reorganizes imports, updates test project names/containers, adds new test methods |
Session recording files | Updates all recorded test sessions with new API version, endpoints, and test data |
sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/tests/TextAuthoringClientLiveTest.cs
Outdated
Show resolved
Hide resolved
internal AzureAILanguageQuestionAnsweringContext() { } | ||
public static Azure.AI.Language.QuestionAnswering.AzureAILanguageQuestionAnsweringContext Default { get { throw null; } } | ||
protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } | ||
public AzureAILanguageQuestionAnsweringContext() { } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have changes here?
sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/CHANGELOG.md
Outdated
Show resolved
Hide resolved
|
||
### Features Added | ||
|
||
### Breaking Changes | ||
- Added import feature for raw json string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I understand, can you expand for which usecase. AFAI we do not have any new changes except the new API version for Text Auth
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, when we had bug bash session last time, Ashour mentioned we may need to add a function of importing Json String directly for Conversations Authoring SDK. If we only support importing structured object, it is not convenient when importing large json project.
So I added an import Json String to Conversation Authoring, and I also added the same function here in Text Authoring, because I think they have same concern.
Do you think it is acceptable? Thank you.
|1.0.0-beta.1 | 2022-05-01, 2023-04-01, 2023-11-15-preview, 2024-11-15-preview (default) | ||
|1.0.0-beta.2 | 2022-05-01, 2023-04-01, 2023-11-15-preview, 2024-11-15-preview, 2025-05-15-preview (default) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not have 2023-11-15-preview. Do we still have that?
You can familiarize yourself with different APIs using [Samples](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples). | ||
|
||
* [Create a New Project (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample1_TextAuthoring_CreateProject.md) | ||
* [Create a New Project (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample1_TextAuthoring_CreateProjectAsync.md) | ||
* [Import a Project (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample2_TextAuthoring_Import.md) | ||
* [Import a Project (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample2_TextAuthoring_ImportAsync.md) | ||
* [Export a Project (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample3_TextAuthoring_Export.md) | ||
* [Export a Project (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample3_TextAuthoring_ExportAsync.md) | ||
* [Get Project Details (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample4_TextAuthoring_GetProject.md) | ||
* [Get Project Details (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample4_TextAuthoring_GetProjectAsync.md) | ||
* [Delete a Project (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample5_TextAuthoring_DeleteProject.md) | ||
* [Delete a Project (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample5_TextAuthoring_DeleteProjectAsync.md) | ||
* [Train a Model (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample6_TextAuthoring_Train.md) | ||
* [Train a Model (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample6_TextAuthoring_TrainAsync.md) | ||
* [Cancel Training Job (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample7_TextAuthoring_CancelTrainingJob.md) | ||
* [Cancel Training Job (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample7_TextAuthoring_CancelTrainingJobAsync.md) | ||
* [Get Model Evaluation Summary (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample8_TextAuthoring_GetModelEvaluationSummary.md) | ||
* [Get Model Evaluation Summary (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample8_TextAuthoring_GetModelEvaluationSummaryAsync.md) | ||
* [Get Model Evaluation Results (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample9_TextAuthoring_GetModelEvaluationResults.md) | ||
* [Get Model Evaluation Results (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample9_TextAuthoring_GetModelEvaluationResultsAsync.md) | ||
* [Load Snapshot (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample10_TextAuthoring_LoadSnapshot.md) | ||
* [Load Snapshot (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample10_TextAuthoring_LoadSnapshotAsync.md) | ||
* [Delete a Trained Model (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample11_TextAuthoring_DeleteTrainedModel.md) | ||
* [Delete a Trained Model (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample11_TextAuthoring_DeleteTrainedModelAsync.md) | ||
* [Swap Deployments (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample12_TextAuthoring_SwapDeployments.md) | ||
* [Swap Deployments (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample12_TextAuthoring_SwapDeploymentsAsync.md) | ||
* [Delete a Deployment (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample13_TextAuthoring_DeleteDeployment.md) | ||
* [Delete a Deployment (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample13_TextAuthoring_DeleteDeploymentAsync.md) | ||
* [Deploy a Project (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample14_TextAuthoring_DeployProject.md) | ||
* [Deploy a Project (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample14_TextAuthoring_DeployProjectAsync.md) | ||
* [Get Deployment Details (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample15_TextAuthoring_GetDeployment.md) | ||
* [Get Deployment Details (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample15_TextAuthoring_GetDeploymentAsync.md) | ||
* [Assign Deployment Resources (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample16_TextAuthoring_AssignDeploymentResources.md) | ||
* [Assign Deployment Resources (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample16_TextAuthoring_AssignDeploymentResourcesAsync.md) | ||
* [Get Deployment Resources Assignment Status (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample17_TextAuthoring_GetAssignDeploymentResourcesStatus.md) | ||
* [Get Deployment Resources Assignment Status (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample17_TextAuthoring_GetAssignDeploymentResourcesStatusAsync.md) | ||
* [Unassign Deployment Resources (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample18_TextAuthoring_UnassignDeploymentResources.md) | ||
* [Unassign Deployment Resources (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample18_TextAuthoring_UnassignDeploymentResourcesAsync.md) | ||
* [Get Deployment Resources Unassignment Status (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample19_TextAuthoring_GetUnassignDeploymentResourcesStatus.md) | ||
* [Get Deployment Resources Unassignment Status (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample19_TextAuthoring_GetUnassignDeploymentResourcesStatusAsync.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These links should not be referring to your branch amber
. Use main. For the ones which are being added as part of this commit, I think we should be able to add them after merge.
string secondDeploymentName = "DeploymentB"; | ||
```C# Snippet:Sample12_TextAuthoring_SwapDeployments | ||
string projectName = "MySwapProject"; | ||
string firstDeploymentName = "Deployment1"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same applies here
```C# Snippet:CreateTextAuthoringClientForSpecificApiVersion | ||
Uri endpoint = new Uri("{endpoint}"); | ||
AzureKeyCredential credential = new AzureKeyCredential("{api-key}"); | ||
TextAnalysisAuthoringClientOptions options = new TextAnalysisAuthoringClientOptions(TextAnalysisAuthoringClientOptions.ServiceVersion.V2024_11_15_Preview); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to newest version
|
||
```C# Snippet:CreateTextAuthoringClientForSpecificApiVersion | ||
Uri endpoint = new Uri("{endpoint}"); | ||
AzureKeyCredential credential = new AzureKeyCredential("{api-key}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a code snippet on how to call with AAD? If so, you can either add it here, or add a link to the snipper
TextAnalysisAuthoringClient client = new TextAnalysisAuthoringClient(endpoint, credential, options); | ||
``` | ||
|
||
## Retrieve Deployment Details Asynchronously |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a separate file. Why not add to the same sample for sync?
The readme can be Retrieving Deployment Details in Azure AI Language Text
|
||
This sample demonstrates how to assign deployment resources synchronously using the `Azure.AI.Language.Text.Authoring` SDK. | ||
|
||
## Create an `AuthoringClient` using AAD Authentication |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we only have AAD, Let's have both Key and AAD in all pages. or just one common sample
@@ -22,9 +22,9 @@ public DataGenerationConnectionInfoKind(string value) | |||
_value = value ?? throw new ArgumentNullException(nameof(value)); | |||
} | |||
|
|||
private const string AzureOpenAIValue = "azureOpenAI"; | |||
private const string AzureOpenAIValue = "AzureOpenAI"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.