Fix duplicate image generation toast on tool call.
This commit is contained in:
@@ -2219,7 +2219,7 @@
|
||||
"sd_res_1280x720": "1280x720 (16:9,720p,横向壁纸)",
|
||||
"sd_res_720x1280": "720x1280 (9:16,720p,纵向壁纸)",
|
||||
"<Enter Model ID above>": "<在上方输入模型 ID>",
|
||||
"Generating image": "正在生成图像",
|
||||
"Generating an image": "正在生成图像",
|
||||
"Delete the workflow? This action is irreversible.": "删除工作流?此操作无法被撤销。",
|
||||
"Enter new workflow name:": "输入新工作流名称:",
|
||||
"A workflow with that name already exists": "已存在同名工作流",
|
||||
|
||||
@@ -2871,7 +2871,7 @@ function ensureSelectionExists(setting, selector) {
|
||||
function updateGenerationIndicator() {
|
||||
if (activeGenerations > 0) {
|
||||
const countText = activeGenerations > 1 ? ` (${activeGenerations})` : '';
|
||||
const toastText = `<i class="fa-solid fa-spinner fa-spin"></i> ${t`Generating image`}${countText}...`;
|
||||
const toastText = `<i class="fa-solid fa-spinner fa-spin"></i> ${t`Generating an image`}${countText}...`;
|
||||
|
||||
// Show persistent toast if not already showing
|
||||
if (!generationToast) {
|
||||
@@ -5344,7 +5344,6 @@ function registerFunctionTool() {
|
||||
const url = await generatePicture(initiators.tool, {}, args.prompt);
|
||||
return encodeURI(url);
|
||||
},
|
||||
formatMessage: () => 'Generating an image...',
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user