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

Open
lanmuz opened this issue Mar 4, 2025 · 3 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

📷 复现步骤

Image

the whole settings:
services: lobe-chat: image: lobehub/lobe-chat container_name: lobegrok restart: always ports: - '9023:3210' environment: DEFAULT_AGENT_CONFIG: "model=grok-beta;provider=XAI;params.max_tokens=1200;chatConfig.historyCount=0;chatConfig.enableMaxTokens=true;chatConfig.enableAutoCreateTopic=false;chatConfig.enableCompressThreshold=true;chatConfig.enableHistoryCount=true;" FEATURE_FLAGS: "-language_model_settings,-openai_api_key,-openai_proxy_url,-check_updates,-market,-speech_to_text,-knowledge_base,-clerk_sign_up,-edit_agent" ENABLED_OPENAI: 0 ENABLED_OLLAMA: 0 XAI_API_KEY: "xai-yHW*****7jRT" XAI_MODEL_LIST: -all,+grok-beta<1200> ACCESS_CODE: mememe

🚦 期望结果

I wanna the default page implement default xai/grok-beta as settings without extra click-choose setting

Image

📝 补充信息

No response

@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

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

2 participants