Skip to content

feat(gateway): add providerTimeouts to provider options#13015

Merged
R-Taneja merged 5 commits intomainfrom
feat/gateway-provider-timeouts
Mar 3, 2026
Merged

feat(gateway): add providerTimeouts to provider options#13015
R-Taneja merged 5 commits intomainfrom
feat/gateway-provider-timeouts

Conversation

@R-Taneja
Copy link
Copy Markdown
Contributor

@R-Taneja R-Taneja commented Mar 3, 2026

Summary

Adds providerTimeouts to the gateway provider options schema for type safety and autocomplete support.

This enables per-provider BYOK credential timeouts to trigger fast failover when a provider is slow to respond.

providerOptions: {
  gateway: {
    providerTimeouts: {
      byok: { openai: 5000, anthropic: 2000 },
    },
  },
}

Companion to https://github.com/vercel/ai-gateway/pull/1307

Test plan

  • pnpm test:node passes (326 tests)

Add providerTimeouts option for configuring per-provider BYOK
credential timeouts to trigger fast failover when a provider is
slow to respond.
@R-Taneja R-Taneja requested a review from shaper March 3, 2026 04:49
@R-Taneja R-Taneja enabled auto-merge (squash) March 3, 2026 18:14
@R-Taneja R-Taneja merged commit 1b01ec1 into main Mar 3, 2026
19 checks passed
@R-Taneja R-Taneja deleted the feat/gateway-provider-timeouts branch March 3, 2026 18:18
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor

vercel-ai-sdk bot commented Mar 3, 2026

🚀 Published in:

Package Version
ai 6.0.110
@ai-sdk/angular 2.0.111
@ai-sdk/gateway 3.0.63
@ai-sdk/langchain 2.0.116
@ai-sdk/llamaindex 2.0.110
@ai-sdk/react 3.0.112
@ai-sdk/rsc 2.0.110
@ai-sdk/svelte 4.0.110
@ai-sdk/vue 3.0.110

@R-Taneja R-Taneja added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Mar 3, 2026
@vercel-ai-sdk vercel-ai-sdk bot removed the backport Admins only: add this label to a pull request in order to backport it to the prior version label Mar 3, 2026
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor

vercel-ai-sdk bot commented Mar 3, 2026

✅ Backport PR created: #13036

vercel-ai-sdk bot added a commit that referenced this pull request Mar 3, 2026
…3036)

This is an automated backport of #13015 to the release-v6.0 branch. FYI
@R-Taneja

Co-authored-by: Rohan Taneja <47066511+R-Taneja@users.noreply.github.com>
vercel-ai-sdk bot added a commit that referenced this pull request Mar 3, 2026
…3036)

This is an automated backport of #13015 to the release-v6.0 branch. FYI
@R-Taneja

Co-authored-by: Rohan Taneja <47066511+R-Taneja@users.noreply.github.com>
@gr2m gr2m added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Mar 3, 2026
@vercel-ai-sdk vercel-ai-sdk bot removed the backport Admins only: add this label to a pull request in order to backport it to the prior version label Mar 3, 2026
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor

vercel-ai-sdk bot commented Mar 3, 2026

✅ Backport PR created: #13042

vercel-ai-sdk bot added a commit that referenced this pull request Mar 3, 2026
…3042)

This is an automated backport of #13015 to the release-v5.0 branch. FYI
@R-Taneja

Co-authored-by: Rohan Taneja <47066511+R-Taneja@users.noreply.github.com>
vercel-ai-sdk bot added a commit that referenced this pull request Mar 6, 2026
…3036)

This is an automated backport of #13015 to the release-v6.0 branch. FYI
@R-Taneja

Co-authored-by: Rohan Taneja <47066511+R-Taneja@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants