Update langchainjs.md (#2030)

Changed ollama.call() for ollama.invoke() as per deprecated documentation from langchain
This commit is contained in:
Carlos Gamez 2024-04-16 06:37:30 +08:00 committed by GitHub
parent e4d0db5a97
commit a27e419b47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,7 +18,7 @@ const ollama = new Ollama({
model: "llama2", model: "llama2",
}); });
const answer = await ollama.call(`why is the sky blue?`); const answer = await ollama.invoke(`why is the sky blue?`);
console.log(answer); console.log(answer);
``` ```