.NET: Small fixes in README#4099
Merged
dmytrostruk merged 4 commits intomicrosoft:mainfrom Feb 20, 2026
Merged
Conversation
lokitoth
approved these changes
Feb 19, 2026
alliscode
approved these changes
Feb 19, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the .NET quickstart documentation to reflect the newer OpenAI “Responses” client API usage, aligning README examples with current SDK patterns.
Changes:
- Replace
.GetOpenAIResponseClient(...)with.GetResponsesClient(...)in README code samples. - Add
using OpenAI.Responses;where needed to make Responses types/extensions available. - Adjust .NET quickstart
usingblocks accordingly in both root anddotnet/READMEs.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| dotnet/README.md | Updates Azure OpenAI quickstart snippet to use GetResponsesClient and import OpenAI.Responses. |
| README.md | Updates root .NET quickstart snippets (OpenAI + Azure token auth) to use GetResponsesClient and import OpenAI.Responses. |
Comments suppressed due to low confidence (1)
README.md:150
- This snippet uses
new Uri(...)/Console.WriteLine(...)but doesn’t importSystem. Consider addingusing System;(or fully-qualifying) to keep the README example self-contained for users not using SDK implicit usings.
using System.ClientModel.Primitives;
using Azure.Identity;
using Microsoft.Agents.AI;
using OpenAI;
using OpenAI.Responses;
TaoChenOSU
approved these changes
Feb 19, 2026
TaoChenOSU
approved these changes
Feb 20, 2026
moonbox3
approved these changes
Feb 20, 2026
giles17
approved these changes
Feb 20, 2026
lokitoth
approved these changes
Feb 20, 2026
This was referenced Feb 23, 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.
Updated .NET README to use latest API.