Skip to content

Commit 6671ab7

Browse files
committed
refactor: change statusDescription key to onChange in upsertNotification component by applying current changes
1 parent 1f9e092 commit 6671ab7

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Diff for: react/src/components/ModelTryContent.tsx

+3-9
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
240240
case 'vllm':
241241
case 'custom':
242242
default:
243-
return '0.6.6-cuda12.4-ubuntu22.04';// '0.6.2-cuda12.1-ubuntu22.04';
243+
return '0.6.6-cuda12.4-ubuntu22.04'; // '0.6.2-cuda12.1-ubuntu22.04';
244244
case 'nim':
245245
return 'ngc-nim:1.0.0-llama3.8b-h100x1-fp16';
246246
}
@@ -335,7 +335,7 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
335335
status: 'pending',
336336
percent: 50,
337337
taskId: data.bgtask_id,
338-
statusDescriptions: {
338+
onChange: {
339339
pending: 'Downloading model is in progress...', // t('data.folders.FolderClonePending'),
340340
resolved: 'Successfully downloaded model.', // t('data.folders.FolderCloned'),
341341
rejected:
@@ -384,12 +384,6 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
384384
}
385385
}, 5000);
386386
}),
387-
statusDescriptions: {
388-
pending: 'Model service is starting...',
389-
resolved: 'Model service is now ready!',
390-
rejected:
391-
'Model service failed to start. Please check the service status.',
392-
},
393387
status: 'pending',
394388
percent: 0,
395389
onResolve: () => {
@@ -480,7 +474,7 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
480474
}
481475
}, 5000);
482476
}),
483-
statusDescriptions: {
477+
onChange: {
484478
pending: 'Model service is starting...',
485479
resolved: 'Model service is now ready!',
486480
rejected:

0 commit comments

Comments
 (0)