Skip to content

add authentification for ollama instance #1473

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

Merged
merged 1 commit into from
May 19, 2025

Conversation

roumy
Copy link
Contributor

@roumy roumy commented May 19, 2025

What this Pull Request (PR) does

This PR allows to add a Authentication Bearer to ollama server.
It could be usefull for third party integration client that provide a remote and authentifcated ollama api access like OpenwebUi
https://docs.openwebui.com/getting-started/api-endpoints/#-ollama-api-proxy-support

Related issues

#1472

Copy link
Contributor

@ksylvan ksylvan left a comment

Choose a reason for hiding this comment

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

Looks good to me @eugeis

@@ -26,26 +28,41 @@ func NewClient() (ret *Client) {
}

ret.ApiUrl = ret.AddSetupQuestionCustom("API URL", true,
"Enter your Ollama URL (as a reminder, it is usually http://localhost:1234/v1')")
"Enter your Ollama URL (as a reminder, it is usually http://localhost:11434')")
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch!

@eugeis eugeis merged commit 941ccab into danielmiessler:main May 19, 2025
@roumy roumy deleted the add_authent_ollama branch May 20, 2025 01:41
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.

3 participants