Wouldn't it be useful to have a method to check if ollama is running (if the server is active) or not?
IMO it would make more sense to call it before say ollama.chat, instead of directly calling ollama.chat and having it throw a "httpx.ConnectError: [Errno 61] Connection refused".
Wouldn't it be useful to have a method to check if ollama is running (if the server is active) or not?
IMO it would make more sense to call it before say ollama.chat, instead of directly calling ollama.chat and having it throw a "httpx.ConnectError: [Errno 61] Connection refused".