mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Getting ConnectError: [Errno 111] Connection refused #108
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 @MDABUSAYED on GitHub (Jun 30, 2024).
After installing Ollama Python library when I execute this code
import ollama response = ollama.chat(model='llama3', messages=[ { 'role': 'user', 'content': 'Why is the sky blue?', }, ]) print(response['message']['content'])Get following error previously -> "ConnectError: [Errno 111] Connection refused"
Now error change to -> "ResponseError: model 'llama3' not found, try pulling it first"
My python version 3.8.10
@ankitdata commented on GitHub (Jul 23, 2024):
@MDABUSAYED ,
Are you able to resolve this issue.
@MDABUSAYED commented on GitHub (Jul 23, 2024):
Yes.
@DanielAbdelNour commented on GitHub (Aug 20, 2024):
@MDABUSAYED how did you resolve it?