Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgrep check prevents me from running using network ollama instance #2

Open
rwlove opened this issue Aug 12, 2024 · 2 comments
Open

Comments

@rwlove
Copy link

rwlove commented Aug 12, 2024

My ollama instance is running within my network at https://ollama.foo.com, but your pgrep check prevents me from using it becuause it assume the ollama instance is a local process. Can you check for ollama connectivity instead of a process listing search?

  if ! (( $(pgrep -f ollama | wc -l ) > 0 )); then
    echo "🚨: zsh-ollama-command failed as OLLAMA server NOT running!"
    echo "Please start it with 'brew services start ollama'"
    return 1;
  fi
@plutowang
Copy link
Owner

@rwlove Thank you for your feedback! I’ll definitely look into it. If you’d like to contribute, feel free to open a pull request.

@pu-007
Copy link

pu-007 commented Dec 29, 2024

The same issue. I run my ollama instance on Windows host while I use zsh in WSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants