feat: add dalle quality
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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{
|
||||||
|
|||||||
Reference in New Issue
Block a user