This commit is contained in:
josc146
2023-06-01 16:54:21 +08:00
parent 06a125b8d7
commit b63370928d
15 changed files with 85 additions and 31 deletions

View File

@@ -835,6 +835,11 @@ export const Configs: FC = observer(() => {
</div>
} />
<ToolTipButton text={t('Convert')} desc={t('Convert model with these configs')} onClick={async () => {
if(commonStore.platform=="darwin"){
toast(t("MacOS is not supported yet, please convert manually."), { type: 'info' })
return
}
const modelPath = `${commonStore.settings.customModelsPath}/${selectedConfig.modelParameters.modelName}`;
if (await FileExists(modelPath)) {
const strategy = getStrategy(selectedConfig);

View File

@@ -62,7 +62,7 @@ export const Downloads: FC = observer(() => {
ContinueDownload(status.url);
}} />}
<ToolTipButton desc={t('Open Folder')} icon={<Folder20Regular />} onClick={() => {
OpenFileFolder(status.path);
OpenFileFolder(`${commonStore.settings.customModelsPath}/${status.name}`);
}} />
</div>
</Field>