feat(frontend): add copy action for model cards in settings

Allow users to duplicate non-builtin models (chat / embedding / rerank /
VLLM / ASR) from the model card dropdown. The copied model inherits all
parameters (base_url, api_key, provider, embedding params, custom
headers, vision flag, etc.) and gets a non-conflicting name with a
localized suffix, so users can quickly fork and tweak an existing
configuration without re-entering every field.

Adds matching i18n entries (copySuffix / toasts.copied /
toasts.copyFailed / toasts.builtinCannotCopy) for zh-CN, en-US, ko-KR
and ru-RU.
This commit is contained in:
wizardchen
2026-04-24 00:12:03 +08:00
committed by lyingbug
parent fd3e2992b1
commit 220404348e
5 changed files with 67 additions and 1 deletions
+5 -1
View File
@@ -2629,8 +2629,12 @@ export default {
setDefault: 'Установлено по умолчанию',
setDefaultFailed: 'Не удалось установить по умолчанию',
builtinCannotEdit: 'Встроенные модели нельзя редактировать',
builtinCannotDelete: 'Встроенные модели нельзя удалить'
builtinCannotDelete: 'Встроенные модели нельзя удалить',
builtinCannotCopy: 'Встроенные модели нельзя копировать',
copied: 'Модель скопирована',
copyFailed: 'Не удалось скопировать модель'
},
copySuffix: ' копия',
builtinModels: {
title: 'Встроенные модели',
description: 'Встроенные модели видны всем тенантам. Конфиденциальная информация скрыта, их нельзя редактировать или удалять.',