feat: add dalle quality
This commit is contained in:
@@ -194,8 +194,17 @@
|
||||
{/if}
|
||||
|
||||
|
||||
<span class="text-textcolor">OpenAI API Key</span>
|
||||
<TextInput size="sm" marginBottom placeholder="sk-..." bind:value={$DataBase.openAIKey}/>
|
||||
{#if $DataBase.sdProvider === 'dalle'}
|
||||
<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 name="TTS" styled>
|
||||
|
||||
@@ -405,6 +405,7 @@ export function setDatabase(data:Database){
|
||||
data.templateDefaultVariables ??= ''
|
||||
data.hypaAllocatedTokens ??= 3000
|
||||
data.hypaChunkSize ??= 3000
|
||||
data.dallEQuality ??= 'standard'
|
||||
|
||||
changeLanguage(data.language)
|
||||
DataBase.set(data)
|
||||
@@ -669,6 +670,7 @@ export interface Database{
|
||||
hypaChunkSize:number
|
||||
cohereAPIKey:string
|
||||
goCharacterOnImport:boolean
|
||||
dallEQuality:string
|
||||
}
|
||||
|
||||
export interface customscript{
|
||||
|
||||
Reference in New Issue
Block a user