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]: Per-workspace LLM credentials #1440

Open
atljoseph opened this issue May 17, 2024 · 1 comment
Open

[FEAT]: Per-workspace LLM credentials #1440

atljoseph opened this issue May 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@atljoseph
Copy link

How are you running AnythingLLM?

Docker (local)

What happened?

Ollama is main configured provider.
I have a workspace with Anthropic configured.
When I initialized the connection it let me put in an api key.
Can’t edit it any more…
The workaround is to go edit the main app settings to point at the specific provider where the api key needs to be updated.
Then, update the api key and save.
Then, change the provider back to Ollama, or something else and save.
Finally, go back to the workspace and test.
That’s a lot of steps.
Seems like each provider should have sandboxed credential storage.
if I was able to add the api key in a workspace, I should be able to edit it there.

IMG_1789
IMG_1788

Are there known steps to reproduce?

See description

@atljoseph atljoseph added the possible bug Bug was reported but is not confirmed or is unable to be replicated. label May 17, 2024
@timothycarambat timothycarambat changed the title [BUG]: Can’t update Anthropic or OpenAI api keys when workspace LLM preference differs from main app’s. [FEAT]: Per-workspace LLM credentials May 17, 2024
@timothycarambat timothycarambat added enhancement New feature or request and removed possible bug Bug was reported but is not confirmed or is unable to be replicated. labels May 17, 2024
@atljoseph
Copy link
Author

Yeah I now realize this can be hard to work into the usership model. The best approach to this would be to define a provider settings screen that could apply to both workspace and globally. An admin user would initialize the env and open up this screen to input the top level api keys for each LLM provider they use. It could be both OpenAI and anthropic, for example. The admin could even gate which providers show up in workspace dropdowns by checking boxes next to each provider. Then, anytime a workspace uses one of those providers, the corresponding key is used. At the workspace level, a non-admin user would just override/augment the admin settings by plugging a different API Key into this screen, if they wish. In cases where the admin api key might have issues, it might be valuable (or on the other hand potentially destructive) for a non-admin to go in and update the workspace key. Use case: customer facing chat bot out of tokens and admin not in town

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

No branches or pull requests

2 participants