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

📖 docs: Note on 'host.docker.internal' for Ollama Config #2274

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

kinnla
Copy link
Contributor

@kinnla kinnla commented Apr 2, 2024

Summary

The docs suggest a URL to access ollama ("http://localhost:11434/v1/") that is not working. This pull request fixes the URL to "http://localhost:11434/v1/chat/completions"

Additionally there is an issue on Mac and Windows when accessing localhost from a docker container. It will not be found as the container is run in a VM. So in this case, you should use 'host.docker.internal' instead. I added this as a comment.

Thanks to Berry from the discord for his support!

Change Type

  • Documentation update

Testing

I tested the URL "http://host.docker.internal:11434/v1/chat/completions" on my machine, with the ollama version 0.1.30

@danny-avila
Copy link
Owner

Thanks for this, glad you figured it out

relevant resources on docker networking:
https://huzaima.io/blog/connect-localhost-docker
https://stackoverflow.com/questions/64763147/access-a-localhost-running-in-windows-from-inside-wsl-2 (mainly for windows, since docker users wsl2 and works similar to how wsl2 routes the network)

@danny-avila danny-avila changed the title docs: update URL to access ollama and comment on 'host.docker.internal' 📖 docs: Note on 'host.docker.internal' for Ollama Config Apr 2, 2024
@danny-avila danny-avila merged commit ed17e17 into danny-avila:main Apr 2, 2024
kenshinsamue pushed a commit to intelequia/LibreChat that referenced this pull request Sep 17, 2024
…#2274)

* docs: update URL to access ollama and comment on 'host.docker.internal'

* Update ai_endpoints.md

---------

Co-authored-by: Danny Avila <[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.

2 participants