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({
|
||||
key: 'cache',
|
||||
label: t('缓存读取价格'),
|
||||
value: cache.single || `${cache.symbol}${cache.min} ~ ${cache.symbol}${cache.max}`,
|
||||
suffix: unitSuffix,
|
||||
original: original?.cache,
|
||||
});
|
||||
}
|
||||
|
||||
if (createCache) {
|
||||
items.push({
|
||||
key: 'create-cache',
|
||||
label: t('缓存创建价格'),
|
||||
value: createCache.single || `${createCache.symbol}${createCache.min} ~ ${createCache.symbol}${createCache.max}`,
|
||||
suffix: unitSuffix,
|
||||
original: original?.createCache,
|
||||
});
|
||||
}
|
||||
// 卡片表面仅展示输入/输出价格,缓存价格不在卡片上显示(详情弹窗中仍可见)
|
||||
// if (cache) {
|
||||
// items.push({
|
||||
// key: 'cache',
|
||||
// label: t('缓存读取价格'),
|
||||
// value: cache.single || `${cache.symbol}${cache.min} ~ ${cache.symbol}${cache.max}`,
|
||||
// suffix: unitSuffix,
|
||||
// original: original?.cache,
|
||||
// });
|
||||
// }
|
||||
//
|
||||
// if (createCache) {
|
||||
// items.push({
|
||||
// key: 'create-cache',
|
||||
// label: t('缓存创建价格'),
|
||||
// value: createCache.single || `${createCache.symbol}${createCache.min} ~ ${createCache.symbol}${createCache.max}`,
|
||||
// suffix: unitSuffix,
|
||||
// original: original?.createCache,
|
||||
// });
|
||||
// }
|
||||
}
|
||||
|
||||
if (videoFlat) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue