@@ -1434,14 +1434,14 @@ async function handleSubmit() {
for (const section of form.platforms.filter(s => s.enabled)) {
if (section.group_ids.length === 0) {
const platformLabel = t('admin.groups.platforms.' + section.platform, section.platform)
- appStore.showError(t('admin.channels.noGroupsSelected', { platform: platformLabel }, `${platformLabel} has no selected group. Select at least one group or disable this platform.`))
+ appStore.showError(t('admin.channels.noGroupsSelected', { platform: platformLabel }))
activeTab.value = section.platform
return
}
for (const entry of section.model_pricing) {
if (entry.models.length === 0) {
const platformLabel = t('admin.groups.platforms.' + section.platform, section.platform)
- appStore.showError(t('admin.channels.emptyModelsInPricing', { platform: platformLabel }, `${platformLabel} has a pricing entry without models. Add models or remove the entry.`))
+ appStore.showError(t('admin.channels.emptyModelsInPricing', { platform: platformLabel }))
activeTab.value = section.platform
return
}
@@ -1459,8 +1459,7 @@ async function handleSubmit() {
if (pricingConflict) {
appStore.showError(
t('admin.channels.modelConflict',
- { model1: pricingConflict[0], model2: pricingConflict[1] },
- `Model patterns '${pricingConflict[0]}' and '${pricingConflict[1]}' conflict: overlapping match range.`)
+ { model1: pricingConflict[0], model2: pricingConflict[1] })
)
activeTab.value = section.platform
return
@@ -1472,8 +1471,7 @@ async function handleSubmit() {
if (mappingConflict) {
appStore.showError(
t('admin.channels.mappingConflict',
- { model1: mappingConflict[0], model2: mappingConflict[1] },
- `Mapping source patterns '${mappingConflict[0]}' and '${mappingConflict[1]}' conflict: overlapping match range.`)
+ { model1: mappingConflict[0], model2: mappingConflict[1] })
)
activeTab.value = section.platform
return
@@ -1488,7 +1486,7 @@ async function handleSubmit() {
if ((entry.billing_mode === 'per_request' || entry.billing_mode === 'image') &&
(entry.per_request_price == null || entry.per_request_price === '') &&
(!entry.intervals || entry.intervals.length === 0)) {
- appStore.showError(t('admin.channels.form.perRequestPriceRequired', 'Per-request price or billing tiers required for per-request/image billing mode'))
+ appStore.showError(t('admin.channels.form.perRequestPriceRequired'))
return
}
}