浏览代码

update example to use IP rather than localhost

Bruce MacDonald 1 年之前
父节点
当前提交
57fafae5d5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -205,7 +205,7 @@ A custom client can be created with the following fields:
 ```javascript
 import { Ollama } from 'ollama'
 
-const ollama = new Ollama({ host: 'http://localhost:11434' })
+const ollama = new Ollama({ host: 'http://127.0.0.1:11434' })
 const response = await ollama.chat({
   model: 'llama2',
   messages: [{ role: 'user', content: 'Why is the sky blue?' }],