ollama / ollama-python

Ollama Python library
https://ollama.com
MIT License
2.75k stars 227 forks source link

ConnectError #27

Closed morteza-rp closed 5 months ago

morteza-rp commented 5 months ago

what should i do? ConnectError: [WinError 10061] No connection could be made because the target machine actively refused it

mxyng commented 5 months ago

It seems ollama is either not running or the client isn't configured to use a non-default host value. The default is http://127.0.0.1:11434

This library needs a running ollama instance. If one is running on a non-default host or port, you can configure the library by either creating a custom client ollama.Client(host='') or by setting OLLAMA_HOST