- {/* Group Ratios */}
-
-
- {t('Group ratios')}
-
- {t('Base multipliers applied when users select specific groups.')}
-
-
-
-
-
- {groupRatioList.length > 0 && (
-
-
-
-
- {t('Group name')}
- {t('Ratio')}
-
- {t('Actions')}
-
-
-
-
- {groupRatioList.map((group) => (
-
-
- {group.name}
-
- {group.value}
-
-
-
-
-
-
-
- ))}
-
-
-
- )}
-
-
-
+
+
{/* Topup Group Ratios */}
-
-
+
+
{t('Top-up group ratios')}
{t('Multipliers for recharge pricing based on user groups.')}
@@ -504,8 +470,8 @@ export const GroupRatioVisualEditor = memo(function GroupRatioVisualEditor({
{/* Inter-group ratio overrides */}
-
-
+
+
{t('Inter-group ratio overrides')}
{t(
@@ -625,70 +591,9 @@ export const GroupRatioVisualEditor = memo(function GroupRatioVisualEditor({
- {/* Usable Groups */}
-
-
- {t('Selectable groups')}
-
- {t('Groups that users can select when creating API keys.')}
-
-
-
-
-
- {usableGroupsList.length > 0 && (
-
-
-
-
- {t('Group name')}
- {t('Description')}
-
- {t('Actions')}
-
-
-
-
- {usableGroupsList.map((group) => (
-
-
- {group.name}
-
- {group.description}
-
-
-
-
-
-
-
- ))}
-
-
-
- )}
-
-
-
-
{/* Auto Groups */}
-
-
+
+
{t('Auto assignment order')}
{t(
@@ -753,14 +658,6 @@ export const GroupRatioVisualEditor = memo(function GroupRatioVisualEditor({
type={simpleDialogType}
/>
- {/* Usable Group Dialog */}
-
-
{/* Auto Group Dialog */}
@@ -323,7 +323,7 @@ export const ModelRatioForm = memo(function ModelRatioForm({
diff --git a/web/default/src/features/system-settings/models/ratio-settings-card.tsx b/web/default/src/features/system-settings/models/ratio-settings-card.tsx
index 691585ec..c1d3dbbe 100644
--- a/web/default/src/features/system-settings/models/ratio-settings-card.tsx
+++ b/web/default/src/features/system-settings/models/ratio-settings-card.tsx
@@ -207,7 +207,7 @@ export function RatioSettingsCard({
mutationFn: resetModelRatios,
onSuccess: (data) => {
if (data.success) {
- toast.success(t('Model ratios reset successfully'))
+ toast.success(t('Model prices reset successfully'))
queryClient.invalidateQueries({ queryKey: ['system-options'] })
setConfirmOpen(false)
} else {
@@ -422,7 +422,7 @@ export function RatioSettingsCard({
}, [resetMutate])
const tabLabels: Record
= {
- models: 'Model ratios',
+ models: 'Model prices',
groups: 'Group ratios',
'tool-prices': 'Tool prices',
'upstream-sync': 'Upstream price sync',
@@ -480,26 +480,30 @@ export function RatioSettingsCard({
return (
-
-
- {visibleTabs.map((tab) => (
-
- {t(tabLabels[tab])}
-
- ))}
-
+ {visibleTabs.length === 1 ? (
+ renderTabContent(defaultTab)
+ ) : (
+
+
+ {visibleTabs.map((tab) => (
+
+ {t(tabLabels[tab])}
+
+ ))}
+
- {visibleTabs.map((tab) => (
-
- {renderTabContent(tab)}
-
- ))}
-
+ {visibleTabs.map((tab) => (
+
+ {renderTabContent(tab)}
+
+ ))}
+
+ )}