fix: do not display modelscope source
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user