Skip to content

Commit 36c145d

Browse files
authored
Implement custom Foundry Local models list. (#12031)
1 parent 298c70f commit 36c145d

File tree

6 files changed

+747
-250
lines changed

6 files changed

+747
-250
lines changed

.github/workflows/update-ai-foundry-models copy.yml renamed to .github/workflows/update-ai-foundry-models.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
run: |
2222
set -e
2323
"$GITHUB_WORKSPACE/dotnet.sh" run GenModel.cs
24+
"$GITHUB_WORKSPACE/dotnet.sh" run GenModel.cs --local
2425
2526
- name: Create or update pull request
2627
uses: dotnet/actions-create-pull-request@e8d799aa1f8b17f324f9513832811b0a62f1e0b1

playground/AzureAIFoundryEndToEnd/AzureAIFoundryEndToEnd.AppHost/Program.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@
99
.RunAsFoundryLocal()
1010
;
1111

12-
var chat = foundry.AddDeployment("chat", AIFoundryModel.Microsoft.Phi4MiniReasoning);
12+
var model = foundry.Resource.IsEmulator
13+
? AIFoundryModel.Local.Phi4Mini
14+
: AIFoundryModel.Microsoft.Phi4MiniInstruct;
15+
16+
var hostedModel = AIFoundryModel.Microsoft.Phi4MiniReasoning;
17+
18+
var chat = foundry.AddDeployment("chat", model);
1319

1420
builder.AddProject<Projects.AzureAIFoundryEndToEnd_WebStory>("webstory")
1521
.WithExternalHttpEndpoints()

src/Aspire.Hosting.Azure.AIFoundry/AIFoundryModel.Generated.cs

Lines changed: 192 additions & 37 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)