Skip to content

Conversation

MackinnonBuck
Copy link
Member

@MackinnonBuck MackinnonBuck commented Jul 28, 2025

Updates the "AI Chat Web" project template to use Aspire Azure hosting integrations.

Fixes #6211

Microsoft Reviewers: Open in CodeFlow

@github-actions github-actions bot added the area-ai-templates Microsoft.Extensions.AI.Templates label Jul 28, 2025
@jeffhandley
Copy link
Member

Looks clean to me, @MackinnonBuck. I presume you're seeking some feedback from folks with Aspire expertise; beyond that, what input/feedback/testing would be helpful for you on this?

@MackinnonBuck MackinnonBuck requested a review from eerhardt July 29, 2025 17:55
@MackinnonBuck MackinnonBuck marked this pull request as ready for review July 29, 2025 19:41
@Copilot Copilot AI review requested due to automatic review settings July 29, 2025 19:41
@MackinnonBuck MackinnonBuck requested a review from a team as a code owner July 29, 2025 19:41
Copy link
Contributor

@Copilot Copilot AI left a comment

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 AI Chat Web project template to use Aspire Azure hosting integrations instead of manual connection string configuration. This modernizes the template to leverage automatic Azure resource provisioning capabilities.

  • Replaces manual connection string configuration with Azure hosting integrations
  • Updates multiple package versions to latest compatible releases
  • Simplifies configuration process by using local provisioning patterns

Reviewed Changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated no comments.

File Description
GeneratedContent.targets Updates package version properties for Aspire, Azure, and Semantic Kernel dependencies
Various .csproj files Bumps package versions and adds new Azure.AI.OpenAI dependency
Program.cs files Replaces connection string usage with Azure hosting integration methods
README.md files Updates configuration instructions to use local provisioning instead of manual setup
Comments suppressed due to low confidence (1)

@MackinnonBuck
Copy link
Member Author

I presume you're seeking some feedback from folks with Aspire expertise; beyond that, what input/feedback/testing would be helpful for you on this?

Thanks @jeffhandley - If others are interesting in trying out the new Aspire + Azure OpenAI + Azure AI search template, that would be helpful to validate that I didn't miss any steps in the README. But I would say additional testing isn't a hard requirement before the PR merges; I was able to manually validate the changes myself 🙂

@MackinnonBuck
Copy link
Member Author

cc @eerhardt, @JamesNK, @davidfowl - I would appreciate getting some eyes on the Aspire-related changes 🙂

@davidfowl
Copy link
Member

Update to 9.4

Copy link
Member

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

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

Bumping to 9.4 makes sense before merge, but otherwise this looks great, @MackinnonBuck.

@davidfowl
Copy link
Member

@sebastienros can you review this ?

@MackinnonBuck MackinnonBuck merged commit 563a09f into main Aug 12, 2025
6 checks passed
@MackinnonBuck MackinnonBuck deleted the mbuck/use-hosting-integration branch August 12, 2025 16:41
@MackinnonBuck
Copy link
Member Author

/backport to release/9.8

Copy link
Contributor

Started backporting to release/9.8: https://github.com/dotnet/extensions/actions/runs/16915159510

Copy link
Contributor

@MackinnonBuck backporting to "release/9.8" failed, the patch most likely resulted in conflicts:

$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Use hosting integrations
Applying: Update README
Applying: Update to Aspire 9.4
Applying: Update snapshots
error: sha1 information is lacking or useless (test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.AzureOpenAI_Qdrant_Aspire.verified/aichatweb/aichatweb.Web/aichatweb.Web.csproj).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0004 Update snapshots
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@jeffhandley

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as resolved.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-ai-templates Microsoft.Extensions.AI.Templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Aspire hosting integration packages for chat template
4 participants