Bläddra i källkod

chore: remove anthropic pay entrance (#3822)

Joel 1 år sedan
förälder
incheckning
2a64ce740e

+ 0 - 24
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 />

+ 0 - 12
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>