Handle Azure Open AI v1 response endpoint change and update README.md #324
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Remove Azure OpenAI endpoint tests Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Revert unnecessary change in the read me Add script for token generation and update readme to state this information Update to achieve parity with private sample agent Add Microsoft copyright/MIT header Signed-off-by: Denzel Pfeifer <depfeife@microsoft.com>
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Windows 365 Computer Use .NET sample to use Azure OpenAI’s v1 Responses endpoint and refreshes local setup guidance (including a helper script to acquire the MCP bearer token).
Changes:
- Switch Azure OpenAI requests to
/openai/v1/responsesvia a new configuration options helper. - Remove
ApiVersionfrom sample configuration since the provider no longer builds legacy?api-version=...URLs. - Expand README instructions for acquiring a local
BEARER_TOKENand add a PowerShell helper script to fetch/set it.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| dotnet/w365-computer-use/sample-agent/scripts/Get-CuaAgentUserToken.ps1 | Adds helper script to acquire a CUA user token (and optionally set BEARER_TOKEN). |
| dotnet/w365-computer-use/sample-agent/README.md | Updates documentation for v1 Responses endpoint behavior and local token acquisition steps. |
| dotnet/w365-computer-use/sample-agent/ComputerUse/AzureOpenAIModelProviderOptions.cs | Introduces centralized config parsing and v1 Responses endpoint URL construction. |
| dotnet/w365-computer-use/sample-agent/ComputerUse/AzureOpenAIModelProvider.cs | Simplifies provider initialization by using the new options helper. |
| dotnet/w365-computer-use/sample-agent/appsettings.json | Removes ApiVersion setting from sample config. |
desmarest
reviewed
Jun 17, 2026
desmarest
reviewed
Jun 17, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Update the local CUA token helper and README guidance to address PR feedback around token output, secret handling, scope wording, and model configuration. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
denzelpfeifer
commented
Jun 18, 2026
denzelpfeifer
commented
Jun 18, 2026
Default the helper to set BEARER_TOKEN and remove token stdout guidance/output paths. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
denzelpfeifer
commented
Jun 18, 2026
Remove README wording that no longer fits the token helper behavior after defaulting to BEARER_TOKEN assignment. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
GiovanniBenitez
approved these changes
Jun 18, 2026
desmarest
approved these changes
Jun 18, 2026
GiovanniBenitez
approved these changes
Jun 19, 2026
MohamedAbdekader
approved these changes
Jun 19, 2026
gwharris7
approved these changes
Jun 20, 2026
ajmfehr
approved these changes
Jun 20, 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.
No description provided.