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:
@@ -2629,8 +2629,12 @@ export default {
|
||||
setDefault: 'Установлено по умолчанию',
|
||||
setDefaultFailed: 'Не удалось установить по умолчанию',
|
||||
builtinCannotEdit: 'Встроенные модели нельзя редактировать',
|
||||
builtinCannotDelete: 'Встроенные модели нельзя удалить'
|
||||
builtinCannotDelete: 'Встроенные модели нельзя удалить',
|
||||
builtinCannotCopy: 'Встроенные модели нельзя копировать',
|
||||
copied: 'Модель скопирована',
|
||||
copyFailed: 'Не удалось скопировать модель'
|
||||
},
|
||||
copySuffix: ' копия',
|
||||
builtinModels: {
|
||||
title: 'Встроенные модели',
|
||||
description: 'Встроенные модели видны всем тенантам. Конфиденциальная информация скрыта, их нельзя редактировать или удалять.',
|
||||
|
||||
Reference in New Issue
Block a user