From 54837680f772f94cf14c5dc379711cc60023f36b Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 5 Oct 2024 20:54:25 +0300 Subject: [PATCH] Fix looping on regen tool call --- public/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index ec68a916f..027fcf0c6 100644 --- a/public/script.js +++ b/public/script.js @@ -4485,7 +4485,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro streamingProcessor = null; await ToolManager.saveFunctionToolInvocations(invocationResult.invocations); - return Generate(type, { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, quietName }, dryRun); + return Generate('normal', { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, quietName }, dryRun); } } @@ -4577,7 +4577,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro } await ToolManager.saveFunctionToolInvocations(invocationResult.invocations); - return Generate(type, { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, quietName }, dryRun); + return Generate('normal', { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, quietName }, dryRun); } }