feat(model-editor): enhance ModelEditorDialog with connection test and improved layout

Added a connection test button in the ModelEditorDialog for remote sources, allowing users to verify API connectivity before saving. Improved the layout by restructuring the source selection section and updating the styling for better usability. Enhanced the drawer component with a customizable header and resizable width, improving the overall user experience. Updated localization files to reflect new UI elements and labels.
This commit is contained in:
wizardchen
2026-05-31 13:17:38 +08:00
committed by lyingbug
parent d91bda0fb0
commit 9d1f3001e8
7 changed files with 1132 additions and 331 deletions
+7 -2
View File
@@ -1929,9 +1929,12 @@ export default {
editor: {
addTitle: 'Добавить модель',
editTitle: 'Редактировать модель',
sectionSource: 'Источник',
sectionProvider: 'Настройки провайдера',
sectionAdvanced: 'Дополнительные параметры',
sourceLabel: 'Источник модели',
sourceLocal: 'Ollama (локальный)',
sourceRemote: 'Remote API (удалённый)',
sourceLocal: 'Ollama',
sourceRemote: 'API',
description: {
chat: 'Настройте языковую модель для диалогов',
embedding: 'Настройте модель встраивания для текстовой векторизации',
@@ -4684,6 +4687,8 @@ export default {
saveFailed: 'Не удалось сохранить учётные данные',
removedToast: 'Учётные данные удалены',
removeFailed: 'Не удалось удалить учётные данные',
confirmRemovePrompt: 'Удалить учётные данные? Действие необратимо.',
confirmRemove: 'Подтвердить удаление',
confirmRemoveTitle: 'Удалить {field}?',
confirmRemoveBody:
'Сохранённые учётные данные будут безвозвратно удалены. Интеграции, использующие их, перестанут работать до настройки нового значения.',