Set known slot in/out types

This commit is contained in:
space-nuko
2023-05-17 15:51:05 -05:00
parent 2a8b76b1f4
commit fe3efe1154
8 changed files with 173 additions and 18 deletions

View File

@@ -253,7 +253,7 @@ export default class ComfyAPI {
postBody = JSON.stringify(body)
}
catch (error) {
return Promise.reject({ error })
return Promise.reject({ error: error.toString() })
}
return fetch(this.getBackendUrl() + "/prompt", {
@@ -270,7 +270,7 @@ export default class ComfyAPI {
return res.json()
})
.then(raw => { return { promptID: raw.prompt_id } })
.catch(error => { return { error } })
.catch(error => { return error })
}
/**