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] I set default agent config value with both model key and provider key,but it does not work #6687

Closed
lanmuz opened this issue Mar 4, 2025 · 5 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@lanmuz
Copy link

lanmuz commented Mar 4, 2025

📦 部署环境

Docker

📦 部署模式

客户端模式(lobe-chat 镜像)

📌 软件版本

docker last

💻 系统环境

Ubuntu

🌐 浏览器

Chrome

🐛 问题描述

I set environment section:
DEFAULT_AGENT_CONFIG:
with both:
model=grok-beta;provider=XAI;

but when i run the compose,the default agent setting did not work as set:

Image
the default agent refer to gpt-4o-mini but not expect xai/grok-beta

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

👀 @lanmuz

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Mar 4, 2025

@lanmuz 你好! 我是Dosu,一个可以帮助你解决 bug、回答问题并成为贡献者的机器人。我会在此等候,随时为你提供帮助。

To resolve the issue with setting the default agent configuration in the "lobe-chat" application, ensure that the DEFAULT_AGENT_CONFIG environment variable is formatted correctly. The correct format should use forward slashes to separate the provider and model, like this:

DEFAULT_AGENT_CONFIG='provider=xai/model=grok-beta'

This format should help the application recognize and apply the default agent settings as intended without requiring additional manual selection [1].

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

@lanmuz
Copy link
Author

lanmuz commented Mar 4, 2025

@lanmuz 你好! 我是Dosu,一个可以帮助你解决 bug、回答问题并成为贡献者的机器人。我会在此等候,随时为你提供帮助。

To resolve the issue with setting the default agent configuration in the "lobe-chat" application, ensure that the DEFAULT_AGENT_CONFIG environment variable is formatted correctly. The correct format should use forward slashes to separate the provider and model, like this:

DEFAULT_AGENT_CONFIG='provider=xai/model=grok-beta'
This format should help the application recognize and apply the default agent settings as intended without requiring additional manual selection [1].

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

no,I set with docker-compose.yml file contain the content:
DEFAULT_AGENT_CONFIG: "provider=xai;model=grok-beta;params.max_tokens=1200;chatConfig.historyCount=0;chatConfig.enableMaxTokens=true;chatConfig.enableAutoCreateTopic=false;chatConfig.enableCompressThreshold=true;chatConfig.enableHistoryCount=true;"
but it still doesn't work

@lanmuz lanmuz closed this as completed Mar 5, 2025
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Mar 5, 2025
@lobehubbot
Copy link
Member

@lanmuz

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

@himekifee
Copy link

Did you solve your issue? May I know how?

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: Done
Development

No branches or pull requests

3 participants