fix: table list action
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { StatusMaps } from '@/config';
|
||||
import { EditOutlined } from '@ant-design/icons';
|
||||
|
||||
export const ollamaModelOptions = [
|
||||
{ label: 'llama3', value: 'llama3' },
|
||||
@@ -20,3 +21,21 @@ export const modelSourceMap = {
|
||||
export const status: any = {
|
||||
Running: StatusMaps.success
|
||||
};
|
||||
|
||||
export const ActionList = [
|
||||
{
|
||||
label: 'common.button.edit',
|
||||
key: 'edit',
|
||||
icon: EditOutlined
|
||||
},
|
||||
{
|
||||
label: 'models.openinplayground',
|
||||
key: 'chat',
|
||||
icon: EditOutlined
|
||||
},
|
||||
{
|
||||
label: 'common.button.delete',
|
||||
key: 'delete',
|
||||
icon: EditOutlined
|
||||
}
|
||||
];
|
||||
|
||||
@@ -31,6 +31,7 @@ export interface ModelInstanceListItem {
|
||||
gpu_index: number;
|
||||
pid: number;
|
||||
port: number;
|
||||
name: string;
|
||||
state: string;
|
||||
download_progress: number;
|
||||
model_id: number;
|
||||
|
||||
Reference in New Issue
Block a user