Add Content-Type Header to SD request. (#12)

Resolved Web-Risu SD request Error.
```
{"detail":[{"loc":["body"],"msg":"value is not a valid dict","type":"type_error.dict"}]} 
````
This commit is contained in:
kwaroran
2023-05-08 17:29:19 +09:00
committed by GitHub

View File

@@ -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'
}
})