We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8918d44 commit 9244c80Copy full SHA for 9244c80
1 file changed
app/routes/api.chat.ts
@@ -450,7 +450,7 @@ async function chatAction({ context, request }: ActionFunctionArgs) {
450
const repeatCount = textDeltaHistory.filter((h) => h === delta).length;
451
452
if (repeatCount > MAX_TEXT_DELTA_REPEATS) {
453
- throw new LLMRepeatResponseError();
+ logger.info('LLM repeat response detected');
454
}
455
456
} else if (messageType === 'tool-input-available' && 'toolName' in value && 'input' in value) {
@@ -467,7 +467,7 @@ async function chatAction({ context, request }: ActionFunctionArgs) {
467
consecutiveRepeatCount++;
468
469
if (consecutiveRepeatCount >= MAX_CONSECUTIVE_REPEATS) {
470
471
472
} else {
473
consecutiveRepeatCount = 0;
0 commit comments