Update langchainpy.md

base_url value for Ollama object creation is corrected.
This commit is contained in:
Güvenç Usanmaz 2023-08-14 12:12:56 +03:00 committed by GitHub
parent 22885aeaee
commit 4c33a9ac67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"))
```