Skip to content

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