welp it works

This commit is contained in:
Atridad Lahiji 2023-07-05 20:29:15 -06:00
parent bf6181118c
commit 33d4517155
No known key found for this signature in database

View file

@ -39,7 +39,7 @@ export class UserCommand extends Command {
? await interactionOrMessage.channel.send({ content: '🤔 Thinking... 🤔' }) ? await interactionOrMessage.channel.send({ content: '🤔 Thinking... 🤔' })
: await interactionOrMessage.reply({ content: '🤔 Thinking... 🤔', fetchReply: true }); : await interactionOrMessage.reply({ content: '🤔 Thinking... 🤔', fetchReply: true });
const response = await fetch(`https://api.stability.ai/v1/generation/stable-diffusion-xl-beta-v2-2-2/text-to-image`, { const response = await fetch(`https://api.stability.ai/v1/generation/stable-diffusion-xl-1024-v0-9/text-to-image`, {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
@ -52,12 +52,12 @@ export class UserCommand extends Command {
text: prompt text: prompt
} }
], ],
cfg_scale: 7, cfg_scale: 6,
clip_guidance_preset: 'FAST_BLUE', clip_guidance_preset: 'FAST_BLUE',
height: 512, height: 1024,
width: 512, width: 1024,
samples: 1, samples: 1,
steps: 50 steps: 45
}) })
}); });