Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: remove anthropic pay entrance (#3822)

Joel2a64ce740e92
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 921d4b4c971..a7a9aaf09f4 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
@@ -68,16 +68,6 @@ const QuotaPanel: FC<QuotaPanelProps> = ({
</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) && (
<Button
@@ -88,20 +78,6 @@ const QuotaPanel: FC<QuotaPanelProps> = ({
</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 && (
<PriorityUseTip />
diff --git a/web/app/components/header/account-setting/model-provider-page/provider-card/index.tsx b/web/app/components/header/account-setting/model-provider-page/provider-card/index.tsx
index 02cf5a88467..0e5eb7a236c 100644
--- a/web/app/components/header/account-setting/model-provider-page/provider-card/index.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/provider-card/index.tsx
@@ -20,7 +20,6 @@ import ModelBadge from '../model-badge'
import ProviderIcon from '../provider-icon'
import s from './index.module.css'
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 { 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>