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 support for Bearer token in header for protected endpoints #43

Merged
merged 5 commits into from
Apr 7, 2024

Conversation

Sinan-Karakaya
Copy link

I added the support of Bearer token in the header for protected endpoints of Ollama. Here is what I did:

  • Added Bearer token settings property. If left empty, nothing special will happen
  • If it is not empty, we assume that the endpoint is protected. Therefore, we include the Bearer token in the header for all requests to the endpoint.

@ex3ndr
Copy link
Owner

ex3ndr commented Apr 7, 2024

Nice!

@ex3ndr ex3ndr merged commit 38544c1 into ex3ndr:main Apr 7, 2024
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