(null);
const rows = resource.data?.models.filter((m) =>
- `${m.upstream_id ?? m.id} ${m.public_id}`.toLowerCase().includes(query.toLowerCase()),
+ `${m.upstream_id ?? m.id} ${m.public_id} ${modelDisplayName(m)}`
+ .toLowerCase()
+ .includes(query.toLowerCase()),
);
return (
<>
@@ -438,10 +457,18 @@ export function Models() {
setQuery(e.target.value)}
/>
+
+ 能力预检:
+ {resource.data?.model_capability_guard === undefined
+ ? "未知"
+ : resource.data.model_capability_guard
+ ? "开启"
+ : "关闭"}
+
{rows &&
(rows.length ? (
@@ -452,6 +479,7 @@ export function Models() {
对外模型 / 上游 ID |
状态 |
目录倍率 |
+ 能力(上游声明) |
路由边界 |
操作 |
@@ -462,6 +490,7 @@ export function Models() {
{m.public_id}
{m.upstream_id ?? m.id}
+ {modelDisplayName(m) && {modelDisplayName(m)}}
{m.keep_original && 同时保留 {m.id}}
|
@@ -491,6 +520,9 @@ export function Models() {
产品倍率未知
)}
|
+
+
+ |
{m.credential_ids.length
? `${m.credential_ids.length} 个指定账号`
@@ -508,6 +540,7 @@ export function Models() {
|
+
{m.custom && (
|