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

[Bug] 禁用掉language_model_settings 这个 FEATURE FLAG 后,是否应该把模型列表里的设置也去掉? #6863

Open
breakstring opened this issue Mar 10, 2025 · 2 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@breakstring
Copy link

📦 部署环境

Docker

📦 部署模式

服务端模式(lobe-chat-database 镜像)

📌 软件版本

v1.70.2

💻 系统环境

macOS

🌐 浏览器

Edge

🐛 问题描述

在 FEATURE_FLAGS 里面 -language_model_settings 后,
在客户端的聊天对话框里,模型列表里可以通过点击设置按钮进入模型的设置界面

📷 复现步骤

Image

Image

Image

🚦 期望结果

如果设置了language_model_settings应该在客户端无法进入那个设置界面才对

📝 补充信息

当然,如果能在那个设置界面(及其子页面/对话)里做进一步的的鉴权判断就更完善了

@breakstring breakstring added the 🐛 Bug Something isn't working | 缺陷 label Mar 10, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Mar 10, 2025
Copy link

dosubot bot commented Mar 10, 2025

是的,当禁用 language_model_settings 这个 FEATURE FLAG 后,应该从模型列表中移除设置选项,并防止用户在客户端访问设置界面。要实现这一点,可以在 .env 文件中添加环境变量 FEATURE_FLAGS="-language_model_settings"。这样会限制用户只能使用启动 Docker 时预设的模型列表,从而在前端界面上禁用配置语言模型的功能[1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@arvinxx
Copy link
Contributor

arvinxx commented Mar 11, 2025

有道理,后面弄下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

3 participants
@breakstring @arvinxx and others