Skip to content

Merging changes from the internal fork #6508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 11, 2025

Conversation

joperezr
Copy link
Member

@joperezr joperezr commented Jun 10, 2025

This should be merged and not squashed.

Microsoft Reviewers: Open in CodeFlow

joperezr and others added 5 commits June 5, 2025 00:48
Getting ready for th 9.6 release

----
#### AI description  (iteration 1)
#### PR Classification
This PR prepares the repository for the 9.6 release by upgrading dependency versions and refining build pipeline configurations.

#### PR Summary
The PR updates key dependency versions and adjusts pipeline settings to support a stable 9.6 release build.
- `/eng/Version.Details.xml`: Upgraded dependency versions from 9.0.5 to 9.0.6 with corresponding SHA updates.
- `/eng/Versions.props`: Updated version properties for major dependencies (and LTS versions bumped to 8.0.17) while enabling package stabilization and setting DotNetFinalVersionKind to release.
- `/NuGet.config`: Revised package source definitions and disabled package source mappings for internal feeds.
- `/azure-pipelines.yml` & `/eng/pipelines/templates/BuildAndTest.yml`: Removed the CodeCoverage stage and added tasks to set up private feed credentials with integration tests temporarily skipped.
- `/Directory.Build.props`: Suppressed the NU1507 warning for internal branch builds.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
…tag (dotnet#6494)

This ports commit 04bd588 into the 9.6 release branch.

See: [Fix name of genai input/output tokens tag (dotnet#6494)](dotnet#6494)
Automated cherry-picks

----
#### AI description  (iteration 1)
#### PR Classification
This PR implements a new OpenAIAssistantChatClient along with updated streaming response handling and enhanced integration tests.

#### PR Summary
This update introduces a new chat client and refines conversation management and error handling for OpenAI responses while expanding test coverage. Key changes include:
- **`src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIAssistantChatClient.cs`**: Added a new experimental chat client that integrates with AssistantClient, supports streaming responses, tool result processing, and uses reflection to access internal endpoints.
- **`src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIResponseChatClient.cs`**: Updated response streaming logic to correctly propagate conversation IDs, attach raw representations, and improve error handling and role mapping.
- **`src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIClientExtensions.cs`**: Introduced an extension method to expose AssistantClient as an IChatClient, enabling direct integration with the new chat client.
- **Test files under `test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests` and related integration tests**: Added and modified tests to validate the new client functionality and updated response behavior.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
@joperezr
Copy link
Member Author

/azp run extensions-ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@joperezr joperezr requested a review from a team as a code owner June 10, 2025 22:49
<TemplatePackageVersion_MicrosoftExtensionsHttpResilience>$(Version)</TemplatePackageVersion_MicrosoftExtensionsHttpResilience>
<TemplatePackageVersion_MicrosoftExtensionsAI>9.6.0</TemplatePackageVersion_MicrosoftExtensionsAI>
<TemplatePackageVersion_MicrosoftExtensionsAI_Preview>9.6.0-preview.1.25310.2</TemplatePackageVersion_MicrosoftExtensionsAI_Preview>
<TemplatePackageVersion_MicrosoftExtensionsHttpResilience>9.6.0</TemplatePackageVersion_MicrosoftExtensionsHttpResilience>
Copy link
Member

Choose a reason for hiding this comment

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

This is just for the release/9.6 branch I guess?

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct, this will be undone on the PR against main.

@joperezr joperezr merged commit fd770a7 into dotnet:release/9.6 Jun 11, 2025
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants