Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
4c33a9ac
Unverified
Commit
4c33a9ac
authored
Aug 14, 2023
by
Güvenç Usanmaz
Committed by
GitHub
Aug 14, 2023
Browse files
Update langchainpy.md
base_url value for Ollama object creation is corrected.
parent
22885aea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/tutorials/langchainpy.md
docs/tutorials/langchainpy.md
+1
-1
No files found.
docs/tutorials/langchainpy.md
View file @
4c33a9ac
...
@@ -18,7 +18,7 @@ Then we can create a model and ask the question:
...
@@ -18,7 +18,7 @@ Then we can create a model and ask the question:
```
python
```
python
from
langchain.llms
import
Ollama
from
langchain.llms
import
Ollama
ollama
=
Ollama
(
base_url
=
'
[
http://localhost:11434
](http://localhost:11434/)
'
,
ollama
=
Ollama
(
base_url
=
'http://localhost:11434'
,
model
=
"llama2"
)
model
=
"llama2"
)
print
(
ollama
(
"why is the sky blue"
))
print
(
ollama
(
"why is the sky blue"
))
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment