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 }), },