Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.47k stars 4.8k forks source link

[BUG] The EnhancementOptions property of AzureChatExtensionsOptions class should either be initialized or be settable. #41958

Open fwaris opened 9 months ago

fwaris commented 9 months ago

Library name and version

Azure.AI.OpenAI 1.0.0-beta.13

Describe the bug

https://github.com/Azure/azure-sdk-for-net/blob/86db5a7b325aefde3b401062c6f051e797fed85b/sdk/openai/Azure.AI.OpenAI/src/Custom/AzureChatExtensions/AzureChatExtensionsOptions.cs#L40

The EnhancementOptions property of AzureChatExtensionsOptions class should either be initialized or be settable.

Expected behavior

should be able set the property (note I am using F# here - not sure if C# behaves differently)

Actual behavior

Cannot set property

Reproduction Steps

let extCfg = AzureChatExtensionsOptions() let ocrCfg = AzureChatOCREnhancementConfiguration(enabled=true) extCfg.EnhancementOptions.Ocr <- ocrCfg

Environment

No response

github-actions[bot] commented 9 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.

github-actions[bot] commented 9 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.