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

fix: Improve Ollama client detection and error handling (#373) #672

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

erkinalp
Copy link

Implements robust Ollama client initialization with proper error handling and retry logic.

Changes:

  • Add connection retry logic with exponential backoff
  • Implement URL validation and connection testing
  • Add comprehensive error messages and logging
  • Support OLLAMA_HOST environment variable
  • Add test suite with mock testing

This PR addresses issue #373 by improving Ollama client detection and providing better error handling.

Link to Devin run: https://app.devin.ai/sessions/121045305ac0458bbdf2566092dbc1b2

- Add connection retry logic with exponential backoff
- Implement URL validation and connection testing
- Add comprehensive error messages and logging
- Support OLLAMA_HOST environment variable
- Add test suite with mock testing

Co-Authored-By: Erkin Alp Güney <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant