fix: reduce invalid stream retry attempts in gemini chat

This commit is contained in:
yiliang114 2026-03-06 11:28:24 +08:00
parent 93c96a0425
commit 57f18d1ad7

View file

@ -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,
};