Rename Responses DI extensions#1144
Conversation
Agent-Logs-Url: https://github.com/openai/openai-dotnet/sessions/4cd93409-bc35-4d49-8795-91587eca96ae Co-authored-by: joseharriaga <[email protected]>
Agent-Logs-Url: https://github.com/openai/openai-dotnet/sessions/4cd93409-bc35-4d49-8795-91587eca96ae Co-authored-by: joseharriaga <[email protected]>
Agent-Logs-Url: https://github.com/openai/openai-dotnet/sessions/9a854515-8fd4-4277-b215-a582fec0cb99 Co-authored-by: joseharriaga <[email protected]>
Agent-Logs-Url: https://github.com/openai/openai-dotnet/sessions/f9d52bd3-32d3-428b-a53c-18d7227184de Co-authored-by: joseharriaga <[email protected]>
There was a problem hiding this comment.
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.Responsesdirectly for Responses client registration. - Refreshed
OpenAI.Responsesexported 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. |
|
@copilot There are merge conflicts in the generated API listings. Sync to the latest and re-generate the API listings to resolve them. |
Agent-Logs-Url: https://github.com/openai/openai-dotnet/sessions/236a1d82-2140-4ab1-8d84-591933b180ab Co-authored-by: joseharriaga <[email protected]>
|
@copilot Sync to the latest and resolve the merge conflicts. |
Agent-Logs-Url: https://github.com/openai/openai-dotnet/sessions/27e03a28-f900-404e-8b26-b31afbcf2683 Co-authored-by: joseharriaga <[email protected]>
|
@copilot Sync to the latest from |
Agent-Logs-Url: https://github.com/openai/openai-dotnet/sessions/27e03a28-f900-404e-8b26-b31afbcf2683 Co-authored-by: joseharriaga <[email protected]>
…-host-builder-extensions # Conflicts: # api/OpenAI.Responses.net10.0.cs # api/OpenAI.Responses.net8.0.cs Co-authored-by: joseharriaga <[email protected]>
Synced to the latest
Synced to the latest |
Co-authored-by: joseharriaga <[email protected]>
Renames the Responses DI extension container to
OpenAIResponsesHostBuilderExtensions.Changes Made
AddResponsesClientandAddKeyedResponsesClientfromOpenAI.OpenAIHostBuilderExtensionsOpenAI.Responsesdirectly for Responses client registrationOpenAIusingdirectives in the ASP.NET example during follow-up review feedbackValidation
OpenAIHostBuilderExtensionsTestsplayback test run passed