Skip to content

Commit 815a8df

Browse files
committed
feat: granite-function-calling ollama comments
1 parent 1fa9a94 commit 815a8df

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

granite-3_2-function-calling/index.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ const assistant = async () => {
1919
});
2020
const stdioClient = await createMcpClient({name: 'blog.marcnuri.com', transport});
2121
try {
22-
// Model running locally with Podman Desktop AI Lab
22+
// Model running locally with Ollama
23+
// ollama run granite3.2:8b
24+
// OLLAMA_LOAD_TIMEOUT=600 OLLAMA_HOST=0.0.0.0 OLLAMA_CONTEXT_LENGTH=16384 ollama start
2325
const localGranite = createOpenAICompatible({
24-
baseURL: 'http://localhost:3000/'
26+
baseURL: 'http://localhost:11434/v1', // MacBook Ollama
2527
});
26-
const model = localGranite('ibm-granite/granite-3.2-8b-instruct');
28+
const model = localGranite('granite3.2:8b');
2729
const tools = await stdioClient.tools();
2830
// const systemPrompt = 'You are a helpful AI assistant.';
2931
const systemPrompt =

0 commit comments

Comments
 (0)