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 HotKeys from '@/config/hotkeys';
|
||||||
import {
|
import {
|
||||||
DeleteOutlined,
|
DeleteOutlined,
|
||||||
|
DownloadOutlined,
|
||||||
EditOutlined,
|
EditOutlined,
|
||||||
ExperimentOutlined,
|
ExperimentOutlined,
|
||||||
RetweetOutlined,
|
RetweetOutlined,
|
||||||
@@ -17,6 +18,7 @@ const icons = {
|
|||||||
DeleteOutlined: React.createElement(DeleteOutlined),
|
DeleteOutlined: React.createElement(DeleteOutlined),
|
||||||
ThunderboltOutlined: React.createElement(ThunderboltOutlined),
|
ThunderboltOutlined: React.createElement(ThunderboltOutlined),
|
||||||
RetweetOutlined: React.createElement(RetweetOutlined),
|
RetweetOutlined: React.createElement(RetweetOutlined),
|
||||||
|
DownloadOutlined: React.createElement(DownloadOutlined),
|
||||||
Stop: React.createElement(IconFont, { type: 'icon-stop1' }),
|
Stop: React.createElement(IconFont, { type: 'icon-stop1' }),
|
||||||
Play: React.createElement(IconFont, { type: 'icon-outline-play' }),
|
Play: React.createElement(IconFont, { type: 'icon-outline-play' }),
|
||||||
Catalog: React.createElement(IconFont, { type: 'icon-catalog' }),
|
Catalog: React.createElement(IconFont, { type: 'icon-catalog' }),
|
||||||
@@ -199,7 +201,7 @@ export const modelFileActions = [
|
|||||||
{
|
{
|
||||||
label: 'resources.modelfiles.retry.download',
|
label: 'resources.modelfiles.retry.download',
|
||||||
key: 'retry',
|
key: 'retry',
|
||||||
icon: icons.RetweetOutlined
|
icon: icons.DownloadOutlined
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'common.button.delete',
|
label: 'common.button.delete',
|
||||||
|
|||||||
@@ -186,6 +186,7 @@ interface ModelSource {
|
|||||||
modelscope_value: string;
|
modelscope_value: string;
|
||||||
local_path: string;
|
local_path: string;
|
||||||
local_path_value: string;
|
local_path_value: string;
|
||||||
|
model_scope: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const modelSourceMap: ModelSource = {
|
export const modelSourceMap: ModelSource = {
|
||||||
@@ -195,6 +196,7 @@ export const modelSourceMap: ModelSource = {
|
|||||||
ollama_library_value: 'ollama_library',
|
ollama_library_value: 'ollama_library',
|
||||||
modelScope: 'ModelScope',
|
modelScope: 'ModelScope',
|
||||||
modelscope_value: 'model_scope',
|
modelscope_value: 'model_scope',
|
||||||
|
model_scope: 'ModelScope',
|
||||||
local_path: 'Local Path',
|
local_path: 'Local Path',
|
||||||
local_path_value: 'local_path'
|
local_path_value: 'local_path'
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user