Skip to content

Types not found in Azure.AI.OpenAI #50781

@dg2k

Description

@dg2k

Library name and version

Azure.AI.OpenAI 2.2.0-beta.4

Describe the bug

Among others the following Types are non existent:

ChatRequestMessage
ChatRole
ChatCompletionsOptions
GetChatCompletionsAsync

Expected behavior

The missing Types must exist.

Actual behavior

Fails compilation due to errors of kind:

"The type or namespace name xxx could not be found."

Reproduction Steps

Having exhausted testing my own upgraded code (working under .NET MAUI 8.0) I decided to run an isolated test program which was actually suggested by Copilot.

Inspection of the DLL file by ILDasm.exe indeed confirms that the Types in question do not exist.

I reset the NuGet packages to make sure there are no conflicting ones.

I am of strong opinion that public API types like ChatRequestMessage, ChatRole, ChatCompletionsOptions, GetChatCompletionsAsync are missing from compiled DLLs for Azure.AI.OpenAI 2.2.0-beta.4.

The issue also exists with the stable version for the reported prerelease: Azure.AI.OpenAI 2.1.0.

Environment

.NET SDK Version: 10.0.100-preview.5.25277.114
OS Version: 10.0.27881

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue is related to a non-management packageOpenAIService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions