fix: do not display modelscope source

This commit is contained in:
jialin
2025-04-02 17:55:10 +08:00
parent d3e58c85cf
commit 4755cf6a25
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -2,6 +2,7 @@ import IconFont from '@/components/icon-font';
import HotKeys from '@/config/hotkeys';
import {
DeleteOutlined,
DownloadOutlined,
EditOutlined,
ExperimentOutlined,
RetweetOutlined,
@@ -17,6 +18,7 @@ const icons = {
DeleteOutlined: React.createElement(DeleteOutlined),
ThunderboltOutlined: React.createElement(ThunderboltOutlined),
RetweetOutlined: React.createElement(RetweetOutlined),
DownloadOutlined: React.createElement(DownloadOutlined),
Stop: React.createElement(IconFont, { type: 'icon-stop1' }),
Play: React.createElement(IconFont, { type: 'icon-outline-play' }),
Catalog: React.createElement(IconFont, { type: 'icon-catalog' }),
@@ -199,7 +201,7 @@ export const modelFileActions = [
{
label: 'resources.modelfiles.retry.download',
key: 'retry',
icon: icons.RetweetOutlined
icon: icons.DownloadOutlined
},
{
label: 'common.button.delete',
+2
View File
@@ -186,6 +186,7 @@ interface ModelSource {
modelscope_value: string;
local_path: string;
local_path_value: string;
model_scope: string;
}
export const modelSourceMap: ModelSource = {
@@ -195,6 +196,7 @@ export const modelSourceMap: ModelSource = {
ollama_library_value: 'ollama_library',
modelScope: 'ModelScope',
modelscope_value: 'model_scope',
model_scope: 'ModelScope',
local_path: 'Local Path',
local_path_value: 'local_path'
};