+2
-2
| { | ||
| "name": "ai", | ||
| "version": "7.0.31", | ||
| "version": "7.0.32", | ||
| "type": "module", | ||
@@ -45,3 +45,3 @@ "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.", | ||
| "dependencies": { | ||
| "@ai-sdk/gateway": "4.0.23", | ||
| "@ai-sdk/gateway": "4.0.24", | ||
| "@ai-sdk/provider": "4.0.3", | ||
@@ -48,0 +48,0 @@ "@ai-sdk/provider-utils": "5.0.11" |
@@ -24,5 +24,5 @@ import type { JSONObject } from '@ai-sdk/provider'; | ||
| export const uiMessageChunkSchema = lazySchema(() => | ||
| zodSchema( | ||
| zodSchema<UIMessageChunk>( | ||
| z.union([ | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('text-start'), | ||
@@ -32,3 +32,3 @@ id: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('text-delta'), | ||
@@ -39,3 +39,3 @@ id: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('text-end'), | ||
@@ -45,7 +45,7 @@ id: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('error'), | ||
| errorText: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('tool-input-start'), | ||
@@ -60,3 +60,3 @@ toolCallId: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('tool-input-delta'), | ||
@@ -66,3 +66,3 @@ toolCallId: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('tool-input-available'), | ||
@@ -78,3 +78,3 @@ toolCallId: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('tool-input-error'), | ||
@@ -91,3 +91,3 @@ toolCallId: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('tool-approval-request'), | ||
@@ -99,3 +99,3 @@ approvalId: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('tool-approval-response'), | ||
@@ -108,3 +108,3 @@ approvalId: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('tool-output-available'), | ||
@@ -119,3 +119,3 @@ toolCallId: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('tool-output-error'), | ||
@@ -129,7 +129,7 @@ toolCallId: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('tool-output-denied'), | ||
| toolCallId: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('reasoning-start'), | ||
@@ -139,3 +139,3 @@ id: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('reasoning-delta'), | ||
@@ -146,3 +146,3 @@ id: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('reasoning-end'), | ||
@@ -152,3 +152,3 @@ id: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('custom'), | ||
@@ -158,3 +158,3 @@ kind: z.string().transform(value => value as `${string}.${string}`), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('source-url'), | ||
@@ -166,3 +166,3 @@ sourceId: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('source-document'), | ||
@@ -175,3 +175,3 @@ sourceId: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('file'), | ||
@@ -182,3 +182,3 @@ url: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('reasoning-file'), | ||
@@ -189,3 +189,3 @@ url: z.string(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.custom<`data-${string}`>( | ||
@@ -200,9 +200,9 @@ (value): value is `data-${string}` => | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('start-step'), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('finish-step'), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('start'), | ||
@@ -212,3 +212,3 @@ messageId: z.string().optional(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('finish'), | ||
@@ -227,7 +227,7 @@ finishReason: z | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('abort'), | ||
| reason: z.string().optional(), | ||
| }), | ||
| z.strictObject({ | ||
| z.looseObject({ | ||
| type: z.literal('message-metadata'), | ||
@@ -234,0 +234,0 @@ messageMetadata: z.unknown(), |
+2
-2
@@ -211,4 +211,4 @@ import { | ||
| * | ||
| * You can optionally return a result for the tool call, | ||
| * either synchronously or asynchronously. | ||
| * To add the tool output, call `addToolOutput` without awaiting it inside | ||
| * this callback. The callback's return value is not used. | ||
| */ | ||
@@ -215,0 +215,0 @@ onToolCall?: ChatOnToolCallCallback<UI_MESSAGE>; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
6390734
-0.03%65529
-0.21%+ Added
- Removed
Updated