From 259d0bba9821a524db4097d418625e46d9b174a8 Mon Sep 17 00:00:00 2001 From: Yuhwan Kim Date: Mon, 8 May 2023 09:11:57 +0900 Subject: [PATCH] Add Content-Type to SD request. --- src/ts/process/stableDiff.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ts/process/stableDiff.ts b/src/ts/process/stableDiff.ts index ebcc4f54..769e7d9c 100644 --- a/src/ts/process/stableDiff.ts +++ b/src/ts/process/stableDiff.ts @@ -129,6 +129,9 @@ export async function stableDiff(currentChar:character,prompt:string){ "prompt": prompts.join(','), "negative_prompt": neg, 'sampler_name': db.sdConfig.sampler_name + }, + headers:{ + 'Content-Type': 'application/json' } })