Skip to content

Rename Responses DI extensions and remove passthroughs from OpenAIHostBuilderExtensions#1144

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/rename-openai-host-builder-extensions
Draft

Rename Responses DI extensions and remove passthroughs from OpenAIHostBuilderExtensions#1144
Copilot wants to merge 4 commits intomainfrom
copilot/rename-openai-host-builder-extensions

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 30, 2026

Renames the Responses DI extension container to OpenAIResponsesHostBuilderExtensions and removes the temporary AddResponsesClient / AddKeyedResponsesClient passthrough methods from OpenAI.OpenAIHostBuilderExtensions.

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 and others added 2 commits April 30, 2026 23:38
Agent-Logs-Url: https://github.com/openai/openai-dotnet/sessions/4cd93409-bc35-4d49-8795-91587eca96ae

Co-authored-by: joseharriaga <45773732+joseharriaga@users.noreply.github.com>
Agent-Logs-Url: https://github.com/openai/openai-dotnet/sessions/4cd93409-bc35-4d49-8795-91587eca96ae

Co-authored-by: joseharriaga <45773732+joseharriaga@users.noreply.github.com>
Agent-Logs-Url: https://github.com/openai/openai-dotnet/sessions/9a854515-8fd4-4277-b215-a582fec0cb99

Co-authored-by: joseharriaga <45773732+joseharriaga@users.noreply.github.com>
Copilot AI requested a review from joseharriaga May 1, 2026 16:53
Comment thread examples/aspnet-core/Program.cs Outdated
Comment on lines +3 to +4
using ResponsesApiClient = OpenAI.Responses.ResponsesClient;
using ResponsesApiResult = OpenAI.Responses.ResponseResult;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot What's the purpose of these using statements? I think you can remove them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed them in 1888c74. The example now keeps only using OpenAI.Responses; and uses ResponsesClient / ResponseResult directly.

Agent-Logs-Url: https://github.com/openai/openai-dotnet/sessions/f9d52bd3-32d3-428b-a53c-18d7227184de

Co-authored-by: joseharriaga <45773732+joseharriaga@users.noreply.github.com>
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
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.

2 participants