From 8fb53095aeadd031d454b0db588ab4dc795a0a3a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 23 Mar 2026 12:45:08 +0000 Subject: [PATCH 1/4] chore(internal): update gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 95ceb18..3824f4c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .prism.log +.stdy.log _dev __pycache__ From 25a72f3f08edbf0600e62c07a122910cb05d1123 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 24 Mar 2026 15:14:41 +0000 Subject: [PATCH 2/4] chore(ci): skip lint on metadata-only changes Note that we still want to run tests, as these depend on the metadata. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cd1307..eb0fdcf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: timeout-minutes: 10 name: lint runs-on: ${{ github.repository == 'stainless-sdks/perplexity-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} - if: github.event_name == 'push' || github.event.pull_request.head.repo.fork + if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') steps: - uses: actions/checkout@v6 @@ -38,7 +38,7 @@ jobs: run: ./scripts/lint build: - if: github.event_name == 'push' || github.event.pull_request.head.repo.fork + if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') timeout-minutes: 10 name: build permissions: From 3639a28cd332b7df2b194f35f12b84ce5bf7f1af Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 26 Mar 2026 19:23:36 +0000 Subject: [PATCH 3/4] feat(internal): implement indices array format for query and form serialization --- src/perplexity/_qs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/perplexity/_qs.py b/src/perplexity/_qs.py index ada6fd3..de8c99b 100644 --- a/src/perplexity/_qs.py +++ b/src/perplexity/_qs.py @@ -101,7 +101,10 @@ def _stringify_item( items.extend(self._stringify_item(key, item, opts)) return items elif array_format == "indices": - raise NotImplementedError("The array indices format is not supported yet") + items = [] + for i, item in enumerate(value): + items.extend(self._stringify_item(f"{key}[{i}]", item, opts)) + return items elif array_format == "brackets": items = [] key = key + "[]" From 72ba9598e0480a1901c36c08090ec0755ccf4124 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 26 Mar 2026 19:24:13 +0000 Subject: [PATCH 4/4] release: 0.31.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 14 ++++++++++++++ pyproject.toml | 2 +- src/perplexity/_version.py | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1d3d204..f81bf99 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.30.4" + ".": "0.31.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b3dc35..eaf5e28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.31.0 (2026-03-26) + +Full Changelog: [v0.30.4...v0.31.0](https://github.com/perplexityai/perplexity-py/compare/v0.30.4...v0.31.0) + +### Features + +* **internal:** implement indices array format for query and form serialization ([3639a28](https://github.com/perplexityai/perplexity-py/commit/3639a28cd332b7df2b194f35f12b84ce5bf7f1af)) + + +### Chores + +* **ci:** skip lint on metadata-only changes ([25a72f3](https://github.com/perplexityai/perplexity-py/commit/25a72f3f08edbf0600e62c07a122910cb05d1123)) +* **internal:** update gitignore ([8fb5309](https://github.com/perplexityai/perplexity-py/commit/8fb53095aeadd031d454b0db588ab4dc795a0a3a)) + ## 0.30.4 (2026-03-22) Full Changelog: [v0.30.3...v0.30.4](https://github.com/perplexityai/perplexity-py/compare/v0.30.3...v0.30.4) diff --git a/pyproject.toml b/pyproject.toml index 176c3c7..cabd46a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "perplexityai" -version = "0.30.4" +version = "0.31.0" description = "The official Python library for the perplexity API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/perplexity/_version.py b/src/perplexity/_version.py index cd49110..4f40820 100644 --- a/src/perplexity/_version.py +++ b/src/perplexity/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "perplexity" -__version__ = "0.30.4" # x-release-please-version +__version__ = "0.31.0" # x-release-please-version