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

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,219 @@
1
1
  # @ai-sdk/perplexity
2
2
 
3
+ ## 4.0.0-beta.30
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [2e98477]
8
+ - @ai-sdk/provider-utils@5.0.0-beta.26
9
+
10
+ ## 4.0.0-beta.29
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [eea8d98]
15
+ - @ai-sdk/provider-utils@5.0.0-beta.25
16
+
17
+ ## 4.0.0-beta.28
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [f807e45]
22
+ - @ai-sdk/provider-utils@5.0.0-beta.24
23
+
24
+ ## 4.0.0-beta.27
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [350ea38]
29
+ - @ai-sdk/provider-utils@5.0.0-beta.23
30
+
31
+ ## 4.0.0-beta.26
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [083947b]
36
+ - @ai-sdk/provider-utils@5.0.0-beta.22
37
+
38
+ ## 4.0.0-beta.25
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [add1126]
43
+ - @ai-sdk/provider-utils@5.0.0-beta.21
44
+
45
+ ## 4.0.0-beta.24
46
+
47
+ ### Patch Changes
48
+
49
+ - b3976a2: Add workflow serialization support to all provider models.
50
+
51
+ **`@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.
52
+
53
+ **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.
54
+
55
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
56
+
57
+ - Updated dependencies [b3976a2]
58
+ - Updated dependencies [ff5eba1]
59
+ - @ai-sdk/provider-utils@5.0.0-beta.20
60
+ - @ai-sdk/provider@4.0.0-beta.12
61
+
62
+ ## 4.0.0-beta.23
63
+
64
+ ### Major Changes
65
+
66
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [ef992f8]
71
+ - @ai-sdk/provider@4.0.0-beta.11
72
+ - @ai-sdk/provider-utils@5.0.0-beta.19
73
+
74
+ ## 4.0.0-beta.22
75
+
76
+ ### Patch Changes
77
+
78
+ - Updated dependencies [90e2d8a]
79
+ - @ai-sdk/provider-utils@5.0.0-beta.18
80
+
81
+ ## 4.0.0-beta.21
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies [3ae1786]
86
+ - @ai-sdk/provider-utils@5.0.0-beta.17
87
+
88
+ ## 4.0.0-beta.20
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies [176466a]
93
+ - @ai-sdk/provider@4.0.0-beta.10
94
+ - @ai-sdk/provider-utils@5.0.0-beta.16
95
+
96
+ ## 4.0.0-beta.19
97
+
98
+ ### Patch Changes
99
+
100
+ - Updated dependencies [e311194]
101
+ - @ai-sdk/provider@4.0.0-beta.9
102
+ - @ai-sdk/provider-utils@5.0.0-beta.15
103
+
104
+ ## 4.0.0-beta.18
105
+
106
+ ### Patch Changes
107
+
108
+ - Updated dependencies [34bd95d]
109
+ - Updated dependencies [008271d]
110
+ - @ai-sdk/provider@4.0.0-beta.8
111
+ - @ai-sdk/provider-utils@5.0.0-beta.14
112
+
113
+ ## 4.0.0-beta.17
114
+
115
+ ### Patch Changes
116
+
117
+ - Updated dependencies [b0c2869]
118
+ - Updated dependencies [7e26e81]
119
+ - @ai-sdk/provider-utils@5.0.0-beta.13
120
+
121
+ ## 4.0.0-beta.16
122
+
123
+ ### Patch Changes
124
+
125
+ - Updated dependencies [46d1149]
126
+ - @ai-sdk/provider-utils@5.0.0-beta.12
127
+
128
+ ## 4.0.0-beta.15
129
+
130
+ ### Patch Changes
131
+
132
+ - Updated dependencies [6fd51c0]
133
+ - @ai-sdk/provider-utils@5.0.0-beta.11
134
+ - @ai-sdk/provider@4.0.0-beta.7
135
+
136
+ ## 4.0.0-beta.14
137
+
138
+ ### Patch Changes
139
+
140
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
141
+ - Updated dependencies [c29a26f]
142
+ - @ai-sdk/provider-utils@5.0.0-beta.10
143
+ - @ai-sdk/provider@4.0.0-beta.6
144
+
145
+ ## 4.0.0-beta.13
146
+
147
+ ### Patch Changes
148
+
149
+ - 38fc777: Add AI Gateway hint to provider READMEs
150
+
151
+ ## 4.0.0-beta.12
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies [2e17091]
156
+ - @ai-sdk/provider-utils@5.0.0-beta.9
157
+
158
+ ## 4.0.0-beta.11
159
+
160
+ ### Patch Changes
161
+
162
+ - Updated dependencies [986c6fd]
163
+ - Updated dependencies [493295c]
164
+ - @ai-sdk/provider-utils@5.0.0-beta.8
165
+
166
+ ## 4.0.0-beta.10
167
+
168
+ ### Patch Changes
169
+
170
+ - Updated dependencies [1f509d4]
171
+ - @ai-sdk/provider-utils@5.0.0-beta.7
172
+ - @ai-sdk/provider@4.0.0-beta.5
173
+
174
+ ## 4.0.0-beta.9
175
+
176
+ ### Patch Changes
177
+
178
+ - d976e8a: feat(perplexity): expose provider-reported cost in providerMetadata
179
+
180
+ ## 4.0.0-beta.8
181
+
182
+ ### Patch Changes
183
+
184
+ - 5259a95: chore: add warning for providers that do not support new reasoning parameter
185
+
186
+ ## 4.0.0-beta.7
187
+
188
+ ### Patch Changes
189
+
190
+ - Updated dependencies [3887c70]
191
+ - @ai-sdk/provider-utils@5.0.0-beta.6
192
+ - @ai-sdk/provider@4.0.0-beta.4
193
+
194
+ ## 4.0.0-beta.6
195
+
196
+ ### Patch Changes
197
+
198
+ - Updated dependencies [776b617]
199
+ - @ai-sdk/provider-utils@5.0.0-beta.5
200
+ - @ai-sdk/provider@4.0.0-beta.3
201
+
202
+ ## 4.0.0-beta.5
203
+
204
+ ### Patch Changes
205
+
206
+ - Updated dependencies [61753c3]
207
+ - @ai-sdk/provider-utils@5.0.0-beta.4
208
+
209
+ ## 4.0.0-beta.4
210
+
211
+ ### Patch Changes
212
+
213
+ - Updated dependencies [f7d4f01]
214
+ - @ai-sdk/provider-utils@5.0.0-beta.3
215
+ - @ai-sdk/provider@4.0.0-beta.2
216
+
3
217
  ## 4.0.0-beta.3
4
218
 
5
219
  ### Patch Changes
@@ -219,13 +433,13 @@
219
433
  Before
220
434
 
221
435
  ```ts
222
- model.textEmbeddingModel('my-model-id');
436
+ model.textEmbeddingModel("my-model-id");
223
437
  ```
224
438
 
225
439
  After
226
440
 
227
441
  ```ts
228
- model.embeddingModel('my-model-id');
442
+ model.embeddingModel("my-model-id");
229
443
  ```
230
444
 
231
445
  - 95f65c2: chore: use import \* from zod/v4
@@ -430,13 +644,13 @@
430
644
  Before
431
645
 
432
646
  ```ts
433
- model.textEmbeddingModel('my-model-id');
647
+ model.textEmbeddingModel("my-model-id");
434
648
  ```
435
649
 
436
650
  After
437
651
 
438
652
  ```ts
439
- model.embeddingModel('my-model-id');
653
+ model.embeddingModel("my-model-id");
440
654
  ```
441
655
 
442
656
  - 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: