+
+
资产能力
+
可插拔图片、素材与处理能力。默认关闭,不会影响现有聊天或页面生成流程。
+
+ {error &&
{error}
}
+ {message &&
{message}
}
+
+ {config.plugins.map((plugin) => {
+ const draft = drafts[plugin.pluginId] ?? draftFromPlugin(plugin);
+ const selectedKey = activeKeys.find((key) => key.id === draft.llmProviderKeyId);
+ return
+ {plugin.label}
+ {plugin.description}
+
+
+
+ {plugin.supportsLlm ? <>
+
+
+ > :
此插件不调用 LLM。
}
+
+
+ ;
+ })}
+
+ );
+}
diff --git a/src/admin/pages/DashboardPage.tsx b/src/admin/pages/DashboardPage.tsx
index 8ead9c9..d1220e9 100644
--- a/src/admin/pages/DashboardPage.tsx
+++ b/src/admin/pages/DashboardPage.tsx
@@ -9,6 +9,7 @@ const QUICK_LINKS = [
{ to: '/users', label: '用户管理', desc: '创建账号、启用禁用' },
{ to: '/billing/recharge', label: '充值', desc: '为用户账户充值' },
{ to: '/providers', label: '统一模型中心', desc: 'Provider、执行器模型与启动控制' },
+ { to: '/asset-gateway', label: '资产能力', desc: '可插拔素材插件、Provider 与专属 LLM 选择' },
{ to: '/mindspace', label: 'MindSpace 配置', desc: '公开页上限与空间发布参数' },
{ to: '/memory-v2', label: 'Memory V2', desc: '长期记忆 backend 与前置路由开关' },
{ to: '/system-tests', label: '系统测试验证', desc: '选择测试账号执行联调并汇总问题反馈' },
diff --git a/src/api/client.ts b/src/api/client.ts
index abfd32c..e438f17 100644
--- a/src/api/client.ts
+++ b/src/api/client.ts
@@ -1,4 +1,5 @@
import type {
+ AssetGatewayConfig,
AdminDashboardSummary,
AdminServiceRestartAction,
AdminServiceRestartResult,
@@ -279,6 +280,34 @@ export async function updateWechatScheduleLlmConfig(
});
}
+export async function getAssetGatewayConfig(): Promise