Browse Source

update example to use IP rather than localhost

Bruce MacDonald 1 year ago
parent
commit
57fafae5d5
1 changed files with 1 additions and 1 deletions
  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?' }],