From 1a39238ecf4bfca5a55cea470889cc16bb7b833e Mon Sep 17 00:00:00 2001 From: Will Chen Date: Mon, 9 Jun 2025 13:43:54 -0700 Subject: [PATCH] Use max retries 3 when there's no backup clients (#339) Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- src/ipc/utils/stream_utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc/utils/stream_utils.ts b/src/ipc/utils/stream_utils.ts index 1256ca1..59480f7 100644 --- a/src/ipc/utils/stream_utils.ts +++ b/src/ipc/utils/stream_utils.ts @@ -60,7 +60,7 @@ export function streamTextWithBackup(params: StreamTextWithBackupParams): { ); const { textStream } = streamText({ ...rest, - maxRetries: 0, + maxRetries: i === modelClients.length - 1 ? 3 : 0, model: currentModelClient.model, abortSignal: attemptAbort.signal, onError: (error) => {