feat: add dalle quality

This commit is contained in:
kwaroran
2024-05-31 13:35:26 +09:00
parent 760d1dd334
commit eae826d438
2 changed files with 13 additions and 2 deletions

View File

@@ -194,8 +194,17 @@
{/if} {/if}
<span class="text-textcolor">OpenAI API Key</span> {#if $DataBase.sdProvider === 'dalle'}
<TextInput size="sm" marginBottom placeholder="sk-..." bind:value={$DataBase.openAIKey}/> <span class="text-textcolor">OpenAI API Key</span>
<TextInput size="sm" marginBottom placeholder="sk-..." bind:value={$DataBase.openAIKey}/>
<span class="text-textcolor mt-4">Dall-E Quality</span>
<SelectInput className="mt-2 mb-4" bind:value={$DataBase.dallEQuality}>
<OptionInput value="standard" >Standard</OptionInput>
<OptionInput value="hd" >HD</OptionInput>
</SelectInput>
{/if}
</Arcodion> </Arcodion>
<Arcodion name="TTS" styled> <Arcodion name="TTS" styled>

View File

@@ -405,6 +405,7 @@ export function setDatabase(data:Database){
data.templateDefaultVariables ??= '' data.templateDefaultVariables ??= ''
data.hypaAllocatedTokens ??= 3000 data.hypaAllocatedTokens ??= 3000
data.hypaChunkSize ??= 3000 data.hypaChunkSize ??= 3000
data.dallEQuality ??= 'standard'
changeLanguage(data.language) changeLanguage(data.language)
DataBase.set(data) DataBase.set(data)
@@ -669,6 +670,7 @@ export interface Database{
hypaChunkSize:number hypaChunkSize:number
cohereAPIKey:string cohereAPIKey:string
goCharacterOnImport:boolean goCharacterOnImport:boolean
dallEQuality:string
} }
export interface customscript{ export interface customscript{