Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reroll is not working #260

Open
Daxitdon opened this issue Mar 8, 2024 · 0 comments
Open

Reroll is not working #260

Daxitdon opened this issue Mar 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Daxitdon
Copy link

Daxitdon commented Mar 8, 2024

the code that reproduces this issue or a replay of the bug

async function main() {
const client = new Midjourney({
ServerId: process.env.SERVER_ID,
ChannelId: process.env.CHANNEL_ID,
SalaiToken: process.env.SALAI_TOKEN,
Debug: true,
Ws: true, //enable ws is required for remix mode
})
await client.init() //init auto enable remix mode
const prompt =
'48 year old woman with auburn hair plays video games on a tablet in her bedroom and is a chemist. Engaged. Happy. Evening. Silver blue walls in room. In the style of anime. does not exceed 10 MB.'
const Imagine = await client.Imagine(
prompt,
(uri: string, progress: string) => {
console.log('Imagine.loading', uri, 'progress', progress)
}
)
console.log(Imagine)
if (!Imagine) {
console.log('no message')
return
}
const Reroll = await client.Reroll({
msgId: Imagine.id,
hash: Imagine.hash,
flags: Imagine.flags,
content: prompt,
loading: (uri: string, progress: string) => {
console.log('Reroll.loading', uri, 'progress', progress)
},
})

Describe the bug

Describe the bug
Reroll feature is not working.

Expected behavior
new image is suppose to be generate but nothing happen when reroll is called.

error log

no log

@Daxitdon Daxitdon added the bug Something isn't working label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant