mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Support "ping" on client for the health endpoint #68
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 @jpmcb on GitHub (Apr 18, 2024).
Ollama supports a "health" endpoint at the root of the running server:
The biggest thing to note here is the 200 response and the returned "Ollama is running" response.
Also related:
Can ollama-python support a "ping" member on the client? I'd imagine this would hit the above endpoint and simply continue if 200 is returned. Otherwise, raise an error.
Happy to work on this if 👍🏼
@miratcan commented on GitHub (Nov 18, 2024):
I need this too