You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an automated backport of #13726 to the release-v6.0 branch. FYI
@jerilynzheng
Co-authored-by: Jerilyn Zheng <zheng.jerilyn@gmail.com>
Co-authored-by: mat lenhard <mclenhard@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@@ -512,7 +512,7 @@ The Parallel Search tool enables models to search the web using [Parallel AI's S
512
512
import { gateway, generateText } from'ai';
513
513
514
514
const result =awaitgenerateText({
515
-
model: 'openai/gpt-5-nano',
515
+
model: 'openai/gpt-5.4-nano',
516
516
prompt: 'Research the latest developments in quantum computing.',
517
517
tools: {
518
518
parallel_search: gateway.tools.parallelSearch(),
@@ -530,7 +530,7 @@ You can also configure the search with optional parameters:
530
530
import { gateway, generateText } from'ai';
531
531
532
532
const result =awaitgenerateText({
533
-
model: 'openai/gpt-5-nano',
533
+
model: 'openai/gpt-5.4-nano',
534
534
prompt: 'Find detailed information about TypeScript 5.0 features.',
535
535
tools: {
536
536
parallel_search: gateway.tools.parallelSearch({
@@ -591,7 +591,7 @@ The tool works with both `generateText` and `streamText`:
591
591
import { gateway, streamText } from'ai';
592
592
593
593
const result =streamText({
594
-
model: 'openai/gpt-5-nano',
594
+
model: 'openai/gpt-5.4-nano',
595
595
prompt: 'Research the latest AI safety guidelines.',
596
596
tools: {
597
597
parallel_search: gateway.tools.parallelSearch(),
@@ -622,7 +622,7 @@ import type { GatewayProviderOptions } from '@ai-sdk/gateway';
622
622
import { generateText } from'ai';
623
623
624
624
const { text } =awaitgenerateText({
625
-
model: 'openai/gpt-5',
625
+
model: 'openai/gpt-5.4',
626
626
prompt: 'Summarize this document...',
627
627
providerOptions: {
628
628
gateway: {
@@ -723,7 +723,7 @@ import type { GatewayProviderOptions } from '@ai-sdk/gateway';
723
723
import { generateText } from'ai';
724
724
725
725
const { text } =awaitgenerateText({
726
-
model: 'anthropic/claude-sonnet-4',
726
+
model: 'anthropic/claude-sonnet-4.6',
727
727
prompt: 'Explain quantum computing',
728
728
providerOptions: {
729
729
gateway: {
@@ -752,7 +752,7 @@ The following gateway provider options are available:
752
752
753
753
Specifies fallback models to use when the primary model fails or is unavailable. The gateway will try the primary model first (specified in the `model` parameter), then try each model in this array in order until one succeeds.
754
754
755
-
Example: `models: ['openai/gpt-5-nano', 'gemini-2.0-flash']` will try the fallback models in order if the primary model fails.
755
+
Example: `models: ['openai/gpt-5.4-nano', 'gemini-3-flash-preview']` will try the fallback models in order if the primary model fails.
756
756
757
757
-**user**_string_
758
758
@@ -780,7 +780,12 @@ The following gateway provider options are available:
780
780
781
781
-**zeroDataRetention**_boolean_
782
782
783
-
Restricts routing requests to providers that have zero data retention policies.
783
+
Restricts routing requests to providers that have zero data retention agreements with Vercel for AI Gateway. If there are no providers available for the model with zero data retention, the request will fail. BYOK credentials are skipped when `zeroDataRetention` is set to `true` to ensure that requests are only routed to providers that support ZDR compliance. Request-level ZDR is only available for Vercel Pro and Enterprise plans.
784
+
785
+
-**disallowPromptTraining**_boolean_
786
+
787
+
Restricts routing requests to providers that have agreements with Vercel for AI Gateway to not use prompts for model training. If there are no providers available for the model that disallow prompt training, the request will fail. BYOK credentials are skipped when `disallowPromptTraining` is set to `true` to ensure that requests are only routed to providers that do not train on prompt data.
788
+
784
789
785
790
-**providerTimeouts**_object_
786
791
@@ -797,7 +802,7 @@ import type { GatewayProviderOptions } from '@ai-sdk/gateway';
797
802
import { generateText } from'ai';
798
803
799
804
const { text } =awaitgenerateText({
800
-
model: 'anthropic/claude-sonnet-4',
805
+
model: 'anthropic/claude-sonnet-4.6',
801
806
prompt: 'Write a haiku about programming',
802
807
providerOptions: {
803
808
gateway: {
@@ -817,34 +822,32 @@ import type { GatewayProviderOptions } from '@ai-sdk/gateway';
// 4. Return the result from the first model that succeeds
834
839
```
835
840
836
841
#### Zero Data Retention Example
837
842
838
-
Set `zeroDataRetention` to true to ensure requests are only routed to providers
839
-
that have zero data retention policies. When `zeroDataRetention` is `false` or not
840
-
specified, there is no enforcement of restricting routing.
843
+
Set `zeroDataRetention` to true to route requests to providers that have zero data retention agreements with Vercel for AI Gateway. If there are no providers available for the model with zero data retention, the request will fail. When `zeroDataRetention` is `false` or not specified, there is no enforcement of restricting routing. BYOK credentials are skipped when `zeroDataRetention` is set to `true` to ensure that requests are only routed to providers that support ZDR compliance. Request-level ZDR is only available for Vercel Pro and Enterprise plans.
Set `disallowPromptTraining` to true to route requests to providers that have agreements with Vercel for AI Gateway to not use prompts for model training. If there are no providers available for the model that disallow prompt training, the request will fail. When `disallowPromptTraining` is `false` or not specified, there is no enforcement of restricting routing. BYOK credentials are skipped when `disallowPromptTraining` is set to `true` to ensure that requests are only routed to providers that do not train on prompt data.
0 commit comments