chore: models list re-render

This commit is contained in:
jialin
2024-07-05 18:51:13 +08:00
parent 8c66c482b2
commit b753528e44
38 changed files with 810 additions and 657 deletions
+13 -4
View File
@@ -12,10 +12,10 @@ export const ollamaModelOptions = [
{ label: 'deepseek-coder', value: 'deepseek-coder' }
];
export const modelSourceMap = {
huggingface: 'huggingface',
ollama_library: 'ollama_library',
s3: 's3'
export const modelSourceMap: Record<string, string> = {
huggingface: 'Hugging Face',
ollama_library: 'Ollama Library',
s3: 'S3'
};
export const status: any = {
@@ -40,3 +40,12 @@ export const ActionList = [
icon: EditOutlined
}
];
export const InstanceStatusMap = {
Initializing: 'Initializing',
Pending: 'Pending',
Running: 'Running',
Scheduled: 'Scheduled',
Error: 'Error',
Downloading: 'Downloading'
};
+1
View File
@@ -25,6 +25,7 @@ export interface ModelInstanceListItem {
source: string;
huggingface_repo_id: string;
huggingface_filename: string;
ollama_library_model_name: string;
s3_address: string;
worker_id: number;
worker_ip: string;