fix: hide cache prices on model card, show only input and output prices
This commit is contained in:
parent
a93c04ce28
commit
648c9917ab
|
|
@ -557,25 +557,26 @@ const PricingCardView = ({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cache) {
|
// 卡片表面仅展示输入/输出价格,缓存价格不在卡片上显示(详情弹窗中仍可见)
|
||||||
items.push({
|
// if (cache) {
|
||||||
key: 'cache',
|
// items.push({
|
||||||
label: t('缓存读取价格'),
|
// key: 'cache',
|
||||||
value: cache.single || `${cache.symbol}${cache.min} ~ ${cache.symbol}${cache.max}`,
|
// label: t('缓存读取价格'),
|
||||||
suffix: unitSuffix,
|
// value: cache.single || `${cache.symbol}${cache.min} ~ ${cache.symbol}${cache.max}`,
|
||||||
original: original?.cache,
|
// suffix: unitSuffix,
|
||||||
});
|
// original: original?.cache,
|
||||||
}
|
// });
|
||||||
|
// }
|
||||||
if (createCache) {
|
//
|
||||||
items.push({
|
// if (createCache) {
|
||||||
key: 'create-cache',
|
// items.push({
|
||||||
label: t('缓存创建价格'),
|
// key: 'create-cache',
|
||||||
value: createCache.single || `${createCache.symbol}${createCache.min} ~ ${createCache.symbol}${createCache.max}`,
|
// label: t('缓存创建价格'),
|
||||||
suffix: unitSuffix,
|
// value: createCache.single || `${createCache.symbol}${createCache.min} ~ ${createCache.symbol}${createCache.max}`,
|
||||||
original: original?.createCache,
|
// suffix: unitSuffix,
|
||||||
});
|
// original: original?.createCache,
|
||||||
}
|
// });
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
if (videoFlat) {
|
if (videoFlat) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue