feat: add capability override controls
这个提交存在于:
父节点
01dac03ec7
当前提交
8858b3af72
共有 6 个文件被更改,包括 41 次插入 和 21 次删除
|
|
@ -191,6 +191,18 @@ function safeProbeModel() {
|
|||
)
|
||||
}
|
||||
|
||||
function setCapabilityStatus(profile: CapabilityProfile, status: CapabilityProfile["status"]) {
|
||||
return runOperation("能力覆盖", () =>
|
||||
postJson<CapabilityProfile>(endpoints.apiDiscoveryManualOverride, {
|
||||
provider_id: profile.provider_id,
|
||||
model_id: profile.model_id,
|
||||
dialect: profile.dialect,
|
||||
status,
|
||||
capabilities: profile.capabilities,
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
||||
function matchWardrobe() {
|
||||
const profileId = selectedProfileId.value
|
||||
if (!profileId) return Promise.resolve()
|
||||
|
|
@ -448,7 +460,15 @@ function storageRootBytes(uriPrefix: string) {
|
|||
<strong>{{ profile.provider_id }} / {{ profile.model_id }}</strong>
|
||||
<small>{{ profile.dialect }}</small>
|
||||
</div>
|
||||
<span class="badge">{{ profile.status }}</span>
|
||||
<div class="inline-actions">
|
||||
<span class="badge">{{ profile.status }}</span>
|
||||
<button type="button" :disabled="Boolean(busy)" @click="setCapabilityStatus(profile, 'confirmed_supported')">
|
||||
支持
|
||||
</button>
|
||||
<button type="button" :disabled="Boolean(busy)" @click="setCapabilityStatus(profile, 'unconfirmed')">
|
||||
待确认
|
||||
</button>
|
||||
</div>
|
||||
</li>
|
||||
<li v-if="!capabilities.length" class="empty">暂无能力档案</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
.web-shell[data-v-0ef32593]{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr) 260px;min-height:100vh;color:#1b2430;background:#f5f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar[data-v-0ef32593],.inspector[data-v-0ef32593]{background:#fff}.sidebar[data-v-0ef32593]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-0ef32593]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-0ef32593]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-0ef32593]{font-size:19px}.brand span[data-v-0ef32593],p[data-v-0ef32593],dt[data-v-0ef32593],.empty[data-v-0ef32593],small[data-v-0ef32593]{color:#667085}nav[data-v-0ef32593]{display:grid;gap:6px}button[data-v-0ef32593]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-0ef32593]:disabled{cursor:wait;opacity:.62}nav button[data-v-0ef32593]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-0ef32593]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-0ef32593]{min-width:0;padding:24px}.topbar[data-v-0ef32593],.list-view header[data-v-0ef32593],.toolbar[data-v-0ef32593],.inline-actions[data-v-0ef32593]{display:flex;gap:12px;align-items:center}.topbar[data-v-0ef32593],.list-view header[data-v-0ef32593]{justify-content:space-between}.actions[data-v-0ef32593],.inline-actions[data-v-0ef32593]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-0ef32593],.toolbar button[data-v-0ef32593],.list-view header button[data-v-0ef32593],.inline-actions button[data-v-0ef32593]{padding:0 14px}h1[data-v-0ef32593],h2[data-v-0ef32593],p[data-v-0ef32593],dl[data-v-0ef32593],dd[data-v-0ef32593]{margin:0}h1[data-v-0ef32593]{min-height:30px;font-size:26px}h2[data-v-0ef32593]{font-size:15px}.notice[data-v-0ef32593],article[data-v-0ef32593],.list-view[data-v-0ef32593],pre[data-v-0ef32593]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-0ef32593]{margin-top:18px;padding:14px}.error[data-v-0ef32593]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-0ef32593],.split-view[data-v-0ef32593]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-0ef32593]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-0ef32593]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-0ef32593]{display:grid;gap:8px;padding:16px}article span[data-v-0ef32593]{color:#667085;font-size:13px}article strong[data-v-0ef32593]{font-size:24px}.list-view[data-v-0ef32593],.logs-view[data-v-0ef32593],.settings-view[data-v-0ef32593]{margin-top:18px}.split-view .list-view[data-v-0ef32593],.logs-view .list-view[data-v-0ef32593]{margin-top:0}.list-view[data-v-0ef32593]{padding:16px}ul[data-v-0ef32593]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-0ef32593]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-0ef32593]:first-child{border-top:0}li>div[data-v-0ef32593]{display:grid;gap:3px;min-width:0}li strong[data-v-0ef32593],li span[data-v-0ef32593],li small[data-v-0ef32593]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-0ef32593]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-0ef32593]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-0ef32593]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-0ef32593]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-0ef32593]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-0ef32593]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-0ef32593]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-0ef32593]{display:none}}@media(max-width:820px){.web-shell[data-v-0ef32593]{grid-template-columns:1fr}.sidebar[data-v-0ef32593]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-0ef32593]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-0ef32593]{text-align:center}.dashboard-grid[data-v-0ef32593],.split-view[data-v-0ef32593],.settings-sections[data-v-0ef32593]{grid-template-columns:1fr}.topbar[data-v-0ef32593],.list-view header[data-v-0ef32593]{align-items:flex-start;flex-direction:column}}
|
||||
文件差异因一行或多行过长而隐藏
|
|
@ -0,0 +1 @@
|
|||
.web-shell[data-v-1d79a532]{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr) 260px;min-height:100vh;color:#1b2430;background:#f5f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sidebar[data-v-1d79a532],.inspector[data-v-1d79a532]{background:#fff}.sidebar[data-v-1d79a532]{border-right:1px solid #d9e0e8;padding:20px}.inspector[data-v-1d79a532]{border-left:1px solid #d9e0e8;padding:20px}.brand[data-v-1d79a532]{display:grid;gap:4px;margin-bottom:24px}.brand strong[data-v-1d79a532]{font-size:19px}.brand span[data-v-1d79a532],p[data-v-1d79a532],dt[data-v-1d79a532],.empty[data-v-1d79a532],small[data-v-1d79a532]{color:#667085}nav[data-v-1d79a532]{display:grid;gap:6px}button[data-v-1d79a532]{min-height:36px;border:1px solid #c7d0da;border-radius:6px;color:#1b2430;background:#fff;font:inherit;text-align:center;cursor:pointer}button[data-v-1d79a532]:disabled{cursor:wait;opacity:.62}nav button[data-v-1d79a532]{border-color:transparent;background:transparent;text-align:left;padding:0 10px}button.active[data-v-1d79a532]{border-color:#b8d8cf;color:#164f43;background:#e5f4ef}.workspace[data-v-1d79a532]{min-width:0;padding:24px}.topbar[data-v-1d79a532],.list-view header[data-v-1d79a532],.toolbar[data-v-1d79a532],.inline-actions[data-v-1d79a532]{display:flex;gap:12px;align-items:center}.topbar[data-v-1d79a532],.list-view header[data-v-1d79a532]{justify-content:space-between}.actions[data-v-1d79a532],.inline-actions[data-v-1d79a532]{flex-wrap:wrap;justify-content:flex-end}.topbar button[data-v-1d79a532],.toolbar button[data-v-1d79a532],.list-view header button[data-v-1d79a532],.inline-actions button[data-v-1d79a532]{padding:0 14px}h1[data-v-1d79a532],h2[data-v-1d79a532],p[data-v-1d79a532],dl[data-v-1d79a532],dd[data-v-1d79a532]{margin:0}h1[data-v-1d79a532]{min-height:30px;font-size:26px}h2[data-v-1d79a532]{font-size:15px}.notice[data-v-1d79a532],article[data-v-1d79a532],.list-view[data-v-1d79a532],pre[data-v-1d79a532]{border:1px solid #d9e0e8;border-radius:8px;background:#fff}.notice[data-v-1d79a532]{margin-top:18px;padding:14px}.error[data-v-1d79a532]{border-color:#f0b4b4;color:#8a1f1f;background:#fff7f7}.dashboard-grid[data-v-1d79a532],.split-view[data-v-1d79a532]{display:grid;gap:12px;margin-top:18px}.dashboard-grid[data-v-1d79a532]{grid-template-columns:repeat(4,minmax(130px,1fr))}.split-view[data-v-1d79a532]{grid-template-columns:repeat(2,minmax(0,1fr))}article[data-v-1d79a532]{display:grid;gap:8px;padding:16px}article span[data-v-1d79a532]{color:#667085;font-size:13px}article strong[data-v-1d79a532]{font-size:24px}.list-view[data-v-1d79a532],.logs-view[data-v-1d79a532],.settings-view[data-v-1d79a532]{margin-top:18px}.split-view .list-view[data-v-1d79a532],.logs-view .list-view[data-v-1d79a532]{margin-top:0}.list-view[data-v-1d79a532]{padding:16px}ul[data-v-1d79a532]{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}li[data-v-1d79a532]{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-top:1px solid #eef1f5}li[data-v-1d79a532]:first-child{border-top:0}li>div[data-v-1d79a532]{display:grid;gap:3px;min-width:0}li strong[data-v-1d79a532],li span[data-v-1d79a532],li small[data-v-1d79a532]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge[data-v-1d79a532]{align-self:center;max-width:180px;border-radius:999px;padding:4px 9px;color:#1f4d62;background:#e5f1f7;font-size:12px}.toolbar[data-v-1d79a532]{justify-content:flex-start;margin:18px 0 12px}.settings-sections[data-v-1d79a532]{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px}pre[data-v-1d79a532]{overflow:auto;max-height:420px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.5}dl[data-v-1d79a532]{display:grid;gap:12px;margin:14px 0 24px}dl div[data-v-1d79a532]{display:flex;justify-content:space-between}@media(max-width:1160px){.web-shell[data-v-1d79a532]{grid-template-columns:190px minmax(0,1fr)}.inspector[data-v-1d79a532]{display:none}}@media(max-width:820px){.web-shell[data-v-1d79a532]{grid-template-columns:1fr}.sidebar[data-v-1d79a532]{border-right:0;border-bottom:1px solid #d9e0e8}nav[data-v-1d79a532]{grid-template-columns:repeat(4,minmax(0,1fr))}nav button[data-v-1d79a532]{text-align:center}.dashboard-grid[data-v-1d79a532],.split-view[data-v-1d79a532],.settings-sections[data-v-1d79a532]{grid-template-columns:1fr}.topbar[data-v-1d79a532],.list-view header[data-v-1d79a532]{align-items:flex-start;flex-direction:column}}
|
||||
17
web/assets/index-QsMDq_Mp.js
普通文件
17
web/assets/index-QsMDq_Mp.js
普通文件
文件差异因一行或多行过长而隐藏
|
|
@ -1,3 +1,3 @@
|
|||
<script type="module" crossorigin src="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-BCNEksZg.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-B92QQGCh.css">
|
||||
<script type="module" crossorigin src="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-QsMDq_Mp.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/api/v1/plugins/extensions/astrbot_plugin_imagestudio/web/assets/index-BTWVDt8L.css">
|
||||
<div id="app"></div>
|
||||
|
|
|
|||
正在加载…
添加表格
在新工单中引用