Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -453,15 +453,12 @@ export const ModelDeleteDialog = ({
maxTokens: maxTokens || m.maxTokens,
}));

const result = await modelService.updateBatchModel(
await modelService.updateBatchModel(
currentModelPayloads
);

if (result.code !== 200) {
message.error(t("model.dialog.error.noModelsFetched"));
} else {
message.success(t("model.dialog.success.updateSuccess"));
}
// Show success message since no exception was thrown
message.success(t("model.dialog.success.updateSuccess"));

// Optionally use currentModelPayloads for subsequent API calls if needed
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@
"model.dialog.error.connectivityRequired": "Please verify model connectivity and ensure connection is successful before adding the model",
"model.dialog.error.addFailed": "Failed to add model",
"model.dialog.error.addFailedLog": "Failed to add model",
"model.dialog.error.noModelsFetched": "Please check your API key and network connectivity",
"model.dialog.error.noModelsFetched": "Operation failed! Please check your API key and network connectivity",
"model.dialog.message.noModels": "Please fetch models first",
"model.dialog.success.updateSuccess": "Updated successfully",
"model.dialog.editTitle": "Edit Model",
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/locales/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@
"model.dialog.error.connectivityRequired": "请先验证模型连通性且确保连接成功后再添加模型",
"model.dialog.error.addFailed": "添加模型失败",
"model.dialog.error.addFailedLog": "添加模型失败",
"model.dialog.error.noModelsFetched": "请检查相关API Key以及网络连通性",
"model.dialog.error.noModelsFetched": "操作失败!请检查相关API Key以及网络连通性",
"model.dialog.message.noModels": "请先获取模型",
"model.dialog.editTitle": "编辑模型",
"model.dialog.editSuccess": "模型更新成功",
Expand Down