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] Localai Authorization key #1099

Closed
Dbone29 opened this issue Oct 19, 2023 · 2 comments · Fixed by #1495
Closed

[FEATURE] Localai Authorization key #1099

Dbone29 opened this issue Oct 19, 2023 · 2 comments · Fixed by #1495
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Dbone29
Copy link

Dbone29 commented Oct 19, 2023

Describe the feature you'd like
You can set one or more API_KEY= in the .env in localai. If this is set, the localai server requires an Authorisation: Bearer Token and thus no longer allows requests that do not have this header. It would be nice to be able to specify this token in flowise.

Additional context
This function exists since localai v1.24.0 and must be entered manually in the .env.

@HenryHengZJ HenryHengZJ added enhancement New feature or request help wanted Extra attention is needed labels Oct 20, 2023
@avin-kavish
Copy link
Contributor

@HenryHengZJ I can try this. Would it work if I implement it as a input to the nodes or should I have it as an .env setting?

@kkacsh321
Copy link
Contributor

I worked this out locally, and put up a PR here: #1495 that should satisfy this with any luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants