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 +7 -0
- package/dist/index.js +1 -1
- package/dist/internal/index.js +1 -1
- package/docs/03-ai-sdk-core/65-devtools.mdx +17 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
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.
|
|
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 ({
|
package/dist/internal/index.js
CHANGED
|
@@ -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
|
|
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.
|
|
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.
|
|
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
|
},
|