@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/xai",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.48",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ai-sdk/openai-compatible": "3.0.0-beta.
|
|
33
|
-
"@ai-sdk/provider": "
|
|
34
|
-
"@ai-sdk/provider
|
|
32
|
+
"@ai-sdk/openai-compatible": "3.0.0-beta.35",
|
|
33
|
+
"@ai-sdk/provider-utils": "5.0.0-beta.30",
|
|
34
|
+
"@ai-sdk/provider": "4.0.0-beta.14"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "20.17.24",
|
package/src/index.ts
CHANGED
|
@@ -2,24 +2,24 @@ export type {
|
|
|
2
2
|
XaiLanguageModelChatOptions,
|
|
3
3
|
/** @deprecated Use `XaiLanguageModelChatOptions` instead. */
|
|
4
4
|
XaiLanguageModelChatOptions as XaiProviderOptions,
|
|
5
|
-
} from './xai-chat-options';
|
|
5
|
+
} from './xai-chat-language-model-options';
|
|
6
6
|
export type { XaiErrorData } from './xai-error';
|
|
7
7
|
export type {
|
|
8
8
|
XaiLanguageModelResponsesOptions,
|
|
9
9
|
/** @deprecated Use `XaiLanguageModelResponsesOptions` instead. */
|
|
10
10
|
XaiLanguageModelResponsesOptions as XaiResponsesProviderOptions,
|
|
11
|
-
} from './responses/xai-responses-options';
|
|
11
|
+
} from './responses/xai-responses-language-model-options';
|
|
12
12
|
export type {
|
|
13
13
|
XaiImageModelOptions,
|
|
14
14
|
/** @deprecated Use `XaiImageModelOptions` instead. */
|
|
15
15
|
XaiImageModelOptions as XaiImageProviderOptions,
|
|
16
|
-
} from './xai-image-options';
|
|
16
|
+
} from './xai-image-model-options';
|
|
17
17
|
export type { XaiVideoModelId } from './xai-video-settings';
|
|
18
18
|
export type {
|
|
19
19
|
XaiVideoModelOptions,
|
|
20
20
|
/** @deprecated Use `XaiVideoModelOptions` instead. */
|
|
21
21
|
XaiVideoModelOptions as XaiVideoProviderOptions,
|
|
22
|
-
} from './xai-video-options';
|
|
22
|
+
} from './xai-video-model-options';
|
|
23
23
|
export type { XaiFilesOptions } from './files/xai-files-options';
|
|
24
24
|
export { createXai, xai } from './xai-provider';
|
|
25
25
|
export type { XaiProvider, XaiProviderSettings } from './xai-provider';
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
xaiLanguageModelResponsesOptions,
|
|
39
39
|
type XaiResponsesModelId,
|
|
40
|
-
} from './xai-responses-options';
|
|
40
|
+
} from './xai-responses-language-model-options';
|
|
41
41
|
import { prepareResponsesTools } from './xai-responses-prepare-tools';
|
|
42
42
|
|
|
43
43
|
type XaiResponsesConfig = {
|
|
@@ -34,7 +34,7 @@ import { mapXaiFinishReason } from './map-xai-finish-reason';
|
|
|
34
34
|
import {
|
|
35
35
|
xaiLanguageModelChatOptions,
|
|
36
36
|
type XaiChatModelId,
|
|
37
|
-
} from './xai-chat-options';
|
|
37
|
+
} from './xai-chat-language-model-options';
|
|
38
38
|
import { xaiFailedResponseHandler } from './xai-error';
|
|
39
39
|
import { prepareTools } from './xai-prepare-tools';
|
|
40
40
|
|
package/src/xai-image-model.ts
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from '@ai-sdk/provider-utils';
|
|
16
16
|
import { z } from 'zod/v4';
|
|
17
17
|
import { xaiFailedResponseHandler } from './xai-error';
|
|
18
|
-
import { xaiImageModelOptions } from './xai-image-options';
|
|
18
|
+
import { xaiImageModelOptions } from './xai-image-model-options';
|
|
19
19
|
import type { XaiImageModelId } from './xai-image-settings';
|
|
20
20
|
|
|
21
21
|
interface XaiImageModelConfig {
|
package/src/xai-provider.ts
CHANGED
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
type FetchFunction,
|
|
15
15
|
} from '@ai-sdk/provider-utils';
|
|
16
16
|
import { XaiChatLanguageModel } from './xai-chat-language-model';
|
|
17
|
-
import type { XaiChatModelId } from './xai-chat-options';
|
|
17
|
+
import type { XaiChatModelId } from './xai-chat-language-model-options';
|
|
18
18
|
import { XaiImageModel } from './xai-image-model';
|
|
19
19
|
import type { XaiImageModelId } from './xai-image-settings';
|
|
20
20
|
import { XaiResponsesLanguageModel } from './responses/xai-responses-language-model';
|
|
21
|
-
import type { XaiResponsesModelId } from './responses/xai-responses-options';
|
|
21
|
+
import type { XaiResponsesModelId } from './responses/xai-responses-language-model-options';
|
|
22
22
|
import { xaiTools } from './tool';
|
|
23
23
|
import { VERSION } from './version';
|
|
24
24
|
import { XaiFiles } from './files/xai-files';
|
package/src/xai-video-model.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { xaiFailedResponseHandler } from './xai-error';
|
|
|
18
18
|
import {
|
|
19
19
|
xaiVideoModelOptionsSchema,
|
|
20
20
|
type XaiParsedVideoModelOptions,
|
|
21
|
-
} from './xai-video-options';
|
|
21
|
+
} from './xai-video-model-options';
|
|
22
22
|
import type { XaiVideoModelId } from './xai-video-settings';
|
|
23
23
|
|
|
24
24
|
interface XaiVideoModelConfig {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|