From 82bf30cb21670d6a8f6095d055dec6c320f8d3ad Mon Sep 17 00:00:00 2001 From: maanavd Date: Fri, 10 Apr 2026 13:12:01 -0400 Subject: [PATCH 1/3] refactor(www): SDK-first website refresh - Hero: Replace CLI install (winget/brew + foundry model run) with tabbed SDK install commands (pip/npm/dotnet/cargo) and per-language hello-world code snippets that show the full lifecycle - Features: Fix code example from wrong API (getCatalog().getModel('gpt-oss-20b')) to correct SDK pattern (catalog.getModel('qwen2.5-0.5b') + download/load/chat) - Download dropdown: Fix Rust package (foundry-local -> foundry-local-sdk), add WinML variants for all languages (pip/npm/dotnet/cargo) - Fix all docs links from azure/ai-foundry/foundry-local/ to azure/foundry-local/ - Update footer tagline to SDK-era messaging - Update config description and feature descriptions to reflect SDK-first positioning, ~20 MB runtime, EP management Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../lib/components/download-dropdown.svelte | 91 ++++++- www/src/lib/components/home/features.svelte | 28 +- www/src/lib/components/home/footer.svelte | 4 +- www/src/lib/components/home/hero.svelte | 2 +- www/src/lib/components/install-command.svelte | 245 +++++++++--------- www/src/lib/config.ts | 12 +- 6 files changed, 231 insertions(+), 151 deletions(-) diff --git a/www/src/lib/components/download-dropdown.svelte b/www/src/lib/components/download-dropdown.svelte index 9e52b3d4..f34b8190 100644 --- a/www/src/lib/components/download-dropdown.svelte +++ b/www/src/lib/components/download-dropdown.svelte @@ -39,9 +39,13 @@ windows: 'winget install Microsoft.FoundryLocal', macos: 'brew install microsoft/foundrylocal/foundrylocal', python: 'pip install foundry-local-sdk', + python_winml: 'pip install foundry-local-sdk-winml', javascript: 'npm install foundry-local-sdk', + javascript_winml: 'npm install foundry-local-sdk-winml', csharp: 'dotnet add package Microsoft.AI.Foundry.Local', - rust: 'cargo add foundry-local' + csharp_winml: 'dotnet add package Microsoft.AI.Foundry.Local.WinML', + rust: 'cargo add foundry-local-sdk', + rust_winml: 'cargo add foundry-local-sdk --features winml' }; let copiedItem = $state(null); @@ -122,7 +126,7 @@ - Install SDK + Install SDK (Cross-Platform) @@ -203,6 +207,89 @@ + + + Install SDK (Windows + WinML hardware acceleration) + + + + + + + + + + + + diff --git a/www/src/lib/components/home/features.svelte b/www/src/lib/components/home/features.svelte index e8c4c308..63f8e493 100644 --- a/www/src/lib/components/home/features.svelte +++ b/www/src/lib/components/home/features.svelte @@ -98,23 +98,26 @@
-
// Initialize & Load
+
// Initialize, download, load & chat
- const manager = + const mgr = FoundryLocalManager.create(config) + >({'{'} appName: 'my-app' {'}'})
- const model = manager.getCatalog().getModel('gpt-oss-20b'const model = await mgr.catalog.getModel('qwen2.5-0.5b')
await - model.load()| + model.download(); await model.load() +
+
+ const res = await model.createChatClient().completeChat(msgs)|