Open Aniirudh opened 1 month ago
You need to pass in an object to ollama.pull
. Like you do for most functions. You can see that in the documentation in the README for pull
- https://github.com/ollama/ollama-js?tab=readme-ov-file#pull
await ollama.pull({
model: "llama2",
});
`import ollama from 'ollama';
async function runChat() { try { // Pull the model first await ollama.pull('llama2');
} catch (error) { console.error('Error:', error); } }
runChat(); ` i am getting the below error when running the default code given in the docs, i tried to pull the model first, but even then i am receving the same error, can anyone help with this issue
node index.js