Migrate Azure.AI.Language.QuestionAnswering.Inference to new generator #54332
+8,182
−3,297
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Migrates Azure.AI.Language.QuestionAnswering.Inference from the legacy AutoRest generator to the new
azure-typespec-http-client-csharpgenerator.Changes
Microsoft.TypeSpec.Generator.Customizationsnamespace:CodeGenMemberandCodeGenTypeattributesArgument.AssertNotNullinstead ofArgument.CheckNotNull(same behavior)Pipelineproperty instead of_pipelinefield in client constructorsIncludeAutorestDependencyfrom csproj (no longer needed)QuestionAnsweringModelFactorywrapper delegating to generatedLanguageQuestionAnsweringInferenceModelFactoryfor backward compatibilityNote
The upstream TypeSpec spec in azure-rest-api-specs has invalid emitter config options (
package-dir,package-name) for@azure-typespec/http-client-csharp. Worked around by fixing the downloaded tspconfig.yaml during generation.This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
Testing Guidelines
SDK Generation Guidelines
*.csprojandAssemblyInfo.csfiles have been updated with the new version of the SDK.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
iojs.org/usr/bin/curl curl --fail --compressed -q -L -s REDACTED -o -(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.