@ai-sdk/xai 4.0.0 → 4.0.2
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 +14 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/files/xai-files-options.ts +4 -6
- package/src/xai-video-model-options.ts +6 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ai-sdk/xai
|
|
2
2
|
|
|
3
|
+
## 4.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [6a436e3]
|
|
8
|
+
- @ai-sdk/provider-utils@5.0.1
|
|
9
|
+
- @ai-sdk/openai-compatible@3.0.1
|
|
10
|
+
|
|
11
|
+
## 4.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- ba6d510: chore: fix deprecated use of zod `.passthrough()`
|
|
16
|
+
|
|
3
17
|
## 4.0.0
|
|
4
18
|
|
|
5
19
|
### Major Changes
|
package/dist/index.js
CHANGED
|
@@ -3393,7 +3393,7 @@ var xaiTools = {
|
|
|
3393
3393
|
};
|
|
3394
3394
|
|
|
3395
3395
|
// src/version.ts
|
|
3396
|
-
var VERSION = true ? "4.0.
|
|
3396
|
+
var VERSION = true ? "4.0.2" : "0.0.0-test";
|
|
3397
3397
|
|
|
3398
3398
|
// src/files/xai-files.ts
|
|
3399
3399
|
import {
|
|
@@ -3429,10 +3429,10 @@ import {
|
|
|
3429
3429
|
import { z as z16 } from "zod/v4";
|
|
3430
3430
|
var xaiFilesOptionsSchema = lazySchema6(
|
|
3431
3431
|
() => zodSchema6(
|
|
3432
|
-
z16.
|
|
3432
|
+
z16.looseObject({
|
|
3433
3433
|
teamId: z16.string().optional(),
|
|
3434
3434
|
filePath: z16.string().optional()
|
|
3435
|
-
})
|
|
3435
|
+
})
|
|
3436
3436
|
)
|
|
3437
3437
|
);
|
|
3438
3438
|
|
|
@@ -3552,12 +3552,12 @@ var xaiVideoModelOptions = z17.union([
|
|
|
3552
3552
|
referenceToVideoSchema,
|
|
3553
3553
|
autoDetectSchema
|
|
3554
3554
|
]);
|
|
3555
|
-
var runtimeSchema = z17.
|
|
3555
|
+
var runtimeSchema = z17.looseObject({
|
|
3556
3556
|
mode: modeSchema.optional(),
|
|
3557
3557
|
videoUrl: nonEmptyStringSchema.optional(),
|
|
3558
3558
|
referenceImageUrls: z17.array(nonEmptyStringSchema).min(1).max(7).optional(),
|
|
3559
3559
|
...baseFields
|
|
3560
|
-
})
|
|
3560
|
+
});
|
|
3561
3561
|
var xaiVideoModelOptionsSchema = lazySchema7(
|
|
3562
3562
|
() => zodSchema7(runtimeSchema)
|
|
3563
3563
|
);
|