mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-21 23:44:31 +08:00
feat(config): add option to hide global AI agent entry point
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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模型名称
|
||||
|
||||
Reference in New Issue
Block a user