Skip to content

Commit e4685a8

Browse files
authored
feat: Cancel model redirect self-restriction (#335)
1 parent 14a85a7 commit e4685a8

File tree

4 files changed

+0
-7
lines changed

4 files changed

+0
-7
lines changed

web/src/components/keys/GroupFormModal.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,10 +490,6 @@ async function handleSubmit() {
490490
message.error(t("keys.modelRedirectEmptyModel"));
491491
return;
492492
}
493-
if (key === value) {
494-
message.error(t("keys.modelRedirectSelfReference", { model: key }));
495-
return;
496-
}
497493
}
498494
} catch {
499495
message.error(t("keys.modelRedirectInvalidJson"));

web/src/locales/en-US.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ export default {
372372
modelRedirectInvalidJson: "Invalid JSON format for model redirect rules",
373373
modelRedirectInvalidFormat: "Model redirect rule keys and values must all be strings",
374374
modelRedirectEmptyModel: "Model name cannot be empty",
375-
modelRedirectSelfReference: "Cannot redirect model to itself: {model}",
376375
never: "Never",
377376
daysAgo: "{days} days ago",
378377
hoursAgo: "{hours} hours ago",

web/src/locales/ja-JP.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ export default {
372372
modelRedirectInvalidFormat:
373373
"モデルリダイレクトルールのキーと値はすべて文字列である必要があります",
374374
modelRedirectEmptyModel: "モデル名を空にすることはできません",
375-
modelRedirectSelfReference: "モデルを自身にリダイレクトすることはできません: {model}",
376375
never: "使用なし",
377376
daysAgo: "{days}日前",
378377
hoursAgo: "{hours}時間前",

web/src/locales/zh-CN.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ export default {
356356
modelRedirectInvalidJson: "模型重定向规则 JSON 格式错误",
357357
modelRedirectInvalidFormat: "模型重定向规则的键值必须都是字符串",
358358
modelRedirectEmptyModel: "模型名称不能为空",
359-
modelRedirectSelfReference: "不能将模型重定向到自身: {model}",
360359
never: "从未",
361360
daysAgo: "{days}天前",
362361
hoursAgo: "{hours}小时前",

0 commit comments

Comments
 (0)