Skip to content

Commit

Permalink
refactor: change statusDescription key to onChange in upsertNotificat…
Browse files Browse the repository at this point in the history
…ion component by applying current changes
  • Loading branch information
lizable committed Jan 24, 2025
1 parent 393dfb0 commit 485166d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions react/src/components/ModelTryContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
case 'vllm':
case 'custom':
default:
return '0.6.6-cuda12.4-ubuntu22.04';// '0.6.2-cuda12.1-ubuntu22.04';
return '0.6.6-cuda12.4-ubuntu22.04'; // '0.6.2-cuda12.1-ubuntu22.04';
case 'nim':
return 'ngc-nim:1.0.0-llama3.8b-h100x1-fp16';
}
Expand Down Expand Up @@ -335,7 +335,7 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
status: 'pending',
percent: 50,
taskId: data.bgtask_id,
statusDescriptions: {
onChange: {
pending: 'Downloading model is in progress...', // t('data.folders.FolderClonePending'),
resolved: 'Successfully downloaded model.', // t('data.folders.FolderCloned'),
rejected:
Expand Down Expand Up @@ -384,12 +384,6 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
}
}, 5000);
}),
statusDescriptions: {
pending: 'Model service is starting...',
resolved: 'Model service is now ready!',
rejected:
'Model service failed to start. Please check the service status.',
},
status: 'pending',
percent: 0,
onResolve: () => {
Expand Down Expand Up @@ -480,7 +474,7 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
}
}, 5000);
}),
statusDescriptions: {
onChange: {
pending: 'Model service is starting...',
resolved: 'Model service is now ready!',
rejected:
Expand Down

0 comments on commit 485166d

Please sign in to comment.