lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

[Request] Disabling the "Create Assistant" and "Edit Role" functions

Open hellimon1 opened this issue 1 year ago • 2 comments

🥰 Feature Description

Good evening, could you please tell me if it's possible to disable the function of creating a custom Agent and editing roles in the interface? I would like to only allow the use of specific Agents with certain functionality, restricting them in their responses. I have set up my own Agents store where I would like to add ready-made Agents tailored to specific functionality, such as a translator from Chinese to English that is limited to text translation only.

🧐 Proposed Solution

It would be ideal if such a capability could be available when deploying the application using variables.

For example: DISABLE_CREATE_USER_AGENT DISABLE_EDIT_ROLE

But overall, it would be sufficient if you could advise on which files need to be edited to disable the "Create Agent" and "Edit Agent" buttons, or alternatively, leave them but make them non-functional.

📝 Additional Information

No response

hellimon1 avatar Feb 22 '24 18:02 hellimon1

👀 @hellimon1

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot avatar Feb 22 '24 18:02 lobehubbot

I think we can have a feature of Features Flag Control to achieve this. There always some custom control demand about this.

arvinxx avatar Feb 23 '24 07:02 arvinxx

✅ @hellimon1

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot avatar Apr 26 '24 17:04 lobehubbot

:tada: This issue has been resolved in version 0.150.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

lobehubbot avatar Apr 26 '24 17:04 lobehubbot