diff --git a/react/src/components/ModelCardModal.tsx b/react/src/components/ModelCardModal.tsx index 30bc94b04..e4e5caa0b 100644 --- a/react/src/components/ModelCardModal.tsx +++ b/react/src/components/ModelCardModal.tsx @@ -200,6 +200,7 @@ const ModelCardModal: React.FC = ({ > { const minResource = _.toNumber( diff --git a/react/src/components/ModelTryContent.tsx b/react/src/components/ModelTryContent.tsx index 0f5281b07..939c2f06c 100644 --- a/react/src/components/ModelTryContent.tsx +++ b/react/src/components/ModelTryContent.tsx @@ -28,6 +28,7 @@ import { useTranslation } from 'react-i18next'; interface ModelTryContentProps { modelStorageHost?: string; + modelStoreName?: string; modelName?: string; minAIAcclResource: number; title?: string; @@ -36,6 +37,7 @@ interface ModelTryContentProps { const ModelTryContent: React.FC = ({ modelName, modelStorageHost, + modelStoreName, minAIAcclResource, title, ...props @@ -310,10 +312,10 @@ const ModelTryContent: React.FC = ({ cloneable: true, permission: 'wd', // write-delete permission target_host: modelStorageHost, // lowestUsageHost, // clone to accessible and lowest usage storage host - target_name: `${modelName === 'Talkativot UI' ? 'talkativot-standalone-1' : modelName}`, + target_name: `${modelName === 'Talkativot UI' ? 'talkativot-standalone-1' : modelName + '-1'}`, usage_mode: 'model', }, - name: `${modelName === 'Talkativot UI' ? 'talkativot-standalone' : modelName}`, + name: `${modelName === 'Talkativot UI' ? 'talkativot-standalone' : modelStoreName}`, }, { onSuccess: (data) => {