Remove OpenAI Assistants API support - #7724
Merged
Merged
Conversation
The OpenAI Assistants API has been sunset. Remove the OpenAIAssistantsChatClient, MicrosoftExtensionsAIAssistantsExtensions, AssistantClient adapter extensions, associated diagnostic ID, public API baseline entries, and related tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
Pull request overview
Removes the repository’s OpenAI Assistants API integration surface area (client adapter, extension methods, diagnostic ID alias, API baseline entries, and tests) in response to the Assistants API being sunset.
Changes:
- Removed
OpenAIAssistantsChatClientand theAssistantClient.AsIChatClient(...)adapter extensions. - Removed Assistants-specific conversion extension and corresponding unit/integration tests.
- Updated shared diagnostic IDs and the
Microsoft.Extensions.AI.OpenAIpublic API baseline to drop Assistants-related entries.
File summaries
| File | Description |
|---|---|
| test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAIConversionTests.cs | Removes the Assistants function-tool conversion test and related using. |
| test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAIAssistantChatClientTests.cs | Deletes unit tests for the Assistants chat client adapter. |
| test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/OpenAIAssistantChatClientIntegrationTests.cs | Deletes integration tests and helper code specific to Assistants. |
| src/Shared/DiagnosticIds/DiagnosticIds.cs | Removes the Assistants-specific diagnostic ID alias constant. |
| src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIClientExtensions.cs | Removes AssistantClient adapter extension methods and Assistants dependency. |
| src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIAssistantsChatClient.cs | Deletes the Assistants-backed IChatClient implementation. |
| src/Libraries/Microsoft.Extensions.AI.OpenAI/MicrosoftExtensionsAIAssistantsExtensions.cs | Deletes the Assistants function-tool conversion extension method. |
| src/Libraries/Microsoft.Extensions.AI.OpenAI/Microsoft.Extensions.AI.OpenAI.json | Removes public API baseline entries for Assistants-related APIs. |
Review details
- Files reviewed: 8/8 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
jeffhandley
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The OpenAI Assistants API has been sunset. Remove the OpenAIAssistantsChatClient, MicrosoftExtensionsAIAssistantsExtensions, AssistantClient adapter extensions, associated diagnostic ID, public API baseline entries, and related tests.
Microsoft Reviewers: Open in CodeFlow