Skip to content

Handle Azure Open AI v1 response endpoint change and update README.md #324

Merged
desmarest merged 9 commits into
mainfrom
users/depfeife/azure-openai-v1-responses
Jun 22, 2026
Merged

Handle Azure Open AI v1 response endpoint change and update README.md #324
desmarest merged 9 commits into
mainfrom
users/depfeife/azure-openai-v1-responses

Conversation

@denzelpfeifer

Copy link
Copy Markdown
Contributor

No description provided.

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>
Copilot AI review requested due to automatic review settings June 17, 2026 23:40
@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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/responses via a new configuration options helper.
  • Remove ApiVersion from sample configuration since the provider no longer builds legacy ?api-version=... URLs.
  • Expand README instructions for acquiring a local BEARER_TOKEN and 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.

Comment thread dotnet/w365-computer-use/sample-agent/README.md
Comment thread dotnet/w365-computer-use/sample-agent/README.md Outdated
Comment thread dotnet/w365-computer-use/sample-agent/README.md
Comment thread dotnet/w365-computer-use/sample-agent/scripts/Get-CuaAgentUserToken.ps1 Outdated
Comment thread dotnet/w365-computer-use/sample-agent/scripts/Get-CuaAgentUserToken.ps1 Outdated
denzelpfeifer and others added 4 commits June 18, 2026 09:37
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>
Comment thread dotnet/w365-computer-use/sample-agent/scripts/Get-CuaAgentUserToken.ps1 Outdated
Default the helper to set BEARER_TOKEN and remove token stdout guidance/output paths.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread dotnet/w365-computer-use/sample-agent/README.md Outdated
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>
@desmarest desmarest enabled auto-merge (squash) June 19, 2026 23:57
@desmarest desmarest merged commit dc5d610 into main Jun 22, 2026
59 checks passed
@desmarest desmarest deleted the users/depfeife/azure-openai-v1-responses branch June 22, 2026 15:37
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.

9 participants