From 26be82cc85802157405e5fd3523290c34c3f7453 Mon Sep 17 00:00:00 2001 From: IanShaw <131567472+IanShaw027@users.noreply.github.com> Date: Wed, 19 Aug 2026 05:30:17 -0700 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=EF=BC=9A=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=B8=A0=E9=81=93=E5=80=8D=E7=8E=87=E5=B9=B6=E7=B2=BE=E7=AE=80?= =?UTF-8?q?=E9=95=BF=E4=B8=8A=E4=B8=8B=E6=96=87=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/admin/channels.ts | 6 ++ .../components/account/CreateAccountModal.vue | 7 +- .../components/account/EditAccountModal.vue | 7 +- .../__tests__/longContextBilling.spec.ts | 29 +++++++ .../components/account/longContextBilling.ts | 11 +++ .../components/admin/channel/IntervalRow.vue | 87 ++++++++++++------- .../admin/channel/PricingEntryCard.vue | 22 ++++- .../PricingEntryCard.timePricing.spec.ts | 15 ++++ .../admin/channel/__tests__/types.spec.ts | 52 +++++++++++ .../src/components/admin/channel/types.ts | 34 ++++++++ .../src/i18n/locales/en/admin/channels.ts | 9 ++ .../src/i18n/locales/en/admin/overview.ts | 2 +- .../src/i18n/locales/zh/admin/channels.ts | 9 ++ .../src/i18n/locales/zh/admin/overview.ts | 2 +- frontend/src/views/admin/ChannelsView.vue | 19 +++- 15 files changed, 276 insertions(+), 35 deletions(-) create mode 100644 frontend/src/components/account/__tests__/longContextBilling.spec.ts create mode 100644 frontend/src/components/account/longContextBilling.ts diff --git a/frontend/src/api/admin/channels.ts b/frontend/src/api/admin/channels.ts index 6556417ced..9ce50bcd0a 100644 --- a/frontend/src/api/admin/channels.ts +++ b/frontend/src/api/admin/channels.ts @@ -17,6 +17,10 @@ export interface PricingInterval { output_price: number | null cache_write_price: number | null cache_read_price: number | null + input_multiplier: number | null + output_multiplier: number | null + cache_write_multiplier: number | null + cache_read_multiplier: number | null per_request_price: number | null sort_order: number } @@ -41,6 +45,8 @@ export interface ChannelModelPricing { output_price: number | null cache_write_price: number | null cache_read_price: number | null + fast_multiplier?: number | null + flex_multiplier?: number | null image_input_price: number | null image_output_price: number | null per_request_price: number | null diff --git a/frontend/src/components/account/CreateAccountModal.vue b/frontend/src/components/account/CreateAccountModal.vue index 55a0831ae1..fdcf33107a 100644 --- a/frontend/src/components/account/CreateAccountModal.vue +++ b/frontend/src/components/account/CreateAccountModal.vue @@ -2957,7 +2957,7 @@