浏览代码

fix: credential not allow to use in load balancing (#25401)

tags/1.9.0
zxhlyh 1 个月前
父节点
当前提交
c595c03452
没有帐户链接到提交者的电子邮件

+ 2
- 2
web/app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-configs.tsx 查看文件

@@ -196,7 +196,7 @@ const ModelLoadBalancingConfigs = ({
)
: (
<Tooltip popupContent={t('common.modelProvider.apiKeyStatusNormal')}>
<Indicator color='green' />
<Indicator color={credential?.not_allowed_to_use ? 'gray' : 'green'} />
</Tooltip>
)}
</div>
@@ -232,7 +232,7 @@ const ModelLoadBalancingConfigs = ({
<>
<span className='mr-2 h-3 border-r border-r-divider-subtle' />
<Switch
defaultValue={Boolean(config.enabled)}
defaultValue={credential?.not_allowed_to_use ? false : Boolean(config.enabled)}
size='md'
className='justify-self-end'
onChange={value => toggleConfigEntryEnabled(index, value)}

正在加载...
取消
保存