@ai-sdk/xai 4.0.0-beta.47 → 4.0.0-beta.48
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 +15 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +4 -4
- package/src/responses/xai-responses-language-model.ts +1 -1
- package/src/xai-chat-language-model.ts +1 -1
- package/src/xai-image-model.ts +1 -1
- package/src/xai-provider.ts +2 -2
- package/src/xai-video-model.ts +1 -1
- /package/src/responses/{xai-responses-options.ts → xai-responses-language-model-options.ts} +0 -0
- /package/src/{xai-chat-options.ts → xai-chat-language-model-options.ts} +0 -0
- /package/src/{xai-image-options.ts → xai-image-model-options.ts} +0 -0
- /package/src/{xai-video-options.ts → xai-video-model-options.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @ai-sdk/xai
|
|
2
2
|
|
|
3
|
+
## 4.0.0-beta.48
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
|
|
8
|
+
|
|
9
|
+
For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [08d2129]
|
|
14
|
+
- Updated dependencies [04e9009]
|
|
15
|
+
- @ai-sdk/provider-utils@5.0.0-beta.30
|
|
16
|
+
- @ai-sdk/openai-compatible@3.0.0-beta.35
|
|
17
|
+
|
|
3
18
|
## 4.0.0-beta.47
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -222,7 +222,7 @@ function mapXaiFinishReason(finishReason) {
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
// src/xai-chat-options.ts
|
|
225
|
+
// src/xai-chat-language-model-options.ts
|
|
226
226
|
import { z } from "zod/v4";
|
|
227
227
|
var webSourceSchema = z.object({
|
|
228
228
|
type: z.literal("web"),
|
|
@@ -935,7 +935,7 @@ import {
|
|
|
935
935
|
} from "@ai-sdk/provider-utils";
|
|
936
936
|
import { z as z5 } from "zod/v4";
|
|
937
937
|
|
|
938
|
-
// src/xai-image-options.ts
|
|
938
|
+
// src/xai-image-model-options.ts
|
|
939
939
|
import { z as z4 } from "zod/v4";
|
|
940
940
|
var xaiImageModelOptions = z4.object({
|
|
941
941
|
aspect_ratio: z4.string().optional(),
|
|
@@ -1802,7 +1802,7 @@ var xaiResponsesChunkSchema = z6.union([
|
|
|
1802
1802
|
})
|
|
1803
1803
|
]);
|
|
1804
1804
|
|
|
1805
|
-
// src/responses/xai-responses-options.ts
|
|
1805
|
+
// src/responses/xai-responses-language-model-options.ts
|
|
1806
1806
|
import { z as z7 } from "zod/v4";
|
|
1807
1807
|
var xaiLanguageModelResponsesOptions = z7.object({
|
|
1808
1808
|
/**
|
|
@@ -2965,7 +2965,7 @@ var xaiTools = {
|
|
|
2965
2965
|
};
|
|
2966
2966
|
|
|
2967
2967
|
// src/version.ts
|
|
2968
|
-
var VERSION = true ? "4.0.0-beta.
|
|
2968
|
+
var VERSION = true ? "4.0.0-beta.48" : "0.0.0-test";
|
|
2969
2969
|
|
|
2970
2970
|
// src/files/xai-files.ts
|
|
2971
2971
|
import {
|
|
@@ -3083,7 +3083,7 @@ import {
|
|
|
3083
3083
|
} from "@ai-sdk/provider-utils";
|
|
3084
3084
|
import { z as z18 } from "zod/v4";
|
|
3085
3085
|
|
|
3086
|
-
// src/xai-video-options.ts
|
|
3086
|
+
// src/xai-video-model-options.ts
|
|
3087
3087
|
import { lazySchema as lazySchema7, zodSchema as zodSchema7 } from "@ai-sdk/provider-utils";
|
|
3088
3088
|
import { z as z17 } from "zod/v4";
|
|
3089
3089
|
var nonEmptyStringSchema = z17.string().min(1);
|