"doc/git@developer.sourcefind.cn:ox696c/ktransformers.git" did not exist on "d35d61f6a11d237097ef20c63167e31d6d6b0b8a"
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({ ...@@ -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);
``` ```
......
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