Update langchainpy.md
base_url value for Ollama object creation is corrected.
This commit is contained in:
parent
22885aeaee
commit
4c33a9ac67
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ Then we can create a model and ask the question:
|
|||
|
||||
```python
|
||||
from langchain.llms import Ollama
|
||||
ollama = Ollama(base_url='[http://localhost:11434](http://localhost:11434/)',
|
||||
ollama = Ollama(base_url='http://localhost:11434',
|
||||
model="llama2")
|
||||
print(ollama("why is the sky blue"))
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue