Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Oct 17, 2025

This PR updates the Azure AI Foundry and GitHub Models integration documentation to use the newly added strongly-typed model constants, as requested in issue #5200.

Changes

Azure AI Foundry Integration

Previously, model deployments required hardcoded string values for model names, versions, and formats:

var chat = foundry.AddDeployment("chat", "Phi-4", "1", "Microsoft");

Now, developers can use strongly-typed AIFoundryModel constants:

var model = AIFoundryModel.Microsoft.Phi4;
var chat = foundry.AddDeployment("chat", model);

For local development with Foundry Local, the new AIFoundryModel.Local constants are now documented:

var model = AIFoundryModel.Local.Phi35Mini;
var chat = foundry.AddDeployment("chat", model);

GitHub Models Integration

Similarly, GitHub Models integration now uses GitHubModel constants:

var model = GitHubModel.OpenAI.OpenAIGpt4oMini;
var chat = builder.AddGitHubModel("chat", model);

Benefits

  • Type Safety: Prevents typos in model identifiers
  • IntelliSense Support: Auto-completion when selecting models
  • Better Organization: Constants grouped by publisher (Microsoft, OpenAI, DeepSeek, Cohere, etc.)
  • Improved Documentation: Clear examples showing recommended practices

Related

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • www.nuget.org
    • Triggering command: curl -sL REDACTED -o pkg.nupkg (dns block)
    • Triggering command: wget -q REDACTED -O pkg.zip (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Please create a draft PR to address @dotnet/docs-aspire/issues/5200 - the issue comment provides several links with very important and relevant information that should be taken into consideration when working on this issue.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.


Internal previews

📄 File 🔗 Preview link
docs/azureai/ai-integrations-compatibility-matrix.md Aspire AI integrations compatibility matrix
docs/azureai/azureai-foundry-integration.md "Aspire Azure AI Foundry integration (Preview)"
docs/github/github-models-integration.md Aspire GitHub Models integration (Preview)

Copilot AI and others added 2 commits October 17, 2025 14:40
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Address documentation issue 5200 Update Azure AI Foundry and GitHub Models documentation to use strongly-typed model constants Oct 17, 2025
@Copilot Copilot AI requested a review from IEvangelist October 17, 2025 14:48
Copilot finished work on behalf of IEvangelist October 17, 2025 14:48
@IEvangelist IEvangelist marked this pull request as ready for review October 21, 2025 15:21
@IEvangelist IEvangelist merged commit eed887a into release-13 Oct 21, 2025
5 of 6 checks passed
@IEvangelist IEvangelist deleted the copilot/address-issue-5200 branch October 21, 2025 20:01
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.

2 participants