@ai-sdk/perplexity 4.0.0-beta.3 → 4.0.0-beta.31

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 CHANGED
@@ -1,5 +1,231 @@
1
1
  # @ai-sdk/perplexity
2
2
 
3
+ ## 4.0.0-beta.31
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [785fe16]
8
+ - Updated dependencies [67df0a0]
9
+ - Updated dependencies [befb78c]
10
+ - Updated dependencies [0458559]
11
+ - Updated dependencies [5852c0a]
12
+ - Updated dependencies [fc92055]
13
+ - @ai-sdk/provider-utils@5.0.0-beta.27
14
+
15
+ ## 4.0.0-beta.30
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [2e98477]
20
+ - @ai-sdk/provider-utils@5.0.0-beta.26
21
+
22
+ ## 4.0.0-beta.29
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [eea8d98]
27
+ - @ai-sdk/provider-utils@5.0.0-beta.25
28
+
29
+ ## 4.0.0-beta.28
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [f807e45]
34
+ - @ai-sdk/provider-utils@5.0.0-beta.24
35
+
36
+ ## 4.0.0-beta.27
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [350ea38]
41
+ - @ai-sdk/provider-utils@5.0.0-beta.23
42
+
43
+ ## 4.0.0-beta.26
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies [083947b]
48
+ - @ai-sdk/provider-utils@5.0.0-beta.22
49
+
50
+ ## 4.0.0-beta.25
51
+
52
+ ### Patch Changes
53
+
54
+ - Updated dependencies [add1126]
55
+ - @ai-sdk/provider-utils@5.0.0-beta.21
56
+
57
+ ## 4.0.0-beta.24
58
+
59
+ ### Patch Changes
60
+
61
+ - b3976a2: Add workflow serialization support to all provider models.
62
+
63
+ **`@ai-sdk/provider-utils`:** New `serializeModel()` helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.
64
+
65
+ **All providers:** `headers` is now optional in provider config types. This is non-breaking — existing code that passes `headers` continues to work. Custom provider implementations that construct model configs manually can now omit `headers`, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.
66
+
67
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
68
+
69
+ - Updated dependencies [b3976a2]
70
+ - Updated dependencies [ff5eba1]
71
+ - @ai-sdk/provider-utils@5.0.0-beta.20
72
+ - @ai-sdk/provider@4.0.0-beta.12
73
+
74
+ ## 4.0.0-beta.23
75
+
76
+ ### Major Changes
77
+
78
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [ef992f8]
83
+ - @ai-sdk/provider@4.0.0-beta.11
84
+ - @ai-sdk/provider-utils@5.0.0-beta.19
85
+
86
+ ## 4.0.0-beta.22
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies [90e2d8a]
91
+ - @ai-sdk/provider-utils@5.0.0-beta.18
92
+
93
+ ## 4.0.0-beta.21
94
+
95
+ ### Patch Changes
96
+
97
+ - Updated dependencies [3ae1786]
98
+ - @ai-sdk/provider-utils@5.0.0-beta.17
99
+
100
+ ## 4.0.0-beta.20
101
+
102
+ ### Patch Changes
103
+
104
+ - Updated dependencies [176466a]
105
+ - @ai-sdk/provider@4.0.0-beta.10
106
+ - @ai-sdk/provider-utils@5.0.0-beta.16
107
+
108
+ ## 4.0.0-beta.19
109
+
110
+ ### Patch Changes
111
+
112
+ - Updated dependencies [e311194]
113
+ - @ai-sdk/provider@4.0.0-beta.9
114
+ - @ai-sdk/provider-utils@5.0.0-beta.15
115
+
116
+ ## 4.0.0-beta.18
117
+
118
+ ### Patch Changes
119
+
120
+ - Updated dependencies [34bd95d]
121
+ - Updated dependencies [008271d]
122
+ - @ai-sdk/provider@4.0.0-beta.8
123
+ - @ai-sdk/provider-utils@5.0.0-beta.14
124
+
125
+ ## 4.0.0-beta.17
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies [b0c2869]
130
+ - Updated dependencies [7e26e81]
131
+ - @ai-sdk/provider-utils@5.0.0-beta.13
132
+
133
+ ## 4.0.0-beta.16
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies [46d1149]
138
+ - @ai-sdk/provider-utils@5.0.0-beta.12
139
+
140
+ ## 4.0.0-beta.15
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [6fd51c0]
145
+ - @ai-sdk/provider-utils@5.0.0-beta.11
146
+ - @ai-sdk/provider@4.0.0-beta.7
147
+
148
+ ## 4.0.0-beta.14
149
+
150
+ ### Patch Changes
151
+
152
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
153
+ - Updated dependencies [c29a26f]
154
+ - @ai-sdk/provider-utils@5.0.0-beta.10
155
+ - @ai-sdk/provider@4.0.0-beta.6
156
+
157
+ ## 4.0.0-beta.13
158
+
159
+ ### Patch Changes
160
+
161
+ - 38fc777: Add AI Gateway hint to provider READMEs
162
+
163
+ ## 4.0.0-beta.12
164
+
165
+ ### Patch Changes
166
+
167
+ - Updated dependencies [2e17091]
168
+ - @ai-sdk/provider-utils@5.0.0-beta.9
169
+
170
+ ## 4.0.0-beta.11
171
+
172
+ ### Patch Changes
173
+
174
+ - Updated dependencies [986c6fd]
175
+ - Updated dependencies [493295c]
176
+ - @ai-sdk/provider-utils@5.0.0-beta.8
177
+
178
+ ## 4.0.0-beta.10
179
+
180
+ ### Patch Changes
181
+
182
+ - Updated dependencies [1f509d4]
183
+ - @ai-sdk/provider-utils@5.0.0-beta.7
184
+ - @ai-sdk/provider@4.0.0-beta.5
185
+
186
+ ## 4.0.0-beta.9
187
+
188
+ ### Patch Changes
189
+
190
+ - d976e8a: feat(perplexity): expose provider-reported cost in providerMetadata
191
+
192
+ ## 4.0.0-beta.8
193
+
194
+ ### Patch Changes
195
+
196
+ - 5259a95: chore: add warning for providers that do not support new reasoning parameter
197
+
198
+ ## 4.0.0-beta.7
199
+
200
+ ### Patch Changes
201
+
202
+ - Updated dependencies [3887c70]
203
+ - @ai-sdk/provider-utils@5.0.0-beta.6
204
+ - @ai-sdk/provider@4.0.0-beta.4
205
+
206
+ ## 4.0.0-beta.6
207
+
208
+ ### Patch Changes
209
+
210
+ - Updated dependencies [776b617]
211
+ - @ai-sdk/provider-utils@5.0.0-beta.5
212
+ - @ai-sdk/provider@4.0.0-beta.3
213
+
214
+ ## 4.0.0-beta.5
215
+
216
+ ### Patch Changes
217
+
218
+ - Updated dependencies [61753c3]
219
+ - @ai-sdk/provider-utils@5.0.0-beta.4
220
+
221
+ ## 4.0.0-beta.4
222
+
223
+ ### Patch Changes
224
+
225
+ - Updated dependencies [f7d4f01]
226
+ - @ai-sdk/provider-utils@5.0.0-beta.3
227
+ - @ai-sdk/provider@4.0.0-beta.2
228
+
3
229
  ## 4.0.0-beta.3
4
230
 
5
231
  ### Patch Changes
@@ -219,13 +445,13 @@
219
445
  Before
220
446
 
221
447
  ```ts
222
- model.textEmbeddingModel('my-model-id');
448
+ model.textEmbeddingModel("my-model-id");
223
449
  ```
224
450
 
225
451
  After
226
452
 
227
453
  ```ts
228
- model.embeddingModel('my-model-id');
454
+ model.embeddingModel("my-model-id");
229
455
  ```
230
456
 
231
457
  - 95f65c2: chore: use import \* from zod/v4
@@ -430,13 +656,13 @@
430
656
  Before
431
657
 
432
658
  ```ts
433
- model.textEmbeddingModel('my-model-id');
659
+ model.textEmbeddingModel("my-model-id");
434
660
  ```
435
661
 
436
662
  After
437
663
 
438
664
  ```ts
439
- model.embeddingModel('my-model-id');
665
+ model.embeddingModel("my-model-id");
440
666
  ```
441
667
 
442
668
  - Updated dependencies [8d9e8ad]
package/README.md CHANGED
@@ -14,6 +14,8 @@ contains language model support for Perplexity's Sonar API - a powerful answer e
14
14
  - Data privacy - no training on customer data
15
15
  - Self-serve API access with scalable pricing
16
16
 
17
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access Perplexity (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
18
+
17
19
  ## Setup
18
20
 
19
21
  The Perplexity provider is available in the `@ai-sdk/perplexity` module. You can install it with: