diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f87262a..bc7e4aa 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.15.0" + ".": "0.16.0" } diff --git a/.stats.yml b/.stats.yml index e83ea83..117951e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index efe2cd2..1a5a825 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package.json b/package.json index 1a0b64b..01688ff 100644 --- a/package.json +++ b/package.json @@ -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 ", "types": "dist/index.d.ts", diff --git a/src/resources/async/chat/completions.ts b/src/resources/async/chat/completions.ts index 7196917..71fda9d 100644 --- a/src/resources/async/chat/completions.ts +++ b/src/resources/async/chat/completions.ts @@ -225,6 +225,8 @@ export namespace CompletionCreateParams { search_internal_properties?: { [key: string]: unknown } | null; + search_language_filter?: Array | null; + search_mode?: 'web' | 'academic' | 'sec' | null; search_recency_filter?: 'hour' | 'day' | 'week' | 'month' | 'year' | null; diff --git a/src/resources/chat/completions.ts b/src/resources/chat/completions.ts index c2c563a..af81c10 100644 --- a/src/resources/chat/completions.ts +++ b/src/resources/chat/completions.ts @@ -118,6 +118,8 @@ export interface CompletionCreateParamsBase { search_internal_properties?: { [key: string]: unknown } | null; + search_language_filter?: Array | null; + search_mode?: 'web' | 'academic' | 'sec' | null; search_recency_filter?: 'hour' | 'day' | 'week' | 'month' | 'year' | null; diff --git a/src/resources/search.ts b/src/resources/search.ts index 6f1192a..201fed5 100644 --- a/src/resources/search.ts +++ b/src/resources/search.ts @@ -38,6 +38,8 @@ export namespace SearchCreateResponse { export interface SearchCreateParams { query: string | Array; + country?: string | null; + display_server_time?: boolean; max_results?: number; @@ -52,6 +54,8 @@ export interface SearchCreateParams { search_domain_filter?: Array | null; + search_language_filter?: Array | null; + search_mode?: 'web' | 'academic' | 'sec' | null; search_recency_filter?: 'hour' | 'day' | 'week' | 'month' | 'year' | null; diff --git a/src/version.ts b/src/version.ts index b67001e..be03af2 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.15.0'; // x-release-please-version +export const VERSION = '0.16.0'; // x-release-please-version diff --git a/tests/api-resources/async/chat/completions.test.ts b/tests/api-resources/async/chat/completions.test.ts index 7093c00..83fb96c 100644 --- a/tests/api-resources/async/chat/completions.test.ts +++ b/tests/api-resources/async/chat/completions.test.ts @@ -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', diff --git a/tests/api-resources/chat/completions.test.ts b/tests/api-resources/chat/completions.test.ts index b3a8086..ac0e56e 100644 --- a/tests/api-resources/chat/completions.test.ts +++ b/tests/api-resources/chat/completions.test.ts @@ -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', diff --git a/tests/api-resources/search.test.ts b/tests/api-resources/search.test.ts index caa2c09..c2e0be9 100644 --- a/tests/api-resources/search.test.ts +++ b/tests/api-resources/search.test.ts @@ -24,6 +24,7 @@ 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, @@ -31,6 +32,7 @@ describe('resource search', () => { 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', });