From 07b8d25f649c9e82668d67c858444172e7616c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valverde=20Guimar=C3=A3es?= Date: Sun, 29 Mar 2026 22:13:20 +0200 Subject: [PATCH] fix: extend maxRetries for OpenAI --- src/routes/responses/handleOneTurn.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/responses/handleOneTurn.ts b/src/routes/responses/handleOneTurn.ts index a7f5730..2c84396 100644 --- a/src/routes/responses/handleOneTurn.ts +++ b/src/routes/responses/handleOneTurn.ts @@ -58,6 +58,7 @@ export async function* handleOneTurnStream( baseURL: process.env.OPENAI_BASE_URL ?? "https://router.huggingface.co/v1", apiKey: apiKey, defaultHeaders, + maxRetries: 5, fetchOptions: { dispatcher: new Agent({ allowH2: true }), },