Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/api/src/endpoints/openai/llm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,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,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would only resolve #12547 if you made it configurable

},
modelOptions,
) as Partial<t.OAIClientOptions> & Partial<t.OpenAIParameters> & Partial<AzureOpenAIInput>;
Expand Down