This commit is contained in:
armorbreak001 2026-05-13 03:01:48 +08:00 committed by GitHub
commit 5ce4c1938d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -330,6 +330,10 @@ export function getOpenAILLMConfig({
{
streaming,
model: modelOptions.model ?? '',
/** Default to 0 retries to avoid long delays from LangChain's
* exponential backoff (up to ~2 min with default maxRetries=6).
* Can be overridden via modelOptions or customParams.defaultParams. */
maxRetries: 0,
},
modelOptions,
) as OpenAILLMConfig;