mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 10:57:45 +01:00
Add SD multimodal prompt toast
This commit is contained in:
parent
4eb6657b51
commit
283bb2fa89
@ -2185,6 +2185,7 @@ async function generateMultimodalPrompt(generationType, quietPrompt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
const toast = toastr.info('Generating multimodal caption...', 'Image Generation');
|
||||||
const response = await fetch(avatarUrl);
|
const response = await fetch(avatarUrl);
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
@ -2195,6 +2196,7 @@ async function generateMultimodalPrompt(generationType, quietPrompt) {
|
|||||||
const avatarBase64 = await getBase64Async(avatarBlob);
|
const avatarBase64 = await getBase64Async(avatarBlob);
|
||||||
|
|
||||||
const caption = await getMultimodalCaption(avatarBase64, quietPrompt);
|
const caption = await getMultimodalCaption(avatarBase64, quietPrompt);
|
||||||
|
toastr.clear(toast);
|
||||||
|
|
||||||
if (!caption) {
|
if (!caption) {
|
||||||
throw new Error('No caption returned from the API.');
|
throw new Error('No caption returned from the API.');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user