Unverified Commit a27e419b authored by Carlos Gamez's avatar Carlos Gamez Committed by GitHub
Browse files

Update langchainjs.md (#2030)

Changed ollama.call() for ollama.invoke() as per deprecated documentation from langchain
parent e4d0db5a
......@@ -18,7 +18,7 @@ const ollama = new Ollama({
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);
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment