@ai-sdk/xai 4.0.0-beta.7 → 4.0.0-beta.8
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 +6 -0
- package/dist/index.d.mts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/convert-to-xai-chat-messages.ts +5 -5
- package/src/convert-xai-chat-usage.ts +2 -2
- package/src/map-xai-finish-reason.ts +2 -2
- package/src/responses/convert-to-xai-responses-input.ts +5 -5
- package/src/responses/convert-xai-responses-usage.ts +2 -2
- package/src/responses/map-xai-responses-finish-reason.ts +2 -2
- package/src/responses/xai-responses-language-model.ts +21 -21
- package/src/responses/xai-responses-prepare-tools.ts +6 -6
- package/src/xai-chat-language-model.ts +21 -21
- package/src/xai-image-model.ts +6 -6
- package/src/xai-prepare-tools.ts +6 -6
- package/src/xai-provider.ts +14 -14
- package/src/xai-video-model.ts +7 -7
package/dist/index.mjs
CHANGED
|
@@ -356,7 +356,7 @@ function prepareTools({
|
|
|
356
356
|
// src/xai-chat-language-model.ts
|
|
357
357
|
var XaiChatLanguageModel = class {
|
|
358
358
|
constructor(modelId, config) {
|
|
359
|
-
this.specificationVersion = "
|
|
359
|
+
this.specificationVersion = "v4";
|
|
360
360
|
this.supportedUrls = {
|
|
361
361
|
"image/*": [/^https?:\/\/.*$/]
|
|
362
362
|
};
|
|
@@ -898,7 +898,7 @@ var XaiImageModel = class {
|
|
|
898
898
|
constructor(modelId, config) {
|
|
899
899
|
this.modelId = modelId;
|
|
900
900
|
this.config = config;
|
|
901
|
-
this.specificationVersion = "
|
|
901
|
+
this.specificationVersion = "v4";
|
|
902
902
|
this.maxImagesPerCall = 3;
|
|
903
903
|
}
|
|
904
904
|
get provider() {
|
|
@@ -1983,7 +1983,7 @@ async function prepareResponsesTools({
|
|
|
1983
1983
|
// src/responses/xai-responses-language-model.ts
|
|
1984
1984
|
var XaiResponsesLanguageModel = class {
|
|
1985
1985
|
constructor(modelId, config) {
|
|
1986
|
-
this.specificationVersion = "
|
|
1986
|
+
this.specificationVersion = "v4";
|
|
1987
1987
|
this.supportedUrls = {
|
|
1988
1988
|
"image/*": [/^https?:\/\/.*$/]
|
|
1989
1989
|
};
|
|
@@ -2745,7 +2745,7 @@ var xaiTools = {
|
|
|
2745
2745
|
};
|
|
2746
2746
|
|
|
2747
2747
|
// src/version.ts
|
|
2748
|
-
var VERSION = true ? "4.0.0-beta.
|
|
2748
|
+
var VERSION = true ? "4.0.0-beta.8" : "0.0.0-test";
|
|
2749
2749
|
|
|
2750
2750
|
// src/xai-video-model.ts
|
|
2751
2751
|
import {
|
|
@@ -2786,7 +2786,7 @@ var XaiVideoModel = class {
|
|
|
2786
2786
|
constructor(modelId, config) {
|
|
2787
2787
|
this.modelId = modelId;
|
|
2788
2788
|
this.config = config;
|
|
2789
|
-
this.specificationVersion = "
|
|
2789
|
+
this.specificationVersion = "v4";
|
|
2790
2790
|
this.maxVideosPerCall = 1;
|
|
2791
2791
|
}
|
|
2792
2792
|
get provider() {
|
|
@@ -3039,7 +3039,7 @@ function createXai(options = {}) {
|
|
|
3039
3039
|
});
|
|
3040
3040
|
};
|
|
3041
3041
|
const provider = (modelId) => createResponsesLanguageModel(modelId);
|
|
3042
|
-
provider.specificationVersion = "
|
|
3042
|
+
provider.specificationVersion = "v4";
|
|
3043
3043
|
provider.languageModel = createResponsesLanguageModel;
|
|
3044
3044
|
provider.chat = createChatLanguageModel;
|
|
3045
3045
|
provider.responses = createResponsesLanguageModel;
|