Restrict priority demotion to same-model peers
This commit is contained in:
@@ -349,7 +349,7 @@ function RunnerPolicyEditor(props: {
|
||||
{
|
||||
value: 'priorityDemote' as const,
|
||||
title: '优先级降级',
|
||||
description: '命中后将失败平台的动态优先级调整到当前最后',
|
||||
description: '命中后将失败平台的动态优先级调整到当前模型队尾',
|
||||
enabled: props.form.priorityDemoteEnabled,
|
||||
icon: <Gauge size={15} />,
|
||||
},
|
||||
@@ -448,7 +448,7 @@ function RunnerPolicyEditor(props: {
|
||||
{activeStrategy === 'priorityDemote' && (
|
||||
<div className="runtimePolicyRows runnerPolicyDetailRows">
|
||||
<Toggle checked={props.form.priorityDemoteEnabled} label="启用优先级降级" onChange={(checked) => patch({ priorityDemoteEnabled: checked })} />
|
||||
<span className="runtimeFieldHint spanTwo">命中降级规则后,失败平台会自动调整到当前所有平台的优先级队尾。</span>
|
||||
<span className="runtimeFieldHint spanTwo">命中降级规则后,失败平台会自动调整到提供当前模型的其它客户端优先级队尾。</span>
|
||||
<KeywordField label="降级分类" value={props.form.priorityDemoteCategories} onChange={(value) => patch({ priorityDemoteCategories: value })} />
|
||||
<KeywordField label="降级错误码" value={props.form.priorityDemoteCodes} onChange={(value) => patch({ priorityDemoteCodes: value })} />
|
||||
<KeywordField label="降级状态码" value={props.form.priorityDemoteStatusCodes} onChange={(value) => patch({ priorityDemoteStatusCodes: value })} />
|
||||
|
||||
Reference in New Issue
Block a user