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: diff --git a/.gitignore b/.gitignore index 95ceb18..3824f4c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .prism.log +.stdy.log _dev __pycache__ 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/_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 + "[]" 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