ai 7.0.33 → 7.0.34

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,12 @@
1
1
  # ai
2
2
 
3
+ ## 7.0.34
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [7c16f21]
8
+ - @ai-sdk/gateway@4.0.26
9
+
3
10
  ## 7.0.33
4
11
 
5
12
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1089,7 +1089,7 @@ import {
1089
1089
  } from "@ai-sdk/provider-utils";
1090
1090
 
1091
1091
  // src/version.ts
1092
- var VERSION = true ? "7.0.33" : "0.0.0-test";
1092
+ var VERSION = true ? "7.0.34" : "0.0.0-test";
1093
1093
 
1094
1094
  // src/util/download/download.ts
1095
1095
  var download = async ({
@@ -85,7 +85,7 @@ import {
85
85
  } from "@ai-sdk/provider-utils";
86
86
 
87
87
  // src/version.ts
88
- var VERSION = true ? "7.0.33" : "0.0.0-test";
88
+ var VERSION = true ? "7.0.34" : "0.0.0-test";
89
89
 
90
90
  // src/util/download/download.ts
91
91
  var download = async ({
@@ -101,7 +101,22 @@ DevTools captures the following information from your AI SDK calls:
101
101
  - **Input parameters and prompts**: View the complete input sent to your LLM
102
102
  - **Output content and tool calls**: Inspect generated text and tool invocations
103
103
  - **Token usage and timing**: Monitor resource consumption and performance
104
- - **Raw provider data**: Access complete request and response payloads
104
+ - **Raw provider data**: Access provider request and response payloads when body retention is enabled
105
+
106
+ Telemetry is enabled automatically, but AI SDK 7 excludes raw request and response bodies from step results by default. To make them available to DevTools for `generateText`, enable body retention on the call:
107
+
108
+ ```ts highlight="4-7"
109
+ const result = await generateText({
110
+ model: openai('gpt-4o'),
111
+ prompt: 'Hello!',
112
+ include: {
113
+ requestBody: true,
114
+ responseBody: true,
115
+ },
116
+ });
117
+ ```
118
+
119
+ `ToolLoopAgent` accepts the same `include` setting in its constructor. For `streamText` and `ToolLoopAgent.stream()`, only the request body can be retained; use `include: { requestBody: true }`.
105
120
 
106
121
  ### Runs and steps
107
122
 
@@ -129,6 +144,6 @@ DevTools stores all AI interactions locally in plain text files, including:
129
144
  - User prompts and messages
130
145
  - LLM responses
131
146
  - Tool call arguments and results
132
- - API request and response data
147
+ - API request and response data when body retention is enabled
133
148
 
134
149
  **Only use DevTools in local development environments.** Do not enable DevTools in production or when handling sensitive data.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "7.0.33",
3
+ "version": "7.0.34",
4
4
  "type": "module",
5
5
  "description": "AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.",
6
6
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@ai-sdk/gateway": "4.0.25",
45
+ "@ai-sdk/gateway": "4.0.26",
46
46
  "@ai-sdk/provider": "4.0.3",
47
47
  "@ai-sdk/provider-utils": "5.0.12"
48
48
  },