Update langchainjs.md (#2030)
Changed ollama.call() for ollama.invoke() as per deprecated documentation from langchain
This commit is contained in:
parent
e4d0db5a97
commit
a27e419b47
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue