fix(*): 视频计费与结果解析 - 按 Token 预估展示并解析数组媒体结果

This commit is contained in:
ddCat committed 2026-09-19 07:48:08 +08:00
1 parent 2e5092285a
commit 0a06783f44
8 files changed
+92 -14

No files matched your search

+1 -1
View File
@@ -506,7 +506,7 @@ function tierSpecificationLabel(tier: NonNullable<NonNullable<AiConfig["channels
function ModelPrice({ price, quote, compact = false }: { price: ModelMenuPrice | null | undefined; quote?: LogicalModelQuote; compact?: boolean }) {
if (quote) {
const amount = (quote.amountMicrocredits / 1_000_000).toLocaleString("zh-CN", { maximumFractionDigits: 6 });
const label = quote.estimated ? `预计 ${amount}` : `${amount}`;
const label = quote.estimated ? `预估:${amount}` : `${amount}`;
return (
<span className="inline-flex shrink-0 items-center gap-0.5 text-[var(--fs-tiny)] font-bold tabular-nums text-amber-600 dark:text-amber-300" title={modelQuoteDescription(quote)}>
<Coins className="size-3" />