mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 17:15:23 -04:00
ConnectError #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @morteza-rp on GitHub (Jan 25, 2024).
what should i do?
ConnectError: [WinError 10061] No connection could be made because the target machine actively refused it
@mxyng commented on GitHub (Jan 25, 2024):
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:11434This 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