Skip to content

Fix: Ollama connection by updating default endpoint #399

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

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

Conversation

AliYmn
Copy link
Contributor

@AliYmn AliYmn commented Mar 14, 2025

I made this pr because I've seen a lot of problems about "Connection Refused".

When using Ollama with Browser-Use, the default endpoint http://localhost:11434/ causes connection refused errors because the Docker container cannot access the host machine's localhost. This PR updates the default Ollama endpoint to use http://host.docker.internal:11434/, allowing the container to communicate with Ollama running on the host machine properly.

@warmshao
Copy link
Collaborator

Will this affect users who are not running with docker containers?

@AliYmn
Copy link
Contributor Author

AliYmn commented Mar 17, 2025

@warmshao In fact, since we set it as the default value, anyone can change it, the purpose here is to solve 90% of the cases because http://localhost:11434/ is used in this way. I think the default ‘http://localhost:11434/’ makes more sense than using it this way.

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.

2 participants