diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx index 4a8731e89a2a46..302703f7c9117b 100644 --- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx +++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx @@ -14,6 +14,7 @@ import { import PriorityUseTip from './priority-use-tip' import { InfoCircle } from '@/app/components/base/icons/src/vender/line/general' import Button from '@/app/components/base/button' +import TooltipPlus from '@/app/components/base/tooltip-plus' type QuotaPanelProps = { provider: ModelProvider @@ -32,12 +33,19 @@ const QuotaPanel: FC = ({ const priorityUseType = provider.preferred_provider_type const systemConfig = provider.system_configuration const currentQuota = systemConfig.enabled && systemConfig.quota_configurations.find(item => item.quota_type === systemConfig.current_quota_type) + const openaiOrAnthropic = ['openai', 'anthropic'].includes(provider.provider) return (
{t('common.modelProvider.quota')} - + + +
{ currentQuota && ( diff --git a/web/i18n/lang/common.en.ts b/web/i18n/lang/common.en.ts index 9a5f669ec29ce5..fb109d5251d6a0 100644 --- a/web/i18n/lang/common.en.ts +++ b/web/i18n/lang/common.en.ts @@ -302,6 +302,7 @@ const translation = { priorityUsing: 'Prioritize using', deprecated: 'Deprecated', confirmDelete: 'confirm deletion?', + quotaTip: 'Remaining available free tokens', }, dataSource: { add: 'Add a data source', diff --git a/web/i18n/lang/common.zh.ts b/web/i18n/lang/common.zh.ts index 93368765e22fd2..b3209d10f50e90 100644 --- a/web/i18n/lang/common.zh.ts +++ b/web/i18n/lang/common.zh.ts @@ -302,6 +302,7 @@ const translation = { priorityUsing: '优先使用', deprecated: '已弃用', confirmDelete: '确认删除?', + quotaTip: '剩余免费额度', }, dataSource: { add: '添加数据源',