From 7ef6a7d11f65e434b04e7697db4a707f6b1402e7 Mon Sep 17 00:00:00 2001 From: CJACK Date: Mon, 13 Apr 2026 02:27:12 +0800 Subject: [PATCH] feat: update to v3.4.0 and redesign model selection UI with a dropdown and descriptive panel --- VERSION | 2 +- .../features/apiTester/ApiTesterContainer.jsx | 2 +- webui/src/features/apiTester/ConfigPanel.jsx | 88 ++++++++++--------- webui/src/locales/en.json | 1 + webui/src/locales/zh.json | 1 + 5 files changed, 50 insertions(+), 44 deletions(-) diff --git a/VERSION b/VERSION index 0fa4ae4..fbcbf73 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.3.0 \ No newline at end of file +3.4.0 \ No newline at end of file diff --git a/webui/src/features/apiTester/ApiTesterContainer.jsx b/webui/src/features/apiTester/ApiTesterContainer.jsx index b5e4be8..fe80753 100644 --- a/webui/src/features/apiTester/ApiTesterContainer.jsx +++ b/webui/src/features/apiTester/ApiTesterContainer.jsx @@ -82,7 +82,7 @@ export default function ApiTesterContainer({ config, onMessage, authFetch }) { }) return ( -
+
m.id === model) || models[0] + const SelectedModelIcon = selectedModel ? (iconMap[selectedModel.icon] || MessageSquare) : MessageSquare return (
-
+
-
+
-
- {models.map(m => { - const Icon = iconMap[m.icon] || MessageSquare - return ( - - ) - })} +
+ +
+ {selectedModel && ( +
+
+
+ +
+
+
+ {selectedModel.name} +
+
+ {selectedModel.desc} +
+
+
+

+ {t('apiTester.modelPickerHint')} +

+
+ )}
-
+
-
+