mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
fix rebase error
This commit is contained in:
@@ -858,6 +858,27 @@ export function useCoreCommands(): ComfyCommand[] {
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
await api.freeMemory({ freeExecutionCache: false })
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'Comfy.Memory.UnloadModelsAndExecutionCache',
|
||||||
|
icon: 'mdi mdi-vacuum-outline',
|
||||||
|
label: 'Unload Models and Execution Cache',
|
||||||
|
versionAdded: '1.16.4',
|
||||||
|
function: async () => {
|
||||||
|
if (!useSettingStore().get('Comfy.Memory.AllowManualUnload')) {
|
||||||
|
useToastStore().add({
|
||||||
|
severity: 'error',
|
||||||
|
summary: t('g.error'),
|
||||||
|
detail: t('g.commandProhibited', {
|
||||||
|
command: 'Comfy.Memory.UnloadModelsAndExecutionCache'
|
||||||
|
}),
|
||||||
|
life: 3000
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
await api.freeMemory({ freeExecutionCache: true })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -84,9 +84,11 @@ describe('useUpdateAvailableNodes', () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
mockIsSemVer.mockImplementation((version: string) => {
|
mockIsSemVer.mockImplementation(
|
||||||
return !version.includes('nightly')
|
(version: string): version is `${number}.${number}.${number}` => {
|
||||||
})
|
return !version.includes('nightly')
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
mockCompareVersions.mockImplementation(
|
mockCompareVersions.mockImplementation(
|
||||||
(latest: string | undefined, installed: string | undefined) => {
|
(latest: string | undefined, installed: string | undefined) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user