[Bug] 环境变量设置默认模型,前端UI不生效 #6481
-
📦 部署环境Docker 📦 部署模式服务端模式(lobe-chat-database 镜像) 📌 软件版本v1.53.12 💻 系统环境macOS 🌐 浏览器Chrome 🐛 问题描述设置了 DEFAULT_AGENT_CONFIG: "model=deepseek-chat" ,打开网页前端依然显示gpt-4o-mini 📷 复现步骤设置 DEFAULT_AGENT_CONFIG: "model=deepseek-chat" 部署启动即可,打开网页 🚦 期望结果显示环境变量配置的默认值 📝 补充信息No response |
Beta Was this translation helpful? Give feedback.
Replies: 15 comments
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
📦 Deployment environmentDocker 📦 Deployment modeServer-side mode (lobe-chat-database mirror) 📌 Software versionv1.53.12 💻 System environmentmacOS 🌐 BrowserChrome 🐛 Question descriptionDEFAULT_AGENT_CONFIG: "model=deepseek-chat" is set, and the front end of the web page still displays gpt-4o-mini 📷 Reproduction stepsSet DEFAULT_AGENT_CONFIG: "model=deepseek-chat" Deployment starts and opens the web page 🚦 Expected resultsDisplay the default values for environment variable configuration 📝 Supplementary informationNo response |
Beta Was this translation helpful? Give feedback.
-
@hamishliu 你好! 我是Dosu,一个可以帮你解决bug、回答问题,并成为贡献者的机器人。我会在这里帮助你,等待人类维护者的到来。祝你有愉快的一天! 🤖 A similar issue was reported where the front-end UI of LobeChat displayed "gpt-4o-mini" instead of the default model set in the If you are experiencing this issue in version 1.53.12, consider checking your configuration to ensure it includes the necessary provider details. If the problem persists, a page refresh might be required to apply the configured default model due to caching mechanisms in the front-end [3]. 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 |
Beta Was this translation helpful? Give feedback.
-
好像重启后第一次都会这样,刷新下就好了 |
Beta Was this translation helpful? Give feedback.
-
It seems like this will happen for the first time after restarting, just refresh it |
Beta Was this translation helpful? Give feedback.
-
清一下缓存就好了 |
Beta Was this translation helpful? Give feedback.
-
Just clear the cache |
Beta Was this translation helpful? Give feedback.
-
不会好,问题一直存在,把enabled_openai和enabled_ollama关闭,顶部模型列表就出不来了,但是可以在设置里选择一个模型,系统在设置里把模型提供商写死了,比如我设置千问的qwen-turbo-latest作为默认模型,在设置里会自动显示成“openai/qwen-turbo-latest”😂,到现在这个问题还没修复。 |
Beta Was this translation helpful? Give feedback.
-
It won't be good, the problem always exists. Turn off enabled_openai and enabled_ollama, and the top model list will not be available, but you can select a model in the settings. The system will write the model provider to death in the settings, for example, I set up Qianwen. As the default model, qwen-turbo-latest will automatically display as "openai/qwen-turbo-latest" in the settings. This problem has not been fixed yet. |
Beta Was this translation helpful? Give feedback.
-
是的,他只会选择openai的供应商,然后调用环境里设置的默认模型。注册一个新账号登录,可以直接看到这个bug。 |
Beta Was this translation helpful? Give feedback.
-
Yes, he will only select the vendor of openai and then call the default model set in the environment. Register a new account to log in and you can directly see this bug. |
Beta Was this translation helpful? Give feedback.
-
I understand, you have to write this |
Beta Was this translation helpful? Give feedback.
-
我知道了,你要这样设置DEFAULT_AGENT_CONFIG=provider=google;model=gemini-2.0-flash-exp |
Beta Was this translation helpful? Give feedback.
-
I understand, you need to set DEFAULT_AGENT_CONFIG=provider=google;model=gemini-2.0-flash-exp |
Beta Was this translation helpful? Give feedback.
我知道了,你要这样设置DEFAULT_AGENT_CONFIG=provider=google;model=gemini-2.0-flash-exp