feat: add model role badges and reorder presets to prioritize Opus

- Add Primary/Fallback badge to each model card in OpenClaw form
- Update modelsHint to explain model ordering semantics
- Reorder 11 aggregator/third-party presets to put Opus first
This commit is contained in:
Jason
2026-03-03 22:34:22 +08:00
parent b3dda16b3a
commit 7d4ffa9872
2 changed files with 118 additions and 100 deletions
@@ -236,6 +236,24 @@ export function OpenClawFormFields({
key={modelKeys[index]}
className="p-3 border border-border/50 rounded-lg space-y-3"
>
{/* Role badge */}
<div className="flex items-center">
<span
className={`text-[10px] font-medium px-1.5 py-0.5 rounded ${
index === 0
? "bg-blue-500/15 text-blue-600 dark:text-blue-400"
: "bg-muted text-muted-foreground"
}`}
>
{index === 0
? t("openclaw.primaryModel", {
defaultValue: "默认模型",
})
: t("openclaw.fallbackModel", {
defaultValue: "回退模型",
})}
</span>
</div>
{/* Model ID and Name row */}
<div className="flex items-center gap-2">
<div className="flex-1 space-y-1">
@@ -463,7 +481,7 @@ export function OpenClawFormFields({
<p className="text-xs text-muted-foreground">
{t("openclaw.modelsHint", {
defaultValue:
"配置该供应商支持的模型。模型 ID 用于 API 调用,显示名称用于界面展示。",
"配置该供应商支持的模型。第一个模型为默认模型(Primary),其余为回退模型(Fallback)。拖拽或调整顺序可更改默认模型。",
})}
</p>
</div>