feat(config): add option to hide global AI agent entry point

This commit is contained in:
jxxghp
2026-06-19 09:46:39 +08:00
parent e8f6e8647b
commit 60c7268301
2 changed files with 3 additions and 0 deletions

View File

@@ -688,6 +688,7 @@ async def get_user_global_setting(_: User = Depends(get_current_active_user_asyn
info = settings.model_dump(
include={
"AI_AGENT_ENABLE",
"AI_AGENT_HIDE_ENTRY",
"LLM_SUPPORT_AUDIO_INPUT",
"LLM_SUPPORT_AUDIO_OUTPUT",
"RECOGNIZE_SOURCE",

View File

@@ -552,6 +552,8 @@ class ConfigModel(BaseModel):
AI_AGENT_ENABLE: bool = False
# 合局AI智能体
AI_AGENT_GLOBAL: bool = False
# 是否隐藏前端全局智能体入口
AI_AGENT_HIDE_ENTRY: bool = False
# LLM提供商支持内置 provider以及从 models.dev 动态补充的平台)
LLM_PROVIDER: str = "deepseek"
# LLM模型名称