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

feat: added api key support to ollama backend. #107

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

Conversation

Krakonos
Copy link

This PR adds api key support to the ollama backend. Ollama itself does not support any authentication (as far as I know), but it can easily be added by a reverse proxy or other software like Open WebUI, which proxies the ollama queries.

I tested against my local Open WebUI instance using http://myhost/ollama URL and seems to be working fine, in fact much better than raw ollama (I'm getting a lot of errors loading the model, though it already is loaded). This PR allows me to control access to my server using open webui and not to expose publicly the ollama instance.

Closes issue #106 .

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