diff --git a/frontend/src/features/providers/components/KeyFormDialog.vue b/frontend/src/features/providers/components/KeyFormDialog.vue
index a0ca23c3d..6b386051a 100644
--- a/frontend/src/features/providers/components/KeyFormDialog.vue
+++ b/frontend/src/features/providers/components/KeyFormDialog.vue
@@ -175,23 +175,6 @@
@update:model-value="(value) => setAuthChannelMismatchAllowed(format, value)"
/>
-
- ×
- updateRateMultiplier(format, (e.target as HTMLInputElement).value)"
- >
-
@@ -778,7 +761,7 @@ function toggleApiFormat(format: string) {
form.value.api_formats.push(format)
setAuthChannelMismatchAllowed(format, true)
} else {
- // 移除格式,但保留倍率配置(用户可能只是临时取消)
+ // 移除格式,但保留隐藏配置(用户可能只是临时取消)
form.value.api_formats.splice(index, 1)
}
form.value.allow_auth_channel_mismatch_formats = sanitizeAllowAuthChannelMismatchFormats(
@@ -786,26 +769,6 @@ function toggleApiFormat(format: string) {
)
}
-// 更新指定格式的成本倍率
-function updateRateMultiplier(format: string, value: string | number) {
- // 使用对象替换以确保 Vue 3 响应性
- const newMultipliers = { ...form.value.rate_multipliers }
-
- if (value === '' || value === null || value === undefined) {
- // 清空时删除该格式的配置(使用默认倍率)
- delete newMultipliers[format]
- } else {
- const numValue = typeof value === 'string' ? parseFloat(value) : value
- // 限制倍率范围:0.01 - 100
- if (!isNaN(numValue) && numValue >= 0.01 && numValue <= 100) {
- newMultipliers[format] = numValue
- }
- }
-
- // 替换整个对象以触发响应式更新
- form.value.rate_multipliers = newMultipliers
-}
-
// 重置表单
function resetForm() {