-
Notifications
You must be signed in to change notification settings - Fork 85
Document GitHub Models retirement #1606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,6 @@ description: Learn how to use the Aspire GitHub Models hosting integration to or | |
|
|
||
| import { Image } from 'astro:assets'; | ||
| import { Aside, Steps, Tabs, TabItem } from '@astrojs/starlight/components'; | ||
| import LearnMore from '@components/LearnMore.astro'; | ||
| import githubIcon from '@assets/icons/github-icon.png'; | ||
|
|
||
| <Image | ||
|
|
@@ -17,56 +16,36 @@ import githubIcon from '@assets/icons/github-icon.png'; | |
| data-zoom-off | ||
| /> | ||
|
|
||
| :::caution[Integration deprecated] | ||
| The GitHub Models service is **no longer available to new customers**. The `Aspire.Hosting.GitHub.Models` integration is sunset as of Aspire 13.5. All public APIs are marked `[Obsolete]` and the package no longer appears in `aspire add` output. The package will ship one final obsolete release on NuGet and will be removed entirely in a future version. For new and existing apps, use the [Azure AI Foundry integration](/integrations/cloud/azure/azure-ai-foundry/azure-ai-foundry-get-started/) instead, which provides access to a broad catalog of models — including OpenAI's GPT models — and supports local development with `RunAsFoundryLocal()`. See [microsoft/aspire#18402](https://github.com/microsoft/aspire/issues/18402) for details. | ||
| :::caution[GitHub Models retired] | ||
| [GitHub Models was retired for all customers on July 30, 2026](https://github.blog/changelog/2026-07-30-github-models-is-now-retired/). The `Aspire.Hosting.GitHub.Models` integration is discontinued. Its final release shipped with Aspire 13.5, and the integration will be removed after that release. Migrate new and existing apps to the [Microsoft Foundry integration](/integrations/cloud/azure/azure-ai-foundry/azure-ai-foundry-get-started/). The rest of this article is retained as a historical reference. For more information about the retired service, see the [GitHub Models documentation](https://docs.github.com/github-models). | ||
| ::: | ||
|
|
||
| This article is the reference for the Aspire GitHub Models hosting integration. It enumerates the AppHost APIs — with examples for both `AppHost.cs` and `apphost.mts` — that you use to model GitHub Model resources in your [`AppHost`](/get-started/app-host/) project. | ||
|
|
||
| If you're new to the GitHub Models integration, start with the [Get started with GitHub Models integrations](/integrations/ai/github-models/github-models-get-started/) guide. For how consuming apps read the connection information this page exposes, see [Connect to GitHub Models](../github-models-connect/). | ||
| For migration guidance, see [Migrate Aspire apps from GitHub Models](/integrations/ai/github-models/github-models-get-started/). For how consuming apps read the connection information this page exposes, see [Connect to GitHub Models](../github-models-connect/). | ||
|
|
||
| ## Installation | ||
|
|
||
| To start building an Aspire app that uses GitHub Models, install the [📦 Aspire.Hosting.GitHub.Models](https://www.nuget.org/packages/Aspire.Hosting.GitHub.Models) NuGet package: | ||
| The following examples pin the final [📦 Aspire.Hosting.GitHub.Models 13.5.1](https://www.nuget.org/packages/Aspire.Hosting.GitHub.Models/13.5.1) package for historical reference. The package is hidden from `aspire add` because the integration is discontinued. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The live NuGet feed lists
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Package version mismatch: The linked NuGet Versions tab lists |
||
|
|
||
| <Tabs syncKey="aspire-lang"> | ||
| <TabItem id="csharp" label="C#"> | ||
|
|
||
| ```bash title="Terminal" | ||
| aspire add github-models | ||
| ``` | ||
|
|
||
| <LearnMore> | ||
| Learn more about [`aspire add`](/reference/cli/commands/aspire-add/) in the command reference. | ||
| </LearnMore> | ||
|
|
||
| Or, choose a manual installation approach: | ||
|
|
||
| ```csharp title="AppHost.cs" | ||
| #:package Aspire.Hosting.GitHub.Models@* | ||
| #:package Aspire.Hosting.GitHub.Models@13.5.1 | ||
| ``` | ||
|
|
||
| ```xml title="AppHost.csproj" | ||
| <PackageReference Include="Aspire.Hosting.GitHub.Models" Version="*" /> | ||
| <PackageReference Include="Aspire.Hosting.GitHub.Models" Version="13.5.1" /> | ||
| ``` | ||
|
|
||
| </TabItem> | ||
| <TabItem id="typescript" label="TypeScript"> | ||
|
|
||
| ```bash title="Terminal" | ||
| aspire add github-models | ||
| ``` | ||
|
|
||
| <LearnMore> | ||
| Learn more about [`aspire add`](/reference/cli/commands/aspire-add/) in the command reference. | ||
| </LearnMore> | ||
|
|
||
| This updates your `aspire.config.json` with the GitHub Models hosting integration package: | ||
|
|
||
| ```json title="aspire.config.json" ins={3} | ||
| ```json title="aspire.config.json" | ||
| { | ||
| "packages": { | ||
| "Aspire.Hosting.GitHub.Models": "%ASPIRE_VERSION%" | ||
| "Aspire.Hosting.GitHub.Models": "13.5.1" | ||
| } | ||
| } | ||
| ``` | ||
|
|
@@ -325,7 +304,7 @@ For the full reference of GitHub Models connection properties — and how consum | |
|
|
||
| ## See also | ||
|
|
||
| - [Get started with the GitHub Models integrations](/integrations/ai/github-models/github-models-get-started/) | ||
| - [Migrate Aspire apps from GitHub Models](/integrations/ai/github-models/github-models-get-started/) | ||
| - [Connect to GitHub Models](/integrations/ai/github-models/github-models-connect/) | ||
| - [GitHub Models Marketplace](https://github.com/marketplace/models) | ||
| - [GitHub Models documentation](https://docs.github.com/github-models) | ||
Uh oh!
There was an error while loading. Please reload this page.