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:
@@ -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'
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user