[BUG] Attempting to use SetNewMaxCompletionTokensPropertyEnabled
in a new ChatCompletionOptions throws.
#48287
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
OpenAI
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Library name and version
Azure.AI.OpenAI 2.2.0-beta.1
Describe the bug
If we instantiate
ChatCompletionOptions
without enforcing a deserialization first, theadditionalProperties
internal field is not initialized (=null
) and attempting to run theSetNewMaxCompletionTokensPropertyEnable
extension method throws aArgumentNullException
.Reproduction
Exception
Workaround (Proving the serialization point above)
Expected behavior
No errors.
Actual behavior
Argument Null Exception
Reproduction Steps
Environment
.NET SDK:
Version: 9.0.103
Commit: 96da45d427
Workload version: 9.0.100-manifests.ea610b94
MSBuild version: 17.12.24+90b52dda6
Runtime Environment:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.103\
The text was updated successfully, but these errors were encountered: