Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.15.0"
".": "0.16.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-5d4ba4296d72d87995a2189a991e710a77b4b73cc275ad03d8a0eec245cf55db.yml
openapi_spec_hash: 5d29546ef1490dda18cda8ca97cd665e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-561a19ba076e791a88215cc6d79b769a5c6e617b9afcc4098d70e7c82cc7d2e1.yml
openapi_spec_hash: 5de27332f3b6a76f8d56ee7f9f65817c
config_hash: 5b10428c82f4119aa4837f03046d0e5c
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.16.0 (2025-11-04)

Full Changelog: [v0.15.0...v0.16.0](https://github.com/perplexityai/perplexity-node/compare/v0.15.0...v0.16.0)

### Features

* **api:** add country param ([8782141](https://github.com/perplexityai/perplexity-node/commit/8782141ab736df4e79e068020ff3539d70b114ce))

## 0.15.0 (2025-10-31)

Full Changelog: [v0.14.0...v0.15.0](https://github.com/perplexityai/perplexity-node/compare/v0.14.0...v0.15.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perplexity-ai/perplexity_ai",
"version": "0.15.0",
"version": "0.16.0",
"description": "The official TypeScript library for the Perplexity API",
"author": "Perplexity <api@perplexity.ai>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/resources/async/chat/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ export namespace CompletionCreateParams {

search_internal_properties?: { [key: string]: unknown } | null;

search_language_filter?: Array<string> | null;

search_mode?: 'web' | 'academic' | 'sec' | null;

search_recency_filter?: 'hour' | 'day' | 'week' | 'month' | 'year' | null;
Expand Down
2 changes: 2 additions & 0 deletions src/resources/chat/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ export interface CompletionCreateParamsBase {

search_internal_properties?: { [key: string]: unknown } | null;

search_language_filter?: Array<string> | null;

search_mode?: 'web' | 'academic' | 'sec' | null;

search_recency_filter?: 'hour' | 'day' | 'week' | 'month' | 'year' | null;
Expand Down
4 changes: 4 additions & 0 deletions src/resources/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export namespace SearchCreateResponse {
export interface SearchCreateParams {
query: string | Array<string>;

country?: string | null;

display_server_time?: boolean;

max_results?: number;
Expand All @@ -52,6 +54,8 @@ export interface SearchCreateParams {

search_domain_filter?: Array<string> | null;

search_language_filter?: Array<string> | null;

search_mode?: 'web' | 'academic' | 'sec' | null;

search_recency_filter?: 'hour' | 'day' | 'week' | 'month' | 'year' | null;
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.15.0'; // x-release-please-version
export const VERSION = '0.16.0'; // x-release-please-version
1 change: 1 addition & 0 deletions tests/api-resources/async/chat/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ describe('resource completions', () => {
search_before_date_filter: 'search_before_date_filter',
search_domain_filter: ['string'],
search_internal_properties: { foo: 'bar' },
search_language_filter: ['string'],
search_mode: 'web',
search_recency_filter: 'hour',
search_tenant: 'search_tenant',
Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/chat/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ describe('resource completions', () => {
search_before_date_filter: 'search_before_date_filter',
search_domain_filter: ['string'],
search_internal_properties: { foo: 'bar' },
search_language_filter: ['string'],
search_mode: 'web',
search_recency_filter: 'hour',
search_tenant: 'search_tenant',
Expand Down
2 changes: 2 additions & 0 deletions tests/api-resources/search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ describe('resource search', () => {
test.skip('create: required and optional params', async () => {
const response = await client.search.create({
query: 'string',
country: 'country',
display_server_time: true,
max_results: 0,
max_tokens: 0,
max_tokens_per_page: 0,
search_after_date_filter: 'search_after_date_filter',
search_before_date_filter: 'search_before_date_filter',
search_domain_filter: ['string'],
search_language_filter: ['string'],
search_mode: 'web',
search_recency_filter: 'hour',
});
Expand Down