feat: add openai-compatible model gateway
This commit is contained in:
@@ -56,17 +56,33 @@ DEFAULT_MENUS: tuple[MenuSpec, ...] = (
|
||||
"platform",
|
||||
20,
|
||||
"agent.manage",
|
||||
is_enabled=False,
|
||||
),
|
||||
MenuSpec(
|
||||
"platform.models",
|
||||
"模型与工具",
|
||||
"#/models",
|
||||
"模型渠道",
|
||||
"#/modelhub/providers",
|
||||
"settings",
|
||||
"platform",
|
||||
30,
|
||||
"model.manage",
|
||||
is_enabled=False,
|
||||
),
|
||||
MenuSpec(
|
||||
"platform.skills",
|
||||
"Skill 配置",
|
||||
"#/skills",
|
||||
"settings",
|
||||
"platform",
|
||||
40,
|
||||
"skill.manage",
|
||||
),
|
||||
MenuSpec(
|
||||
"platform.agent_runs",
|
||||
"运行记录",
|
||||
"#/agent-runs",
|
||||
"audit",
|
||||
"platform",
|
||||
50,
|
||||
"agent.run.view",
|
||||
),
|
||||
MenuSpec("system", "系统治理", icon="shield", sort_order=40),
|
||||
MenuSpec(
|
||||
|
||||
@@ -21,7 +21,9 @@ PERMISSIONS: tuple[PermissionSpec, ...] = (
|
||||
PermissionSpec("knowledge.manage", "管理知识库", "知识库"),
|
||||
PermissionSpec("agent.use", "使用 Agent", "AI 平台"),
|
||||
PermissionSpec("agent.manage", "管理 Agent", "AI 平台"),
|
||||
PermissionSpec("agent.run.view", "查看 Agent 运行", "AI 平台"),
|
||||
PermissionSpec("model.manage", "管理模型配置", "AI 平台"),
|
||||
PermissionSpec("skill.manage", "管理 Skill", "AI 平台"),
|
||||
PermissionSpec("tool.manage", "管理 MCP 工具", "AI 平台"),
|
||||
PermissionSpec("system.user.view", "查看用户", "系统治理"),
|
||||
PermissionSpec("system.user.manage", "管理用户", "系统治理"),
|
||||
|
||||
Reference in New Issue
Block a user