瀏覽代碼

Update langchainpy.md

base_url value for Ollama object creation is corrected.
Güvenç Usanmaz 1 年之前
父節點
當前提交
4c33a9ac67
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/tutorials/langchainpy.md

+ 1 - 1
docs/tutorials/langchainpy.md

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