{paginatedModels.map((model, index) => {
const modelKey = getModelKey(model);
@@ -278,9 +278,7 @@ const PricingCardView = ({
{/* 底部区域 */}
{/* 标签区域 */}
-
- {renderTags(model)}
-
+ {renderTags(model)}
{/* 倍率信息(可选) */}
{showRatio && (
diff --git a/web/src/helpers/utils.jsx b/web/src/helpers/utils.jsx
index b9d6c8d8..482ed273 100644
--- a/web/src/helpers/utils.jsx
+++ b/web/src/helpers/utils.jsx
@@ -656,22 +656,15 @@ export const calculateModelPrice = ({
// 格式化价格信息(用于卡片视图)
export const formatPriceInfo = (priceData, t) => {
- const groupTag = priceData.usedGroup ? (
-
- {t('分组')} {priceData.usedGroup}
-
- ) : null;
-
if (priceData.isPerToken) {
return (
<>
- {t('提示')} {priceData.inputPrice}/{priceData.unitLabel}
+ {t('输入')} {priceData.inputPrice}/{priceData.unitLabel}
- {t('补全')} {priceData.completionPrice}/{priceData.unitLabel}
+ {t('输出')} {priceData.completionPrice}/{priceData.unitLabel}
- {groupTag}
>
);
}
@@ -681,7 +674,6 @@ export const formatPriceInfo = (priceData, t) => {
{t('模型价格')} {priceData.price}
- {groupTag}
>
);
};
diff --git a/web/src/index.css b/web/src/index.css
index ae592cf5..dfff900d 100644
--- a/web/src/index.css
+++ b/web/src/index.css
@@ -775,6 +775,7 @@ html.dark .with-pastel-balls::before {
}
/* ==================== semi-ui 组件自定义样式 ==================== */
-.semi-card-header {
+.semi-card-header,
+.semi-card-body {
padding: 10px !important;
}
\ No newline at end of file