chore: playground api request

This commit is contained in:
jialin
2024-06-12 18:13:23 +08:00
parent 405d95c81f
commit c9ea96e078
25 changed files with 594 additions and 147 deletions
+6
View File
@@ -1,3 +1,5 @@
import { StatusMaps } from '@/config';
export const modelInstanceCols = [
{
title: 'Name',
@@ -29,3 +31,7 @@ export const modelInstanceCols = [
key: 'Operation'
}
];
export const status: any = {
Running: StatusMaps.success
};
+18
View File
@@ -18,3 +18,21 @@ export interface FormData {
name: string;
description: string;
}
export interface ModelInstanceListItem {
source: string;
huggingface_repo_id: string;
huggingface_filename: string;
s3_address: string;
node_id: number;
node_ip: string;
pid: number;
port: number;
state: string;
download_progress: number;
model_id: number;
model_name: string;
id: number;
created_at: string;
updated_at: string;
}