Rename Responses DI extensions and remove passthroughs from OpenAIHostBuilderExtensions#1144
Draft
Rename Responses DI extensions and remove passthroughs from OpenAIHostBuilderExtensions#1144
Conversation
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>
Copilot created this pull request from a session on behalf of
joseharriaga
April 30, 2026 23:43
View session
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>
joseharriaga
reviewed
May 1, 2026
Comment on lines
+3
to
+4
| using ResponsesApiClient = OpenAI.Responses.ResponsesClient; | ||
| using ResponsesApiResult = OpenAI.Responses.ResponseResult; |
Collaborator
There was a problem hiding this comment.
@copilot What's the purpose of these using statements? I think you can remove them.
Contributor
Author
There was a problem hiding this comment.
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
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.
Renames the Responses DI extension container to
OpenAIResponsesHostBuilderExtensionsand removes the temporaryAddResponsesClient/AddKeyedResponsesClientpassthrough methods fromOpenAI.OpenAIHostBuilderExtensions.Changes Made
AddResponsesClientandAddKeyedResponsesClientfromOpenAI.OpenAIHostBuilderExtensionsOpenAI.Responsesdirectly for Responses client registrationOpenAIusingdirectives in the ASP.NET example during follow-up review feedbackValidation
OpenAIHostBuilderExtensionsTestsplayback test run passed