@perplexity-ai/perplexity_ai 0.18.2 → 0.18.4
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/LICENSE +1 -1
- package/README.md +4 -1
- package/package.json +1 -1
- package/resources/async/chat/completions.d.mts +7 -7
- package/resources/async/chat/completions.d.ts +7 -7
- package/src/resources/async/chat/completions.ts +7 -7
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.18.4 (2026-01-15)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.18.3...v0.18.4](https://github.com/perplexityai/perplexity-node/compare/v0.18.3...v0.18.4)
|
|
6
|
+
|
|
7
|
+
### Chores
|
|
8
|
+
|
|
9
|
+
* break long lines in snippets into multiline ([659cf62](https://github.com/perplexityai/perplexity-node/commit/659cf62198caebd226509583cec3e0adb729c23d))
|
|
10
|
+
* fix typo in descriptions ([9b3231f](https://github.com/perplexityai/perplexity-node/commit/9b3231fda472fca273e7777ae6204f8ca8260b38))
|
|
11
|
+
* **internal:** upgrade babel, qs, js-yaml ([837eae4](https://github.com/perplexityai/perplexity-node/commit/837eae4116e93c285e45cd8db078917f02441804))
|
|
12
|
+
|
|
13
|
+
## 0.18.3 (2026-01-05)
|
|
14
|
+
|
|
15
|
+
Full Changelog: [v0.18.2...v0.18.3](https://github.com/perplexityai/perplexity-node/compare/v0.18.2...v0.18.3)
|
|
16
|
+
|
|
17
|
+
### Chores
|
|
18
|
+
|
|
19
|
+
* **internal:** codegen related update ([1bd1a99](https://github.com/perplexityai/perplexity-node/commit/1bd1a99cd9c442e45c2614c6b775bf87aa244e8f))
|
|
20
|
+
|
|
3
21
|
## 0.18.2 (2025-12-19)
|
|
4
22
|
|
|
5
23
|
Full Changelog: [v0.18.1...v0.18.2](https://github.com/perplexityai/perplexity-node/compare/v0.18.1...v0.18.2)
|
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2026 Perplexity
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -218,7 +218,10 @@ const search = await client.search
|
|
|
218
218
|
|
|
219
219
|
// Chat completions error handling
|
|
220
220
|
const streamChunk = await client.chat.completions
|
|
221
|
-
.create({
|
|
221
|
+
.create({
|
|
222
|
+
messages: [{ role: 'user', content: 'What is the capital of France?' }],
|
|
223
|
+
model: 'sonar',
|
|
224
|
+
})
|
|
222
225
|
.catch(async (err) => {
|
|
223
226
|
if (err instanceof Perplexity.APIError) {
|
|
224
227
|
console.log(err.status); // 400
|
package/package.json
CHANGED
|
@@ -204,31 +204,31 @@ export declare namespace CompletionCreateParams {
|
|
|
204
204
|
}
|
|
205
205
|
export interface CompletionGetParams {
|
|
206
206
|
/**
|
|
207
|
-
* Query param
|
|
207
|
+
* Query param
|
|
208
208
|
*/
|
|
209
209
|
local_mode?: boolean;
|
|
210
210
|
/**
|
|
211
|
-
* Header param
|
|
211
|
+
* Header param
|
|
212
212
|
*/
|
|
213
213
|
'x-client-env'?: string;
|
|
214
214
|
/**
|
|
215
|
-
* Header param
|
|
215
|
+
* Header param
|
|
216
216
|
*/
|
|
217
217
|
'x-client-name'?: string;
|
|
218
218
|
/**
|
|
219
|
-
* Header param
|
|
219
|
+
* Header param
|
|
220
220
|
*/
|
|
221
221
|
'x-created-at-epoch-seconds'?: string;
|
|
222
222
|
/**
|
|
223
|
-
* Header param
|
|
223
|
+
* Header param
|
|
224
224
|
*/
|
|
225
225
|
'x-request-time'?: string;
|
|
226
226
|
/**
|
|
227
|
-
* Header param
|
|
227
|
+
* Header param
|
|
228
228
|
*/
|
|
229
229
|
'x-usage-tier'?: string;
|
|
230
230
|
/**
|
|
231
|
-
* Header param
|
|
231
|
+
* Header param
|
|
232
232
|
*/
|
|
233
233
|
'x-user-id'?: string;
|
|
234
234
|
}
|
|
@@ -204,31 +204,31 @@ export declare namespace CompletionCreateParams {
|
|
|
204
204
|
}
|
|
205
205
|
export interface CompletionGetParams {
|
|
206
206
|
/**
|
|
207
|
-
* Query param
|
|
207
|
+
* Query param
|
|
208
208
|
*/
|
|
209
209
|
local_mode?: boolean;
|
|
210
210
|
/**
|
|
211
|
-
* Header param
|
|
211
|
+
* Header param
|
|
212
212
|
*/
|
|
213
213
|
'x-client-env'?: string;
|
|
214
214
|
/**
|
|
215
|
-
* Header param
|
|
215
|
+
* Header param
|
|
216
216
|
*/
|
|
217
217
|
'x-client-name'?: string;
|
|
218
218
|
/**
|
|
219
|
-
* Header param
|
|
219
|
+
* Header param
|
|
220
220
|
*/
|
|
221
221
|
'x-created-at-epoch-seconds'?: string;
|
|
222
222
|
/**
|
|
223
|
-
* Header param
|
|
223
|
+
* Header param
|
|
224
224
|
*/
|
|
225
225
|
'x-request-time'?: string;
|
|
226
226
|
/**
|
|
227
|
-
* Header param
|
|
227
|
+
* Header param
|
|
228
228
|
*/
|
|
229
229
|
'x-usage-tier'?: string;
|
|
230
230
|
/**
|
|
231
|
-
* Header param
|
|
231
|
+
* Header param
|
|
232
232
|
*/
|
|
233
233
|
'x-user-id'?: string;
|
|
234
234
|
}
|
|
@@ -363,37 +363,37 @@ export namespace CompletionCreateParams {
|
|
|
363
363
|
|
|
364
364
|
export interface CompletionGetParams {
|
|
365
365
|
/**
|
|
366
|
-
* Query param
|
|
366
|
+
* Query param
|
|
367
367
|
*/
|
|
368
368
|
local_mode?: boolean;
|
|
369
369
|
|
|
370
370
|
/**
|
|
371
|
-
* Header param
|
|
371
|
+
* Header param
|
|
372
372
|
*/
|
|
373
373
|
'x-client-env'?: string;
|
|
374
374
|
|
|
375
375
|
/**
|
|
376
|
-
* Header param
|
|
376
|
+
* Header param
|
|
377
377
|
*/
|
|
378
378
|
'x-client-name'?: string;
|
|
379
379
|
|
|
380
380
|
/**
|
|
381
|
-
* Header param
|
|
381
|
+
* Header param
|
|
382
382
|
*/
|
|
383
383
|
'x-created-at-epoch-seconds'?: string;
|
|
384
384
|
|
|
385
385
|
/**
|
|
386
|
-
* Header param
|
|
386
|
+
* Header param
|
|
387
387
|
*/
|
|
388
388
|
'x-request-time'?: string;
|
|
389
389
|
|
|
390
390
|
/**
|
|
391
|
-
* Header param
|
|
391
|
+
* Header param
|
|
392
392
|
*/
|
|
393
393
|
'x-usage-tier'?: string;
|
|
394
394
|
|
|
395
395
|
/**
|
|
396
|
-
* Header param
|
|
396
|
+
* Header param
|
|
397
397
|
*/
|
|
398
398
|
'x-user-id'?: string;
|
|
399
399
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.18.
|
|
1
|
+
export const VERSION = '0.18.4'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.18.
|
|
1
|
+
export declare const VERSION = "0.18.4";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.18.
|
|
1
|
+
export declare const VERSION = "0.18.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.18.
|
|
1
|
+
export const VERSION = '0.18.4'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|