1
0
Fork 0

fix(gui): switch txt2img to post on client

This commit is contained in:
Sean Sube 2023-01-07 15:24:44 -06:00
parent 926f77b3b0
commit e4542031c4
1 changed files with 3 additions and 1 deletions

View File

@ -159,7 +159,9 @@ export function makeClient(root: string, f = fetch): ApiClient {
url.searchParams.append('prompt', params.prompt);
pending = f(url).then((res) => imageFromResponse(root, res)).finally(() => {
pending = f(url, {
method: 'POST',
}).then((res) => imageFromResponse(root, res)).finally(() => {
pending = undefined;
});