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

[Feature Request] Add API Key Ability #5

Open
iotemylabs opened this issue Sep 20, 2024 · 1 comment
Open

[Feature Request] Add API Key Ability #5

iotemylabs opened this issue Sep 20, 2024 · 1 comment

Comments

@iotemylabs
Copy link

Hi, first of all, great work!

In the Ollama server instance I have, I require the use of an API Key for each request in the header. In the documentation of this node, I don't see the ability to add an API Key for every call, could this be updated as a setting in a future release?

Thank you!

@jakubburkiewicz
Copy link
Owner

Hi @iotemylabs

Thank you for your kind words :)

First of all, could you let me know if sending an API Key is actually supported by Ollama.js (and Ollama itself), and I just forgot to implement it?
Or maybe you have a custom Ollama setup that supports receiving API Keys?
Alternatively, are you perhaps referring to a completely independent server that accepts requests and then forwards them to Ollama?

If it's the first case, please point me to where in the Ollama/Ollama.js documentation the API Key parameter is mentioned, and I'll be happy to correct my oversight as soon as possible.

The other two cases would fall outside the scope of this project.
The goal of this project is to stick strictly to the functionality provided by Ollama.js without going beyond what this library offers.

Of course, that doesn't mean I don't want to help. Maybe it’s just a matter of creating a new project that builds upon this one but adds the functionality needed for your specific use case.

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

No branches or pull requests

2 participants