@@ -32,15 +32,15 @@ import { FoundryLocalManager } from "foundry-local-sdk";
32
32
// to your end-user's device.
33
33
// TIP: You can find a list of available models by running the
34
34
// following command in your terminal: `foundry model list`.
35
- const modelAlias = " deepseek-r1-1.5b" ;
35
+ const alias = " deepseek-r1-1.5b" ;
36
36
37
37
// Create a FoundryLocalManager instance. This will start the Foundry
38
38
// Local service if it is not already running.
39
39
const foundryLocalManager = new FoundryLocalManager ()
40
40
41
41
// Initialize the manager with a model. This will download the model
42
42
// 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 )
44
44
console .log (" Model Info:" , modelInfo)
45
45
46
46
const openai = new OpenAI ({
@@ -83,15 +83,15 @@ import { FoundryLocalManager } from "foundry-local-sdk";
83
83
// to your end-user's device.
84
84
// TIP: You can find a list of available models by running the
85
85
// following command in your terminal: `foundry model list`.
86
- const modelAlias = " deepseek-r1-1.5b" ;
86
+ const alias = " deepseek-r1-1.5b" ;
87
87
88
88
// Create a FoundryLocalManager instance. This will start the Foundry
89
89
// Local service if it is not already running.
90
90
const foundryLocalManager = new FoundryLocalManager ()
91
91
92
92
// Initialize the manager with a model. This will download the model
93
93
// 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 )
95
95
console .log (" Model Info:" , modelInfo)
96
96
97
97
const openai = new OpenAI ({
@@ -133,15 +133,15 @@ import { FoundryLocalManager } from "foundry-local-sdk";
133
133
// to your end-user's device.
134
134
// TIP: You can find a list of available models by running the
135
135
// following command in your terminal: `foundry model list`.
136
- const modelAlias = " deepseek-r1-1.5b" ;
136
+ const alias = " deepseek-r1-1.5b" ;
137
137
138
138
// Create a FoundryLocalManager instance. This will start the Foundry
139
139
// Local service if it is not already running.
140
140
const foundryLocalManager = new FoundryLocalManager ()
141
141
142
142
// Initialize the manager with a model. This will download the model
143
143
// 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 )
145
145
console .log (" Model Info:" , modelInfo)
146
146
147
147
async function queryModel () {
@@ -176,15 +176,15 @@ import { FoundryLocalManager } from "foundry-local-sdk";
176
176
// to your end-user's device.
177
177
// TIP: You can find a list of available models by running the
178
178
// following command in your terminal: `foundry model list`.
179
- const modelAlias = " deepseek-r1-1.5b" ;
179
+ const alias = " deepseek-r1-1.5b" ;
180
180
181
181
// Create a FoundryLocalManager instance. This will start the Foundry
182
182
// Local service if it is not already running.
183
183
const foundryLocalManager = new FoundryLocalManager ()
184
184
185
185
// Initialize the manager with a model. This will download the model
186
186
// 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 )
188
188
console .log (" Model Info:" , modelInfo)
189
189
190
190
async function streamWithFetch () {
0 commit comments