File tree Expand file tree Collapse file tree
granite-3_2-function-calling Expand file tree Collapse file tree Original file line number Diff line number Diff 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 =
You can’t perform that action at this time.
0 commit comments