feat: add quality parameter for DALL-E image generation

This commit is contained in:
kwaroran
2024-05-31 13:36:46 +09:00
parent eae826d438
commit 958217839b

View File

@@ -325,7 +325,8 @@ export async function generateAIImage(genPrompt:string, currentChar:character, n
"prompt": genPrompt, "prompt": genPrompt,
"model": "dall-e-3", "model": "dall-e-3",
"response_format": "b64_json", "response_format": "b64_json",
"style": "natural" "style": "natural",
"quality": db.dallEQuality || 'standard'
}, },
headers: { headers: {
"Authorization": "Bearer " + db.openAIKey "Authorization": "Bearer " + db.openAIKey