|
@@ -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?' }],
|