@ai-sdk/devtools 1.0.0-beta.14 → 1.0.0-beta.15
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/dist/index.d.ts +2 -8
- package/package.json +2 -2
- package/src/integration.ts +2 -8
package/dist/index.d.ts
CHANGED
|
@@ -31,14 +31,8 @@ declare const devToolsMiddleware: () => LanguageModelV4Middleware;
|
|
|
31
31
|
* registerTelemetryIntegration(DevToolsTelemetry());
|
|
32
32
|
* ```
|
|
33
33
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* const result = await generateText({
|
|
37
|
-
* model: openai('gpt-4o'),
|
|
38
|
-
* prompt: 'Hello!',
|
|
39
|
-
* experimental_telemetry: { isEnabled: true },
|
|
40
|
-
* });
|
|
41
|
-
* ```
|
|
34
|
+
* Telemetry is enabled by default — no need to set `experimental_telemetry`
|
|
35
|
+
* unless you want to configure `functionId`, `recordInputs`, or `recordOutputs`.
|
|
42
36
|
*/
|
|
43
37
|
declare function DevToolsTelemetry(): TelemetryIntegration;
|
|
44
38
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/devtools",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"vaul": "^1.1.2",
|
|
57
57
|
"vite": "^6.0.3",
|
|
58
58
|
"zod": "3.25.76",
|
|
59
|
-
"ai": "7.0.0-beta.
|
|
59
|
+
"ai": "7.0.0-beta.103"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"dev": "concurrently -k \"pnpm dev:api\" \"pnpm dev:client\"",
|
package/src/integration.ts
CHANGED
|
@@ -99,14 +99,8 @@ function getOperationType(operationId: string): OperationType {
|
|
|
99
99
|
* registerTelemetryIntegration(DevToolsTelemetry());
|
|
100
100
|
* ```
|
|
101
101
|
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* const result = await generateText({
|
|
105
|
-
* model: openai('gpt-4o'),
|
|
106
|
-
* prompt: 'Hello!',
|
|
107
|
-
* experimental_telemetry: { isEnabled: true },
|
|
108
|
-
* });
|
|
109
|
-
* ```
|
|
102
|
+
* Telemetry is enabled by default — no need to set `experimental_telemetry`
|
|
103
|
+
* unless you want to configure `functionId`, `recordInputs`, or `recordOutputs`.
|
|
110
104
|
*/
|
|
111
105
|
export function DevToolsTelemetry(): TelemetryIntegration {
|
|
112
106
|
if (process.env.NODE_ENV === 'production') {
|