fix: update api rate limit on Pricing page (#18755)

This commit is contained in:
NFish
2025-04-25 14:37:04 +08:00
committed by GitHub
parent fc4e11d127
commit a575fbca94
7 changed files with 42 additions and 12 deletions

View File

@@ -17,6 +17,7 @@ import {
} from '@/app/components/header/account-setting/model-provider-page/declarations'
import type { Model, ModelProvider } from '@/app/components/header/account-setting/model-provider-page/declarations'
import type { RETRIEVE_METHOD } from '@/types/app'
import type { BasicPlan } from '@/app/components/billing/type'
import { Plan, type UsagePlanInfo } from '@/app/components/billing/type'
import { fetchCurrentPlanInfo } from '@/service/billing'
import { parseCurrentPlan } from '@/app/components/billing/utils'
@@ -34,7 +35,7 @@ type ProviderContextState = {
supportRetrievalMethods: RETRIEVE_METHOD[]
isAPIKeySet: boolean
plan: {
type: Plan
type: BasicPlan
usage: UsagePlanInfo
total: UsagePlanInfo
}