From 1c38fdb841ddc425fa36e9ef136676b34033e59f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 20:52:43 +0000 Subject: [PATCH 1/2] fix(search): remove search_context_size from search.create (premature) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per Mikhail's request 2026-05-27 in group DM: backend naming rename is in progress across multiple services; SAPI currently accepts only `snippet_mode`. The SDK should not expose `search_context_size` on `/search` until the cross-service rename lands. Pure subtraction — removes one typed kwarg from ApiSearchRequest. All other 0.35.0 additions retained: - background param + responses.retrieve method - xhigh/minimal reasoning effort - Status.queued/cancelled enum values - streaming fix from 0.34.1 Sonar (chat.completions web_search_options.search_context_size) untouched. --- .stats.yml | 4 ++-- src/resources/search.ts | 6 ------ tests/api-resources/search.test.ts | 1 - 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index aa3b4f6..d1807d0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 11 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai/perplexity-fff71875865f090e567436080392bfe633cefac2a82f5eba143ca6fcfed86a56.yml -openapi_spec_hash: 2cb780b456c70cbdcb1ba0182f424c9b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai/perplexity-6f1190943034b93890a9c218eea0630d4b0de4018e3ca97a48fb467bdcf0c5a2.yml +openapi_spec_hash: 852b17614efb5895a656a42d5fa2f08a config_hash: 059988c88f0dc18e9e393daed94b5eb6 diff --git a/src/resources/search.ts b/src/resources/search.ts index a2e9a8f..44b743e 100644 --- a/src/resources/search.ts +++ b/src/resources/search.ts @@ -56,12 +56,6 @@ export interface SearchCreateParams { search_before_date_filter?: string | null; - /** - * Controls how much search context is retrieved. Higher values return more content - * per result. - */ - search_context_size?: 'low' | 'medium' | 'high' | null; - search_domain_filter?: Array | null; search_language_filter?: Array | null; diff --git a/tests/api-resources/search.test.ts b/tests/api-resources/search.test.ts index 55a676a..009f0df 100644 --- a/tests/api-resources/search.test.ts +++ b/tests/api-resources/search.test.ts @@ -33,7 +33,6 @@ describe('resource search', () => { max_tokens_per_page: 0, search_after_date_filter: 'search_after_date_filter', search_before_date_filter: 'search_before_date_filter', - search_context_size: 'low', search_domain_filter: ['string'], search_language_filter: ['string'], search_mode: 'web', From 8204bcfe522cd75c62aab199a998166c015f1d3d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 20:53:03 +0000 Subject: [PATCH 2/2] release: 0.30.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 716d004..df0c791 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.30.0" + ".": "0.30.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f5a2f5..460d8fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.30.1 (2026-05-27) + +Full Changelog: [v0.30.0...v0.30.1](https://github.com/perplexityai/perplexity-node/compare/v0.30.0...v0.30.1) + +### Bug Fixes + +* **search:** remove search_context_size from search.create (premature) ([1c38fdb](https://github.com/perplexityai/perplexity-node/commit/1c38fdb841ddc425fa36e9ef136676b34033e59f)) + ## 0.30.0 (2026-05-27) Full Changelog: [v0.29.1...v0.30.0](https://github.com/perplexityai/perplexity-node/compare/v0.29.1...v0.30.0) diff --git a/package.json b/package.json index f34d9be..fc22aaa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@perplexity-ai/perplexity_ai", - "version": "0.30.0", + "version": "0.30.1", "description": "The official TypeScript library for the Perplexity API", "author": "Perplexity ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 91a9bb6..3a830f1 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.30.0'; // x-release-please-version +export const VERSION = '0.30.1'; // x-release-please-version