Skip to content

Check if ollama server is running or not #405

@emilioMaddalena

Description

@emilioMaddalena

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions