mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-22 06:43:57 +00:00
Update langchainjs.md (#2030)
Changed ollama.call() for ollama.invoke() as per deprecated documentation from langchain
This commit is contained in:
@@ -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);
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user