ai 6.0.153 → 6.0.155
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 +13 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/docs/03-ai-sdk-core/65-devtools.mdx +11 -0
- package/package.json +2 -2
- package/src/generate-text/to-response-messages.ts +2 -1
package/dist/internal/index.js
CHANGED
|
@@ -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.
|
|
156
|
+
var VERSION = true ? "6.0.155" : "0.0.0-test";
|
|
157
157
|
|
|
158
158
|
// src/util/download/download.ts
|
|
159
159
|
var download = async ({
|
package/dist/internal/index.mjs
CHANGED
|
@@ -67,6 +67,17 @@ npx @ai-sdk/devtools
|
|
|
67
67
|
|
|
68
68
|
Open [http://localhost:4983](http://localhost:4983) to view your AI SDK interactions.
|
|
69
69
|
|
|
70
|
+
### Monorepo usage
|
|
71
|
+
|
|
72
|
+
If you are using a monorepo setup (e.g. Turborepo, Nx), start DevTools from the same workspace where your AI SDK code runs.
|
|
73
|
+
|
|
74
|
+
For example, if your API is in `apps/api`, run:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
cd apps/api
|
|
78
|
+
npx @ai-sdk/devtools
|
|
79
|
+
```
|
|
80
|
+
|
|
70
81
|
## Captured data
|
|
71
82
|
|
|
72
83
|
The DevTools middleware captures the following information from your AI SDK calls:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.155",
|
|
4
4
|
"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.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@opentelemetry/api": "1.9.0",
|
|
48
|
-
"@ai-sdk/gateway": "3.0.
|
|
48
|
+
"@ai-sdk/gateway": "3.0.94",
|
|
49
49
|
"@ai-sdk/provider": "3.0.8",
|
|
50
50
|
"@ai-sdk/provider-utils": "4.0.23"
|
|
51
51
|
},
|
|
@@ -68,7 +68,8 @@ export async function toResponseMessages<TOOLS extends ToolSet>({
|
|
|
68
68
|
type: 'tool-call',
|
|
69
69
|
toolCallId: part.toolCallId,
|
|
70
70
|
toolName: part.toolName,
|
|
71
|
-
input:
|
|
71
|
+
input:
|
|
72
|
+
part.invalid && typeof part.input !== 'object' ? {} : part.input,
|
|
72
73
|
providerExecuted: part.providerExecuted,
|
|
73
74
|
providerOptions: part.providerMetadata,
|
|
74
75
|
});
|