Skip to content

[Azure OpenAI] Re-generate based on latest TypeSpec with @access and @usage decorators#39909

Merged
joseharriaga merged 2 commits intoAzure:mainfrom
joseharriaga:Regen-Usage-And-Access
Nov 13, 2023
Merged

[Azure OpenAI] Re-generate based on latest TypeSpec with @access and @usage decorators#39909
joseharriaga merged 2 commits intoAzure:mainfrom
joseharriaga:Regen-Usage-And-Access

Conversation

@joseharriaga
Copy link
Member

@joseharriaga joseharriaga commented Nov 10, 2023

  1. I'm removing the custom Write method of AzureCognitiveSearchIndexFieldMappingOptions now that it is auto-generated.
  2. The custom Write method of AzureCognitiveSearchChatExtensionConfiguration had a property called "fieldMappings", but it was supposed to be "fieldsMapping" according to the TypeSpec. I'm fixing this as part of this change.
  3. The latest TypeSpec results in a constructor of AzureCognitiveSearchChatExtensionConfiguration going from internal to public, which would normally be okay except that this constructor contains the searchKey parameter. In the pattern that we adopted, users call the SetSearchKey method separately instead. I'm customizing this constructor to keep it internal.
  4. AzureCognitiveSearchChatExtensionConfiguration now has a ToRequestContent method. The code breaks with a compile time error saying that this hides the ToRequestContent method of its base class (i.e., AzureChatExtensionConfiguration). "To make the current member override that implementation, add the override keyword. Otherwise use the new keyword." I'm suppressing this generation.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@joseharriaga joseharriaga merged commit 49b1558 into Azure:main Nov 13, 2023
haiyuazhang pushed a commit to haiyuazhang/azure-sdk-for-net that referenced this pull request Mar 9, 2026
* add stackhcivm 2026-02-01-preview api

* fix snapshotstatus comments

* Add examples for stackhcivm 2026-02-01-preview

* address review comments regarding the header

* revert package-lock.json change

* revert package-lock.json change

---------

Co-authored-by: James Gu <gujames@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants