Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.22.2"
".": "0.22.3"
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
9 changes: 7 additions & 2 deletions scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion src/perplexity/_version.py
Original file line number Diff line number Diff line change
@@ -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