Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

shyamnamboodiripad
Copy link
Contributor

@shyamnamboodiripad shyamnamboodiripad commented Jul 15, 2025

This change is required to address the following error when running eval integration tests - looks like the version of OpenAI package referenced in the product code was incompatible with the preview version of Azure Open AI package referenced in the test code.

System.TypeLoadException
  HResult=0x80131522
  Message=Could not load type 'OpenAI.RealtimeConversation.RealtimeConversationClient' from assembly 'OpenAI, Version=2.2.0.0, Culture=neutral, PublicKeyToken=b4187f3e65366280'.
  Source=Azure.AI.OpenAI
  StackTrace:
   at Azure.AI.OpenAI.AzureOpenAIClientOptions.GetRawServiceApiValueForClient(Object client)
   at Azure.AI.OpenAI.Chat.AzureChatClient..ctor(ClientPipeline pipeline, String deploymentName, Uri endpoint, AzureOpenAIClientOptions options)
   at Azure.AI.OpenAI.AzureOpenAIClient.GetChatClient(String deploymentName)
   at Microsoft.Extensions.AI.Evaluation.Integration.Tests.Setup.CreateChatConfiguration() in Q:\src\extensions\test\Libraries\Microsoft.Extensions.AI.Evaluation.Integration.Tests\Setup.cs:line 19
Microsoft Reviewers: Open in CodeFlow

This change is required to address the following error when running eval integration tests - looks like the version of OpenAI package referenced in the product code was incompatible with the preview version of Azure Open AI package referenced in the test code.

```
System.TypeLoadException
  HResult=0x80131522
  Message=Could not load type 'OpenAI.RealtimeConversation.RealtimeConversationClient' from assembly 'OpenAI, Version=2.2.0.0, Culture=neutral, PublicKeyToken=b4187f3e65366280'.
  Source=Azure.AI.OpenAI
  StackTrace:
   at Azure.AI.OpenAI.AzureOpenAIClientOptions.GetRawServiceApiValueForClient(Object client)
   at Azure.AI.OpenAI.Chat.AzureChatClient..ctor(ClientPipeline pipeline, String deploymentName, Uri endpoint, AzureOpenAIClientOptions options)
   at Azure.AI.OpenAI.AzureOpenAIClient.GetChatClient(String deploymentName)
   at Microsoft.Extensions.AI.Evaluation.Integration.Tests.Setup.CreateChatConfiguration() in Q:\src\extensions\test\Libraries\Microsoft.Extensions.AI.Evaluation.Integration.Tests\Setup.cs:line 19
```
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Azure.AI.OpenAI package version from 2.2.0-beta.4 to 2.2.0-beta.5 in the test-only package references to resolve a TypeLoadException that was preventing eval integration tests from running. The error was caused by an incompatibility between the OpenAI package version used in production code and the Azure OpenAI preview package version used in tests.

  • Updates Azure.AI.OpenAI package version to resolve assembly loading conflicts

@github-actions github-actions bot added the area-ai Microsoft.Extensions.AI libraries label Jul 15, 2025
@shyamnamboodiripad shyamnamboodiripad enabled auto-merge (squash) July 15, 2025 03:05
@shyamnamboodiripad shyamnamboodiripad merged commit acf1d45 into dotnet:main Jul 15, 2025
7 checks passed
@shyamnamboodiripad shyamnamboodiripad deleted the update-aoai branch July 15, 2025 18:40
This was referenced Aug 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-ai Microsoft.Extensions.AI libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants