Skip to content

Commit 2865d79

Browse files
committed
fix alias in js integrate
1 parent a86d902 commit 2865d79

File tree

1 file changed

+8
-8
lines changed
  • articles/ai-foundry/foundry-local/includes/integrate-examples

1 file changed

+8
-8
lines changed

articles/ai-foundry/foundry-local/includes/integrate-examples/javascript.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
3939
const 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)
4444
console.log("Model Info:", modelInfo)
4545

4646
const 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.
9090
const 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)
9595
console.log("Model Info:", modelInfo)
9696

9797
const 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.
140140
const 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)
145145
console.log("Model Info:", modelInfo)
146146

147147
async 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.
183183
const 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)
188188
console.log("Model Info:", modelInfo)
189189

190190
async function streamWithFetch() {

0 commit comments

Comments
 (0)