From 57f18d1ad7e2b05c63d130aab01abfe897aee18f Mon Sep 17 00:00:00 2001 From: yiliang114 <1204183885@qq.com> Date: Fri, 6 Mar 2026 11:28:24 +0800 Subject: [PATCH] fix: reduce invalid stream retry attempts in gemini chat --- packages/core/src/core/geminiChat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/core/geminiChat.ts b/packages/core/src/core/geminiChat.ts index e46eb3fc6..f58bcdb61 100644 --- a/packages/core/src/core/geminiChat.ts +++ b/packages/core/src/core/geminiChat.ts @@ -70,7 +70,7 @@ const INVALID_CONTENT_RETRY_OPTIONS: ContentRetryOptions = { // reason. All are retried with an independent budget (similar to rate-limit // retries) so they do not consume each other's retry budgets. const INVALID_STREAM_RETRY_CONFIG = { - maxRetries: 5, + maxRetries: 2, initialDelayMs: 2000, };