fix: generating using undefined

This commit is contained in:
pinks 2023-09-24 21:54:44 +02:00
parent 18d9bf7b9e
commit 3895793965
1 changed files with 4 additions and 4 deletions

View File

@ -136,7 +136,7 @@ async function processGenerationJob(
await bot.api.editMessageText( await bot.api.editMessageText(
state.replyMessage.chat.id, state.replyMessage.chat.id,
state.replyMessage.message_id, state.replyMessage.message_id,
`Generating your prompt now... 0% using ${sdInstance.name}`, `Generating your prompt now... 0% using ${sdInstance.name || sdInstance.id}`,
{ maxAttempts: 1 }, { maxAttempts: 1 },
); );
@ -221,9 +221,9 @@ async function processGenerationJob(
await bot.api.editMessageText( await bot.api.editMessageText(
state.replyMessage.chat.id, state.replyMessage.chat.id,
state.replyMessage.message_id, state.replyMessage.message_id,
`Generating your prompt now... ${ `Generating your prompt now... ${(progressResponse.data.progress * 100).toFixed(0)}% using ${
(progressResponse.data.progress * 100).toFixed(0) sdInstance.name || sdInstance.id
}% using ${sdInstance.name}`, }`,
{ maxAttempts: 1 }, { maxAttempts: 1 },
).catch(() => undefined); ).catch(() => undefined);