@ai-sdk/xai 4.0.0-canary.72 → 4.0.0-canary.74
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 +18 -0
- package/dist/index.js +1 -1
- package/docs/01-xai.mdx +4 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @ai-sdk/xai
|
|
2
2
|
|
|
3
|
+
## 4.0.0-canary.74
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [aeda373]
|
|
8
|
+
- Updated dependencies [375fdd7]
|
|
9
|
+
- Updated dependencies [b4507d5]
|
|
10
|
+
- @ai-sdk/provider-utils@5.0.0-canary.48
|
|
11
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.56
|
|
12
|
+
|
|
13
|
+
## 4.0.0-canary.73
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [bae5e2b]
|
|
18
|
+
- @ai-sdk/provider-utils@5.0.0-canary.47
|
|
19
|
+
- @ai-sdk/openai-compatible@3.0.0-canary.55
|
|
20
|
+
|
|
3
21
|
## 4.0.0-canary.72
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.js
CHANGED
package/docs/01-xai.mdx
CHANGED
|
@@ -548,7 +548,7 @@ Use xAI speech models with the `generateSpeech` function:
|
|
|
548
548
|
|
|
549
549
|
```ts
|
|
550
550
|
import { xai } from '@ai-sdk/xai';
|
|
551
|
-
import {
|
|
551
|
+
import { generateSpeech } from 'ai';
|
|
552
552
|
|
|
553
553
|
const result = await generateSpeech({
|
|
554
554
|
model: xai.speech(),
|
|
@@ -597,7 +597,7 @@ You can pass xAI-specific controls using `providerOptions.xai`:
|
|
|
597
597
|
|
|
598
598
|
```ts
|
|
599
599
|
import { xai, type XaiSpeechModelOptions } from '@ai-sdk/xai';
|
|
600
|
-
import {
|
|
600
|
+
import { generateSpeech } from 'ai';
|
|
601
601
|
|
|
602
602
|
const result = await generateSpeech({
|
|
603
603
|
model: xai.speech(),
|
|
@@ -652,7 +652,7 @@ Use xAI transcription models with the `transcribe` function:
|
|
|
652
652
|
|
|
653
653
|
```ts
|
|
654
654
|
import { xai } from '@ai-sdk/xai';
|
|
655
|
-
import {
|
|
655
|
+
import { transcribe } from 'ai';
|
|
656
656
|
import { readFile } from 'fs/promises';
|
|
657
657
|
|
|
658
658
|
const result = await transcribe({
|
|
@@ -667,7 +667,7 @@ You can pass xAI-specific controls using `providerOptions.xai`:
|
|
|
667
667
|
|
|
668
668
|
```ts
|
|
669
669
|
import { xai, type XaiTranscriptionModelOptions } from '@ai-sdk/xai';
|
|
670
|
-
import {
|
|
670
|
+
import { transcribe } from 'ai';
|
|
671
671
|
import { readFile } from 'fs/promises';
|
|
672
672
|
|
|
673
673
|
const result = await transcribe({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/xai",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.74",
|
|
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-canary.
|
|
32
|
+
"@ai-sdk/openai-compatible": "3.0.0-canary.56",
|
|
33
33
|
"@ai-sdk/provider": "4.0.0-canary.18",
|
|
34
|
-
"@ai-sdk/provider-utils": "5.0.0-canary.
|
|
34
|
+
"@ai-sdk/provider-utils": "5.0.0-canary.48"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "22.19.19",
|