feat(*): 模型计费与渠道目录 - 支持视频 Token 报价结算和稳定模型展示

This commit is contained in:
ddCat
2026-09-18 23:26:54 +08:00
parent 90add8c466
commit 1a79005d25
57 changed files with 2904 additions and 341 deletions

View File

@@ -52,6 +52,8 @@ export type ChannelModel = {
modelKey: string;
providerModelKey: string;
displayName: string;
channelLabel?: string;
description?: string;
sortOrder?: number;
icon: string;
capability: "text" | "image" | "video" | "audio" | "";
@@ -96,6 +98,8 @@ export type ChannelModelMutation = {
modelKey: string;
providerModelKey?: string;
displayName?: string;
channelLabel?: string;
description?: string;
icon?: string;
capability: ChannelModel["capability"];
protocol?: ChannelModel["protocol"];
@@ -214,6 +218,8 @@ export type BillingOrder = {
outputTokens: number;
cachedTokens: number;
usageAvailable: boolean;
videoFormulaTokens?: number;
usageSource?: "provider" | "video_formula";
status: "reserved" | "running" | "settled" | "refunded" | "uncertain";
providerRequestId?: string;
error?: string;