lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
44.34k stars 9.94k forks source link

[Docs] Feedback for `self-hosting/environment-variables/basic` #3895

Closed imwito closed 1 month ago

imwito commented 1 month ago

📝 Reference

https://github.com/lobehub/lobe-chat/tree/main/docs/self-hosting/environment-variables/basic.zh-CN.mdx

🐛 Feedback

Hey there! The documentation is pretty outdated, and it would be awesome if it could be updated. Specifically, it would be super helpful to include details about environment variables like SYSTEM_AGENT. Right now, you can only find this info by digging through issues, which isn’t ideal. Clearer documentation would make it a lot easier for everyone to understand. Thanks!

lobehubbot commented 1 month ago

👀 @imwito

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

dosubot[bot] commented 1 month ago

Hey @imwito! I'm here to assist you with any bugs, questions, or contributions. Let's tackle this together!

The SYSTEM_AGENT environment variable is used to configure various system agents in LobeChat. It should be formatted as key-value pairs separated by commas, where each key-value pair is in the format key=provider/model. The keys must match those in the DEFAULT_SYSTEM_AGENT_CONFIG object, which includes agentMeta, queryRewrite, topic, and translation. Each key's value specifies the provider and model to be used.

Here is an example of how to format the SYSTEM_AGENT environment variable:

agentMeta=provider1/model1,queryRewrite=provider2/model2,topic=provider3/model3,translation=provider4/model4

The parseSystemAgent function processes this environment variable, ensuring it adheres to the required format and extracting the provider and model for each key [1][2][3].

Updating the documentation to include this information would indeed enhance clarity and usability for developers.

To continue talking to Dosu, mention @dosu.

lobehubbot commented 1 month ago

✅ @imwito

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