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 Credential, Optional LocalAI Auth, Model list env var #1495

Merged
merged 4 commits into from
Jan 14, 2024

Conversation

kkacsh321
Copy link
Contributor

@kkacsh321 kkacsh321 commented Jan 7, 2024

This PR enables an ability to store a LocalAI based API Key as a credential, then OPTIONALLY use that credential in the LocalAI Chat Model.

This is for those of us hosting LocalAI but have authorization turned on with api keys.

This mimics the code already in place for OpenAI API.

I believe this should address #1099 in full also 😉

Screenshot 2024-01-06 at 5 25 12 PM
Screenshot 2024-01-06 at 5 23 23 PM

No api key set: (LocalAI server set to not use api_key)
Screenshot 2024-01-08 at 5 49 11 PM

Credential api key set: (LocalAI server set to use api_key)
Screenshot 2024-01-08 at 5 44 34 PM

@HenryHengZJ HenryHengZJ linked an issue Jan 8, 2024 that may be closed by this pull request
@kkacsh321
Copy link
Contributor Author

@HenryHengZJ fixed some typos, and handling for embedding auth with LocalAI also. Sorry was working on it when you approved.

@HenryHengZJ
Copy link
Contributor

@HenryHengZJ fixed some typos, and handling for embedding auth with LocalAI also. Sorry was working on it when you approved.

awesome! thanks for the embedding part

@HenryHengZJ HenryHengZJ merged commit 5239b27 into FlowiseAI:main Jan 14, 2024
2 checks passed
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.

[FEATURE] Localai Authorization key
2 participants