@@ -32,15 +32,15 @@ import { FoundryLocalManager } from "foundry-local-sdk";
3232// to your end-user's device.
3333// TIP: You can find a list of available models by running the
3434// following command in your terminal: `foundry model list`.
35- const modelAlias = " deepseek-r1-1.5b" ;
35+ const alias = " deepseek-r1-1.5b" ;
3636
3737// Create a FoundryLocalManager instance. This will start the Foundry
3838// Local service if it is not already running.
3939const foundryLocalManager = new FoundryLocalManager ()
4040
4141// Initialize the manager with a model. This will download the model
4242// if it is not already present on the user's device.
43- const modelInfo = await foundryLocalManager .init (modelAlias )
43+ const modelInfo = await foundryLocalManager .init (alias )
4444console .log (" Model Info:" , modelInfo)
4545
4646const openai = new OpenAI ({
@@ -83,15 +83,15 @@ import { FoundryLocalManager } from "foundry-local-sdk";
8383// to your end-user's device.
8484// TIP: You can find a list of available models by running the
8585// following command in your terminal: `foundry model list`.
86- const modelAlias = " deepseek-r1-1.5b" ;
86+ const alias = " deepseek-r1-1.5b" ;
8787
8888// Create a FoundryLocalManager instance. This will start the Foundry
8989// Local service if it is not already running.
9090const foundryLocalManager = new FoundryLocalManager ()
9191
9292// Initialize the manager with a model. This will download the model
9393// if it is not already present on the user's device.
94- const modelInfo = await foundryLocalManager .init (modelAlias )
94+ const modelInfo = await foundryLocalManager .init (alias )
9595console .log (" Model Info:" , modelInfo)
9696
9797const openai = new OpenAI ({
@@ -133,15 +133,15 @@ import { FoundryLocalManager } from "foundry-local-sdk";
133133// to your end-user's device.
134134// TIP: You can find a list of available models by running the
135135// following command in your terminal: `foundry model list`.
136- const modelAlias = " deepseek-r1-1.5b" ;
136+ const alias = " deepseek-r1-1.5b" ;
137137
138138// Create a FoundryLocalManager instance. This will start the Foundry
139139// Local service if it is not already running.
140140const foundryLocalManager = new FoundryLocalManager ()
141141
142142// Initialize the manager with a model. This will download the model
143143// if it is not already present on the user's device.
144- const modelInfo = await foundryLocalManager .init (modelAlias )
144+ const modelInfo = await foundryLocalManager .init (alias )
145145console .log (" Model Info:" , modelInfo)
146146
147147async function queryModel () {
@@ -176,15 +176,15 @@ import { FoundryLocalManager } from "foundry-local-sdk";
176176// to your end-user's device.
177177// TIP: You can find a list of available models by running the
178178// following command in your terminal: `foundry model list`.
179- const modelAlias = " deepseek-r1-1.5b" ;
179+ const alias = " deepseek-r1-1.5b" ;
180180
181181// Create a FoundryLocalManager instance. This will start the Foundry
182182// Local service if it is not already running.
183183const foundryLocalManager = new FoundryLocalManager ()
184184
185185// Initialize the manager with a model. This will download the model
186186// if it is not already present on the user's device.
187- const modelInfo = await foundryLocalManager .init (modelAlias )
187+ const modelInfo = await foundryLocalManager .init (alias )
188188console .log (" Model Info:" , modelInfo)
189189
190190async function streamWithFetch () {
0 commit comments