mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Unable to get ollama serve working #52
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 @harsham05 on GitHub (Mar 11, 2024).
I have installed Ollama on Ubuntu. I am unable to interact with it using the Ollama Python client.
When I try to interact with ollama in Python, I get a ResponseError. Thank you in advance.
@mxyng commented on GitHub (Mar 19, 2024):
Since this is a non-standard ollama port, you need to set either
OLLAMA_HOST=127.0.0.1:7656orollama.Client(host='127.0.0.1:7656')