[fix] fixed typescript errors in sd
This commit is contained in:
@@ -264,7 +264,7 @@
|
||||
<option value="false" class="bg-darkbg appearance-none">Disable</option>
|
||||
<option value="true" class="bg-darkbg appearance-none">Enable</option>
|
||||
</select>
|
||||
{#if $DataBase.sdConfig.enable_hr === "true"}
|
||||
{#if $DataBase.sdConfig.enable_hr === true}
|
||||
<span class="text-neutral-200">denoising_strength</span>
|
||||
<input class="text-neutral-200 mb-4 p-2 bg-transparent input-text focus:bg-selected text-sm" type="number" min={0} max="10" bind:value={$DataBase.sdConfig.denoising_strength}>
|
||||
<span class="text-neutral-200">hr_scale</span>
|
||||
|
||||
@@ -4,6 +4,7 @@ import { requestChatData } from "./request"
|
||||
import { alertError } from "../alert"
|
||||
import { globalFetch } from "../globalApi"
|
||||
import { CharEmotion } from "../stores"
|
||||
import type { OpenAIChat } from "."
|
||||
|
||||
|
||||
export async function stableDiff(currentChar:character,prompt:string){
|
||||
@@ -133,7 +134,6 @@ export async function stableDiff(currentChar:character,prompt:string){
|
||||
"denoising_strength": db.sdConfig.denoising_strength,
|
||||
"hr_scale": db.sdConfig.hr_scale,
|
||||
"hr_upscaler": db.sdConfig.hr_upscaler
|
||||
'sampler_name': db.sdConfig.sampler_name
|
||||
},
|
||||
headers:{
|
||||
'Content-Type': 'application/json'
|
||||
|
||||
Reference in New Issue
Block a user