mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
chore: remove anthropic pay entrance (#3822)
This commit is contained in:
parent
78988ed60e
commit
2a64ce740e
|
@ -68,16 +68,6 @@ const QuotaPanel: FC<QuotaPanelProps> = ({
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
{
|
|
||||||
!currentQuota && provider.provider === 'anthropic' && (
|
|
||||||
<Button
|
|
||||||
className='h-6 bg-white text-xs font-medium rounded-md'
|
|
||||||
onClick={handlePay}
|
|
||||||
>
|
|
||||||
{t('common.modelProvider.buyQuota')}
|
|
||||||
</Button>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
!currentQuota && MODEL_PROVIDER_QUOTA_GET_FREE.includes(provider.provider) && (
|
!currentQuota && MODEL_PROVIDER_QUOTA_GET_FREE.includes(provider.provider) && (
|
||||||
<Button
|
<Button
|
||||||
|
@ -88,20 +78,6 @@ const QuotaPanel: FC<QuotaPanelProps> = ({
|
||||||
</Button>
|
</Button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
{
|
|
||||||
provider.provider === 'anthropic' && systemConfig.enabled && (
|
|
||||||
<div
|
|
||||||
className={`
|
|
||||||
absolute left-0 bottom-0 hidden group-hover:flex items-center justify-center
|
|
||||||
w-full h-[30px] backdrop-blur-[2px] bg-gradient-to-r from-[rgba(238,244,255,0.80)] to-[rgba(237,237,240,0.70)]
|
|
||||||
text-xs font-medium text-primary-600 cursor-pointer rounded-b-lg
|
|
||||||
`}
|
|
||||||
onClick={handlePay}
|
|
||||||
>
|
|
||||||
{t('common.modelProvider.buyQuota')}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
priorityUseType === PreferredProviderTypeEnum.system && customConfig.status === CustomConfigurationStatusEnum.active && (
|
priorityUseType === PreferredProviderTypeEnum.system && customConfig.status === CustomConfigurationStatusEnum.active && (
|
||||||
<PriorityUseTip />
|
<PriorityUseTip />
|
||||||
|
|
|
@ -20,7 +20,6 @@ import ModelBadge from '../model-badge'
|
||||||
import ProviderIcon from '../provider-icon'
|
import ProviderIcon from '../provider-icon'
|
||||||
import s from './index.module.css'
|
import s from './index.module.css'
|
||||||
import { Plus, Settings01 } from '@/app/components/base/icons/src/vender/line/general'
|
import { Plus, Settings01 } from '@/app/components/base/icons/src/vender/line/general'
|
||||||
import { CoinsStacked01 } from '@/app/components/base/icons/src/vender/line/financeAndECommerce'
|
|
||||||
import Button from '@/app/components/base/button'
|
import Button from '@/app/components/base/button'
|
||||||
import { IS_CE_EDITION } from '@/config'
|
import { IS_CE_EDITION } from '@/config'
|
||||||
|
|
||||||
|
@ -136,17 +135,6 @@ const ProviderCard: FC<ProviderCardProps> = ({
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
{
|
|
||||||
provider.provider === 'anthropic' && !IS_CE_EDITION && (
|
|
||||||
<Button
|
|
||||||
className='h-7 text-xs text-gray-700'
|
|
||||||
onClick={handlePay}
|
|
||||||
>
|
|
||||||
<CoinsStacked01 className='mr-[5px] w-3.5 h-3.5' />
|
|
||||||
{t('common.modelProvider.buyQuota')}
|
|
||||||
</Button>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user