revert: show model name from api directly in apikeys

This commit is contained in:
jialin
2026-06-16 15:25:46 +08:00
committed by jialin
parent 0820edf55f
commit 7d36c6ac4a
7 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
export default {
'billing.upsell.title': 'Billing is an Enterprise feature',
'billing.upsell.subtitle':
'Track spend, generate invoices, and enforce budgets across teams. Upgrade to GPUStack Enterprise to manage billing.',
'Upgrade to GPUStack Enterprise to manage billing.',
'billing.upsell.featuresTitle': 'What you get in Enterprise',
'billing.upsell.feature.usage':
'See cost breakdowns by organization, user, and model',
+1 -1
View File
@@ -1,7 +1,7 @@
export default {
'billing.upsell.title': 'Billing is an Enterprise feature',
'billing.upsell.subtitle':
'Track spend, generate invoices, and enforce budgets across teams. Upgrade to GPUStack Enterprise to manage billing.',
'Upgrade to GPUStack Enterprise to manage billing.',
'billing.upsell.featuresTitle': 'What you get in Enterprise',
'billing.upsell.feature.usage':
'See cost breakdowns by organization, user, and model',
+1 -1
View File
@@ -1,7 +1,7 @@
export default {
'billing.upsell.title': 'Billing is an Enterprise feature',
'billing.upsell.subtitle':
'Track spend, generate invoices, and enforce budgets across teams. Upgrade to GPUStack Enterprise to manage billing.',
'Upgrade to GPUStack Enterprise to manage billing.',
'billing.upsell.featuresTitle': 'What you get in Enterprise',
'billing.upsell.feature.usage':
'See cost breakdowns by organization, user, and model',
+1 -1
View File
@@ -1,7 +1,7 @@
export default {
'billing.upsell.title': 'Billing is an Enterprise feature',
'billing.upsell.subtitle':
'Track spend, generate invoices, and enforce budgets across teams. Upgrade to GPUStack Enterprise to manage billing.',
'Upgrade to GPUStack Enterprise to manage billing.',
'billing.upsell.featuresTitle': 'What you get in Enterprise',
'billing.upsell.feature.usage':
'See cost breakdowns by organization, user, and model',
+1 -2
View File
@@ -1,7 +1,6 @@
export default {
'billing.upsell.title': '计费是企业版功能',
'billing.upsell.subtitle':
'在团队间跟踪花费、生成账单并执行预算。升级到 GPUStack 企业版即可管理计费。',
'billing.upsell.subtitle': '升级到 GPUStack 企业版即可管理计费。',
'billing.upsell.featuresTitle': '企业版包含的能力',
'billing.upsell.feature.usage': '按组织、用户与模型查看成本明细',
'billing.upsell.feature.invoices': '生成账单并导出计费报表',
@@ -1,7 +1,6 @@
import { PageAction } from '@/config';
import { PageActionType } from '@/config/types';
import { queryMyModels } from '@/pages/llmodels/apis';
import useOpenPlayground from '@/pages/model-routes/hooks/use-open-playground';
import { SelectPanel, useAppUtils } from '@gpustack/core-ui';
import { useIntl } from '@umijs/max';
import { Checkbox, Divider, Form, Radio } from 'antd';
@@ -23,7 +22,6 @@ const AllowModelsForm: React.FC<{
onValuesChange?: (changedValues: any, allValues: any) => void;
}> = ({ currentData, action, onValuesChange }) => {
const intl = useIntl();
const { generateModelName } = useOpenPlayground();
const { getRuleMessage } = useAppUtils();
const form = Form.useFormInstance();
const allowedModelNames = Form.useWatch(
@@ -41,7 +39,7 @@ const AllowModelsForm: React.FC<{
const res = await queryMyModels({
page: -1
});
const options = res.items.map((item) => generateModelName(item));
const options = res.items.map((item) => item.name);
if (action === PageAction.EDIT && currentData) {
const list = new Set([
...options,
+1
View File
@@ -38,6 +38,7 @@ const Billing: React.FC = () => {
/>
}
title={intl.formatMessage({ id: 'billing.upsell.title' })}
subTitle={intl.formatMessage({ id: 'billing.upsell.subtitle' })}
extra={
<div
style={{