Explorar o código

update example to use IP rather than localhost

Bruce MacDonald hai 1 ano
pai
achega
57fafae5d5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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?' }],