Skip to content

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

Merged
McPatate merged 2 commits intohuggingface:mainfrom
Krakonos:add-api-key-to-ollama
Jun 4, 2025
Merged

feat: added api key support to ollama backend.#107
McPatate merged 2 commits intohuggingface:mainfrom
Krakonos:add-api-key-to-ollama

Conversation

@Krakonos
Copy link
Copy Markdown
Contributor

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 .

Copy link
Copy Markdown
Member

@McPatate McPatate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@McPatate McPatate merged commit dfc464b into huggingface:main Jun 4, 2025
0 of 12 checks passed
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