@ai-sdk/anthropic 3.0.0-beta.82 → 3.0.0-beta.84
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 +25 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -11
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +24 -10
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +24 -10
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/internal/index.js
CHANGED
|
@@ -165,11 +165,18 @@ var anthropicMessagesResponseSchema = (0, import_provider_utils2.lazySchema)(
|
|
|
165
165
|
type: import_v42.z.literal("document"),
|
|
166
166
|
title: import_v42.z.string().nullable(),
|
|
167
167
|
citations: import_v42.z.object({ enabled: import_v42.z.boolean() }).optional(),
|
|
168
|
-
source: import_v42.z.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
168
|
+
source: import_v42.z.union([
|
|
169
|
+
import_v42.z.object({
|
|
170
|
+
type: import_v42.z.literal("base64"),
|
|
171
|
+
media_type: import_v42.z.literal("application/pdf"),
|
|
172
|
+
data: import_v42.z.string()
|
|
173
|
+
}),
|
|
174
|
+
import_v42.z.object({
|
|
175
|
+
type: import_v42.z.literal("text"),
|
|
176
|
+
media_type: import_v42.z.literal("text/plain"),
|
|
177
|
+
data: import_v42.z.string()
|
|
178
|
+
})
|
|
179
|
+
])
|
|
173
180
|
})
|
|
174
181
|
}),
|
|
175
182
|
import_v42.z.object({
|
|
@@ -402,11 +409,18 @@ var anthropicMessagesChunkSchema = (0, import_provider_utils2.lazySchema)(
|
|
|
402
409
|
type: import_v42.z.literal("document"),
|
|
403
410
|
title: import_v42.z.string().nullable(),
|
|
404
411
|
citations: import_v42.z.object({ enabled: import_v42.z.boolean() }).optional(),
|
|
405
|
-
source: import_v42.z.
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
412
|
+
source: import_v42.z.union([
|
|
413
|
+
import_v42.z.object({
|
|
414
|
+
type: import_v42.z.literal("base64"),
|
|
415
|
+
media_type: import_v42.z.literal("application/pdf"),
|
|
416
|
+
data: import_v42.z.string()
|
|
417
|
+
}),
|
|
418
|
+
import_v42.z.object({
|
|
419
|
+
type: import_v42.z.literal("text"),
|
|
420
|
+
media_type: import_v42.z.literal("text/plain"),
|
|
421
|
+
data: import_v42.z.string()
|
|
422
|
+
})
|
|
423
|
+
])
|
|
410
424
|
})
|
|
411
425
|
}),
|
|
412
426
|
import_v42.z.object({
|