Skip to content

Commit 9244c80

Browse files
committed
chore: remove response repeat error
1 parent 8918d44 commit 9244c80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/routes/api.chat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ async function chatAction({ context, request }: ActionFunctionArgs) {
450450
const repeatCount = textDeltaHistory.filter((h) => h === delta).length;
451451

452452
if (repeatCount > MAX_TEXT_DELTA_REPEATS) {
453-
throw new LLMRepeatResponseError();
453+
logger.info('LLM repeat response detected');
454454
}
455455
}
456456
} else if (messageType === 'tool-input-available' && 'toolName' in value && 'input' in value) {
@@ -467,7 +467,7 @@ async function chatAction({ context, request }: ActionFunctionArgs) {
467467
consecutiveRepeatCount++;
468468

469469
if (consecutiveRepeatCount >= MAX_CONSECUTIVE_REPEATS) {
470-
throw new LLMRepeatResponseError();
470+
logger.info('LLM repeat response detected');
471471
}
472472
} else {
473473
consecutiveRepeatCount = 0;

0 commit comments

Comments
 (0)