You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Error: ResponseError: invalid model name
at checkOk (file:///C:/Users//Desktop/ollama/node/node_modules/ollama/dist/shared/ollama.7987ad93.mjs:70:9)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async post (file:///C:/Users//Desktop/ollama/node/node_modules/ollama/dist/shared/ollama.7987ad93.mjs:117:3)
at async Ollama.processStreamableRequest (file:///C:/Users//Desktop/ollama/node/node_modules/ollama/dist/shared/ollama.7987ad93.mjs:249:22)
at async runChat (file:///C:/Users//Desktop/ollama/node/index.js:16:6) {
error: 'invalid model name',
status_code: 400
}
The text was updated successfully, but these errors were encountered:
`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
Error: ResponseError: invalid model name
at checkOk (file:///C:/Users//Desktop/ollama/node/node_modules/ollama/dist/shared/ollama.7987ad93.mjs:70:9)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async post (file:///C:/Users//Desktop/ollama/node/node_modules/ollama/dist/shared/ollama.7987ad93.mjs:117:3)
at async Ollama.processStreamableRequest (file:///C:/Users//Desktop/ollama/node/node_modules/ollama/dist/shared/ollama.7987ad93.mjs:249:22)
at async runChat (file:///C:/Users//Desktop/ollama/node/index.js:16:6) {
error: 'invalid model name',
status_code: 400
}
The text was updated successfully, but these errors were encountered: