Skip to content

Backport: feat(gateway): add serviceTier option to GatewayProviderOptions#15561

Merged
shaper merged 1 commit into
release-v6.0from
backport-pr-15497-to-release-v6.0
May 22, 2026
Merged

Backport: feat(gateway): add serviceTier option to GatewayProviderOptions#15561
shaper merged 1 commit into
release-v6.0from
backport-pr-15497-to-release-v6.0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This is an automated backport of #15497 to the release-v6.0 branch. FYI @shaper

## Summary

Adds a unified `serviceTier: 'flex' | 'priority'` option to
`GatewayProviderOptions`. The AI Gateway translates this into whichever
per-provider option each provider expects.

If the user also set a per-provider tier directly, the gateway value
overrides it.

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shaper shaper closed this May 22, 2026
auto-merge was automatically disabled May 22, 2026 19:46

Pull request was closed

@shaper shaper reopened this May 22, 2026
@shaper shaper enabled auto-merge (squash) May 22, 2026 19:46
@shaper shaper merged commit 27a1b22 into release-v6.0 May 22, 2026
47 checks passed
@shaper shaper deleted the backport-pr-15497-to-release-v6.0 branch May 22, 2026 19:53
@github-actions
Copy link
Copy Markdown
Contributor Author

🚀 Published in:

Package Version
ai 6.0.191 github npm
@ai-sdk/alibaba 1.0.25 github npm
@ai-sdk/angular 2.0.192 github npm
@ai-sdk/baseten 1.0.51 github npm
@ai-sdk/cerebras 2.0.54 github npm
@ai-sdk/deepinfra 2.0.52 github npm
@ai-sdk/fireworks 2.0.53 github npm
@ai-sdk/gateway 3.0.120 github npm
@ai-sdk/google-vertex 4.0.137 github npm
@ai-sdk/huggingface 1.0.50 github npm
@ai-sdk/langchain 2.0.197 github npm
@ai-sdk/llamaindex 2.0.191 github npm
@ai-sdk/moonshotai 2.0.23 github npm
@ai-sdk/openai-compatible 2.0.48 github npm
@ai-sdk/react 3.0.193 github npm
@ai-sdk/rsc 2.0.191 github npm
@ai-sdk/svelte 4.0.191 github npm
@ai-sdk/togetherai 2.0.53 github npm
@ai-sdk/vercel 2.0.50 github npm
@ai-sdk/vue 3.0.191 github npm
@ai-sdk/xai 3.0.92 github npm

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.

1 participant