[release/13.2] Fix dashboard GitHub Copilot integration#15381
[release/13.2] Fix dashboard GitHub Copilot integration#15381joperezr merged 4 commits intorelease/13.2from
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15381Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15381" |
There was a problem hiding this comment.
Pull request overview
Fixes the Aspire Dashboard GitHub Copilot (GHCP) assistant integration by aligning package versions and tool/model configuration to current GHCP expectations.
Changes:
- Bumps
OpenAIto 2.8.0 and updatesMicrosoft.Extensions.AI.OpenAIversion. - Makes
resourceNamenon-nullable forGetStructuredLogsAsync/GetTracesAsynctool methods. - Adds
gpt-5.4to the assistant’s default model fallback list.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/Aspire.Dashboard/Model/Assistant/AssistantChatViewModel.cs | Updates default model preference order to include gpt-5.4. |
| src/Aspire.Dashboard/Model/Assistant/AssistantChatDataContext.cs | Updates AI tool method signatures for resourceName (now required). |
| eng/Versions.props | Updates Microsoft.Extensions.AI.OpenAI version used by the repo. |
| Directory.Packages.props | Updates the OpenAI NuGet package version to 2.8.0. |
| <!-- dotnet/extensions --> | ||
| <MicrosoftExtensionsAIVersion>10.2.0</MicrosoftExtensionsAIVersion> | ||
| <MicrosoftExtensionsAIOpenAIVersion>10.1.0-preview.1.25608.1</MicrosoftExtensionsAIOpenAIVersion> | ||
| <MicrosoftExtensionsAIOpenAIVersion>10.2.0-preview.1.26063.2</MicrosoftExtensionsAIOpenAIVersion> |
There was a problem hiding this comment.
(this comment shouldn't block - just me asking) There are stable versions of this package now, should we be using them instead?
https://www.nuget.org/packages/Microsoft.Extensions.AI.OpenAI
There was a problem hiding this comment.
I kept it in sync with Microsoft.Extensions.AI.OpenAI. We're using 10.2.0 for it, so using 10.2.0 preview. Can stablize when we update packages again.
src/Aspire.Dashboard/Model/Assistant/AssistantChatDataContext.cs
Outdated
Show resolved
Hide resolved
src/Aspire.Dashboard/Model/Assistant/AssistantChatDataContext.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
|
🎬 CLI E2E Test Recordings — 53 recordings uploaded (commit View recordings
📹 Recordings uploaded automatically from CI run #23301590151 |
|
Thanks a bunch for the quick turnaround on this @JamesNK ! |
Description
Fix dashboard GitHub Copilot integration:
resourceNameparameter required (non-nullable) forGetStructuredLogsAsyncandGetTracesAsynctool methods inAssistantChatDataContextAssistantChatViewModelThe core fix is changing
resourceNameto be non-nullable. I believe the issue is caused by Microsoft.OpenApi being updated to a newer version, and a change in the newer version is to provide the parametertypeas an array instead of a string. Code in VS breaks on the unexpected JSON.Changing resourceName to be non-nullable means
typestays a string.I've tested 13.2 dashboard GHCP works with 18.4.
Fixes #15311
Checklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue: