You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Part 2 - Project Creation/README.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,13 +143,14 @@ For GitHub Models to work, you need to set up a connection string with a GitHub
143
143
> **Note:** This step requires a GitHub account. If you don't have one yet, please follow the instructions in [Part 1: Setup](../Part%201%20-%20Setup/README.md#step-2-create-a-github-account-if-needed) to create a GitHub account.
144
144
145
145
1. Create a GitHub token for accessing GitHub Models:
146
-
- Go to [https://github.com/settings/tokens](https://github.com/settings/tokens)
147
-
- Click "Generate new token (classic)"
148
-
- Give the token a description like "AI Models Access"
149
-
- Click "Generate token"
146
+
- Go to [https://github.com/settings/personal-access-tokens/new](https://github.com/settings/personal-access-tokens/new)
147
+
- Click "Generate new token" (fine-grained token)
148
+
- Enter a name for the token, such as "AI Models Access"
149
+
- Under **Permissions**, set **Models** to **Access: Read-only**
150
+
- Click "Generate token" at the bottom of the page
150
151
- Copy the generated token (you won't be able to see it again)
151
152
152
-
> **Note**: We're using classic tokens for simplicity. If you prefer fine-grained tokens, you'll need to specify the `models:read` scope. See the [GitHub Models announcement](https://github.blog/changelog/2025-05-15-modelsread-now-required-for-github-models-access/) for more details.
153
+
> **Note**: For additional guidance on configuring GitHub Models access, see the [Microsoft documentation quickstart](https://learn.microsoft.com/en-us/dotnet/ai/quickstarts/ai-templates?tabs=dotnet-cli%2Cconfigure-visual-studio%2Cconfigure-visual-studio-aspire&pivots=github-models#configure-access-to-github-models).
153
154
154
155
1. In the Solution Explorer, right-click on the `GenAiLab.AppHost` project and select "Manage User Secrets"
155
156
@@ -165,8 +166,6 @@ For GitHub Models to work, you need to set up a connection string with a GitHub
165
166
166
167
1. Save the `secrets.json` file.
167
168
168
-
> **Note:** GitHub Models now use the endpoint `models.github.ai`. While the previous endpoint `models.inference.ai.azure.com` is [still supported until October 2025](https://github.blog/changelog/2025-07-17-deprecation-of-azure-endpoint-for-github-models/), it's best to use the new endpoint now.
169
-
170
169
## Run the application
171
170
172
171
Now let's run the application and explore its features:
0 commit comments