diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 79df23f..3c82815 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.22.2" + ".": "0.22.3" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0db0027..fbe01e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.22.3 (2025-12-19) + +Full Changelog: [v0.22.2...v0.22.3](https://github.com/perplexityai/perplexity-py/compare/v0.22.2...v0.22.3) + +### Chores + +* **internal:** add `--fix` argument to lint script ([6b73854](https://github.com/perplexityai/perplexity-py/commit/6b7385457abfe0ca60cfa9a69233ef88ff9beebc)) + + +### Documentation + +* add more examples ([e30d66d](https://github.com/perplexityai/perplexity-py/commit/e30d66d2742254da014330466b5dbf58933c20f3)) + ## 0.22.2 (2025-12-17) Full Changelog: [v0.22.1...v0.22.2](https://github.com/perplexityai/perplexity-py/compare/v0.22.1...v0.22.2) diff --git a/README.md b/README.md index 9e11f1c..0c38bf1 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ stream = client.chat.completions.create( messages=[ { "role": "user", - "content": "What is the capital of France?", + "content": "Tell me about the latest developments in AI", } ], model="sonar", @@ -176,7 +176,7 @@ stream = await client.chat.completions.create( messages=[ { "role": "user", - "content": "What is the capital of France?", + "content": "Tell me about the latest developments in AI", } ], model="sonar", diff --git a/pyproject.toml b/pyproject.toml index c588e88..2bad27c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "perplexityai" -version = "0.22.2" +version = "0.22.3" description = "The official Python library for the perplexity API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/scripts/lint b/scripts/lint index 3696fef..c66ff79 100755 --- a/scripts/lint +++ b/scripts/lint @@ -4,8 +4,13 @@ set -e cd "$(dirname "$0")/.." -echo "==> Running lints" -rye run lint +if [ "$1" = "--fix" ]; then + echo "==> Running lints with --fix" + rye run fix:ruff +else + echo "==> Running lints" + rye run lint +fi echo "==> Making sure it imports" rye run python -c 'import perplexity' diff --git a/src/perplexity/_version.py b/src/perplexity/_version.py index f6a41ea..b18b84d 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.22.2" # x-release-please-version +__version__ = "0.22.3" # x-release-please-version