feat: allows admin to edit assistant actions #4591
Open
+58
−27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
The features allows ADMIN users to edit the actions of assistants, even if they are not the user who created the action.
The authorization is unlocked in the librechat.yaml assistants endpoint section.
The motivation is because admins can actually see all assistants whatever the filtering configured for other users, but they can't intervene with the actions which is rather limiting. The alternative is to modify directly the database to change the assistant 'user' field.
Change Type
Please delete any irrelevant options.
By default the feature is not activated, it takes effect only when the configuration is enabled in the librechat.yaml configuration.
The PR for the documentation is: LibreChat-AI/librechat.ai#155
Testing
I tested the ability, with an ADMIN user account to see, edit, and delete actions in assistants which were not created by the same account.
When the feature is disabled the ADMIN can see all the assistant but none of their actions.
Test Configuration:
Checklist
Please delete any irrelevant options.