add --disable-model-switch

This commit is contained in:
Qing
2022-11-13 13:14:37 +08:00
parent 8cdac238b4
commit 0666a32947
6 changed files with 41 additions and 2 deletions

View File

@@ -75,6 +75,12 @@ export default async function inpaint(
}
}
export function getIsDisableModelSwitch() {
return fetch(`${API_ENDPOINT}/is_disable_model_switch`, {
method: 'GET',
})
}
export function switchModel(name: string) {
const fd = new FormData()
fd.append('name', name)