Skip to content

Commit 9d7f78e

Browse files
committed
fix for alias variable name
1 parent 2865d79 commit 9d7f78e

File tree

1 file changed

+2
-2
lines changed
  • articles/ai-foundry/foundry-local/includes/use-langchain

1 file changed

+2
-2
lines changed

articles/ai-foundry/foundry-local/includes/use-langchain/javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ import { ChatPromptTemplate } from "@langchain/core/prompts";
3636
// to your end-user's device.
3737
// TIP: You can find a list of available models by running the
3838
// following command in your terminal: `foundry model list`.
39-
const modelAlias = "phi-3-mini-4k";
39+
const alias = "phi-3-mini-4k";
4040

4141
// Create a FoundryLocalManager instance. This will start the Foundry
4242
// Local service if it is not already running.
4343
const foundryLocalManager = new FoundryLocalManager()
4444

4545
// Initialize the manager with a model. This will download the model
4646
// if it is not already present on the user's device.
47-
const modelInfo = await foundryLocalManager.init(modelAlias)
47+
const modelInfo = await foundryLocalManager.init(alias)
4848
console.log("Model Info:", modelInfo)
4949

5050
// Configure ChatOpenAI to use your locally-running model

0 commit comments

Comments
 (0)