Skip to content

[BUG] System.TypeLoadException : Could not load type 'OpenAI.RealtimeConversation.RealtimeConversationClient' from assembly 'OpenAI, Version=2.2.0.0 #51124

@hemnaathR

Description

@hemnaathR

Library name and version

Azure.AI.OpenAI need stable 2.2.0 based on OpenAI stable 2.2.0

Describe the bug

Need a stable 2.2.0 version based off OpenAI stable 2.20 version.

Using Azure.AI.OpenAI 2.2.0-beta.4 with OpenAI version 2.2.0, the following throws an exception

        var responseAPIClient = _azureOpenAIClient.GetOpenAIResponseClient("gpt-4o");
System.TypeLoadException : Could not load type 'OpenAI.RealtimeConversation.RealtimeConversationClient' from assembly 'OpenAI, Version=2.2.0.0, Culture=neutral, PublicKeyToken=b4187f3e65366280'.

Stack Trace: 
AzureOpenAIClientOptions.GetRawServiceApiValueForClient(Object client)
AzureOpenAIResponseClient.ctor(ClientPipeline pipeline, String deploymentName, Uri endpoint, AzureOpenAIClientOptions options)
AzureOpenAIClient.GetOpenAIResponseClient(String deploymentName)

Expected behavior

No Type Load Exception

Actual behavior

System.TypeLoadException : Could not load type 'OpenAI.RealtimeConversation.RealtimeConversationClient' from assembly 'OpenAI, Version=2.2.0.0, Culture=neutral, PublicKeyToken=b4187f3e65366280'.

Reproduction Steps

<PackageReference Include="OpenAI" Version="2.2.0" />
<PackageReference Include="Azure.AI.OpenAI" Version="2.2.0-beta.4" />
  var  _azureOpenAIClient = new AzureOpenAIClient(
       new Uri("..."),
       new ApiKeyCredential(...)
   );
   var responseAPIClient = _azureOpenAIClient.GetOpenAIResponseClient("gpt-4o");

Environment

No response

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