ai 6.0.19 → 6.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.20
4
+
5
+ ### Patch Changes
6
+
7
+ - f748c46: Updated Unified Provider Architecture section in README to describe AI Gateway as the default.
8
+
3
9
  ## 6.0.19
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -18,12 +18,21 @@ npm install ai
18
18
 
19
19
  The AI SDK provides a [unified API](https://ai-sdk.dev/docs/foundations/providers-and-models) to interact with model providers like [OpenAI](https://ai-sdk.dev/providers/ai-sdk-providers/openai), [Anthropic](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic), [Google](https://ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai), and [more](https://ai-sdk.dev/providers/ai-sdk-providers).
20
20
 
21
+ By default, the AI SDK uses the [Vercel AI Gateway](https://vercel.com/docs/ai-gateway) to give you access to all major providers out of the box. Just pass a model string for any supported model:
22
+
23
+ ```ts
24
+ const result = await generateText({
25
+ model: 'anthropic/claude-opus-4.5', // or 'openai/gpt-5.2', 'google/gemini-3-flash', etc.
26
+ prompt: 'Hello!',
27
+ });
28
+ ```
29
+
30
+ You can also connect to providers directly using their SDK packages:
31
+
21
32
  ```shell
22
33
  npm install @ai-sdk/openai @ai-sdk/anthropic @ai-sdk/google
23
34
  ```
24
35
 
25
- Alternatively you can use the [Vercel AI Gateway](https://vercel.com/docs/ai-gateway).
26
-
27
36
  ## Usage
28
37
 
29
38
  ### Generating Text
package/dist/index.js CHANGED
@@ -1013,7 +1013,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
1013
1013
  var import_provider_utils4 = require("@ai-sdk/provider-utils");
1014
1014
 
1015
1015
  // src/version.ts
1016
- var VERSION = true ? "6.0.19" : "0.0.0-test";
1016
+ var VERSION = true ? "6.0.20" : "0.0.0-test";
1017
1017
 
1018
1018
  // src/util/download/download.ts
1019
1019
  var download = async ({ url }) => {
package/dist/index.mjs CHANGED
@@ -909,7 +909,7 @@ import {
909
909
  } from "@ai-sdk/provider-utils";
910
910
 
911
911
  // src/version.ts
912
- var VERSION = true ? "6.0.19" : "0.0.0-test";
912
+ var VERSION = true ? "6.0.20" : "0.0.0-test";
913
913
 
914
914
  // src/util/download/download.ts
915
915
  var download = async ({ url }) => {
@@ -153,7 +153,7 @@ var import_provider_utils2 = require("@ai-sdk/provider-utils");
153
153
  var import_provider_utils3 = require("@ai-sdk/provider-utils");
154
154
 
155
155
  // src/version.ts
156
- var VERSION = true ? "6.0.19" : "0.0.0-test";
156
+ var VERSION = true ? "6.0.20" : "0.0.0-test";
157
157
 
158
158
  // src/util/download/download.ts
159
159
  var download = async ({ url }) => {
@@ -128,7 +128,7 @@ import {
128
128
  } from "@ai-sdk/provider-utils";
129
129
 
130
130
  // src/version.ts
131
- var VERSION = true ? "6.0.19" : "0.0.0-test";
131
+ var VERSION = true ? "6.0.20" : "0.0.0-test";
132
132
 
133
133
  // src/util/download/download.ts
134
134
  var download = async ({ url }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "6.0.19",
3
+ "version": "6.0.20",
4
4
  "description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -50,8 +50,8 @@
50
50
  "tsx": "^4.19.2",
51
51
  "typescript": "5.8.3",
52
52
  "zod": "3.25.76",
53
- "@ai-sdk/test-server": "1.0.1",
54
53
  "@vercel/ai-tsconfig": "0.0.0",
54
+ "@ai-sdk/test-server": "1.0.1",
55
55
  "eslint-config-vercel-ai": "0.0.0"
56
56
  },
57
57
  "peerDependencies": {