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

Skip to content

Rename Responses DI extensions#1144

Merged
joseharriaga merged 12 commits into
mainfrom
copilot/rename-openai-host-builder-extensions
May 4, 2026
Merged

Rename Responses DI extensions#1144
joseharriaga merged 12 commits into
mainfrom
copilot/rename-openai-host-builder-extensions

Conversation

Copilot AI commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Renames the Responses DI extension container to OpenAIResponsesHostBuilderExtensions.

Changes Made

  • Removed AddResponsesClient and AddKeyedResponsesClient from OpenAI.OpenAIHostBuilderExtensions
  • Updated tests to reference the Responses-specific extension type directly
  • Updated the ASP.NET example to import OpenAI.Responses directly for Responses client registration
  • Refreshed the exported API surface files for OpenAI
  • Cleaned up unnecessary using directives in the ASP.NET example during follow-up review feedback

Validation

  • ✅ Baseline solution build completed successfully
  • ✅ Targeted OpenAIHostBuilderExtensionsTests playback test run passed
  • ✅ Example project build passed
  • ✅ Final validation completed with no review comments

Copilot AI requested a review from joseharriaga May 1, 2026 16:53
Comment thread examples/aspnet-core/Program.cs Outdated
Copilot AI changed the title Rename Responses DI extensions and expose passthroughs on OpenAIHostBuilderExtensions Rename Responses DI extensions and remove passthroughs from OpenAIHostBuilderExtensions May 1, 2026
Copilot AI requested a review from joseharriaga May 1, 2026 17:49
@joseharriaga joseharriaga marked this pull request as ready for review May 1, 2026 20:16
@joseharriaga joseharriaga requested a review from christothes as a code owner May 1, 2026 20:16
Copilot AI review requested due to automatic review settings May 1, 2026 20:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 renames the Responses DI extension container to OpenAIResponsesHostBuilderExtensions and removes the temporary passthrough DI methods from the OpenAI host builder extensions, updating downstream usage (tests/examples) and exported API files accordingly.

Changes:

  • Renamed the Responses DI extensions container type to OpenAIResponsesHostBuilderExtensions.
  • Updated DI tests and the ASP.NET Core example to reference OpenAI.Responses directly for Responses client registration.
  • Refreshed OpenAI.Responses exported API surface files to reflect the new type name.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/DependencyInjection/OpenAIHostBuilderExtensionsTests.cs Ensures tests compile against the Responses DI extensions without relying on removed OpenAI passthroughs (also normalizes file header/EOF formatting).
examples/aspnet-core/Program.cs Uses OpenAI.Responses directly for Responses client registration in the ASP.NET Core example.
api/OpenAI.Responses.netstandard2.0.cs Updates exported API to expose OpenAIResponsesHostBuilderExtensions instead of the prior name.
api/OpenAI.Responses.net8.0.cs Updates exported API to expose OpenAIResponsesHostBuilderExtensions (including Experimental annotation).
api/OpenAI.Responses.net10.0.cs Updates exported API to expose OpenAIResponsesHostBuilderExtensions (including Experimental annotation).
OpenAI.Responses/src/Custom/OpenAIResponsesHostBuilderExtensions.cs Renames the public DI extensions container type for the Responses package.

@joseharriaga joseharriaga changed the title Rename Responses DI extensions and remove passthroughs from OpenAIHostBuilderExtensions Rename Responses DI extensions May 1, 2026
@joseharriaga

Copy link
Copy Markdown
Collaborator

@copilot There are merge conflicts in the generated API listings. Sync to the latest and re-generate the API listings to resolve them.

Copilot AI commented May 1, 2026

Copy link
Copy Markdown
Contributor Author

@copilot There are merge conflicts in the generated API listings. Sync to the latest and re-generate the API listings to resolve them.

Synced the branch with origin/main, regenerated the API listings, and resolved the conflicts in 4dc1b19.

@joseharriaga

Copy link
Copy Markdown
Collaborator

@copilot Sync to the latest and resolve the merge conflicts.

Copilot AI requested review from Copilot and removed request for Copilot May 4, 2026 22:05
Copilot AI requested review from Copilot and removed request for Copilot May 4, 2026 22:08
@joseharriaga

Copy link
Copy Markdown
Collaborator

@copilot Sync to the latest from main and resolve the merge conflicts.

Copilot AI requested review from Copilot and removed request for Copilot May 4, 2026 22:11

Copilot AI commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Sync to the latest and resolve the merge conflicts.

Synced to the latest origin/main and resolved the merge conflicts in 80f1a83. I also pushed small follow-up cleanup commits while revalidating; current head is d5d35e2. No UI changes.

…-host-builder-extensions

# Conflicts:
#	api/OpenAI.Responses.net10.0.cs
#	api/OpenAI.Responses.net8.0.cs

Co-authored-by: joseharriaga <[email protected]>
Copilot AI requested review from Copilot and removed request for Copilot May 4, 2026 22:19

Copilot AI commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Sync to the latest and resolve the merge conflicts.

Synced to the latest main and resolved the merge conflicts in f7bae25. Re-ran the targeted validation afterward; no UI changes.

@copilot Sync to the latest from main and resolve the merge conflicts.

Synced to the latest main and resolved the merge conflicts in f7bae25. Re-ran the targeted validation afterward; no UI changes.

Comment thread specification/base/typespec/assistants/models.tsp Outdated
Comment thread specification/base/typespec/evals/models.tsp Outdated
Copilot AI requested review from Copilot and removed request for Copilot May 4, 2026 22:28
Copilot AI requested a review from joseharriaga May 4, 2026 22:29
@joseharriaga joseharriaga merged commit bc51c49 into main May 4, 2026
4 checks passed
@joseharriaga joseharriaga deleted the copilot/rename-openai-host-builder-extensions branch May 4, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants