Skip to content
Merged
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 @@
{
".": "1.75.0"
".": "1.76.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 26
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/pi-labs%2Fwithpi-5b3ff6b5a8e4ac4c271b6bd0c63b1a1163f0f87f369cc41dacb12be6713688a2.yml
openapi_spec_hash: 2fb81d6334e35d32ad09b3a5ca166be4
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/pi-labs%2Fwithpi-d1b497dd21adf36d21d3e0613ba305844a2d625e1c1034e858fd1d151d7a6b81.yml
openapi_spec_hash: 55ea7a8aa698eb390e555893328686a4
config_hash: fd3e1149c629c2972c54a66a88fd4fab
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 1.76.0 (2025-09-25)

Full Changelog: [v1.75.0...v1.76.0](https://github.com/withpi/sdk-python/compare/v1.75.0...v1.76.0)

### Features

* **api:** api update ([480f38d](https://github.com/withpi/sdk-python/commit/480f38d7fa2881f8b0a35982fa8fc6444014cb83))


### Chores

* do not install brew dependencies in ./scripts/bootstrap by default ([d62718b](https://github.com/withpi/sdk-python/commit/d62718b1b2b2507083535531127bf7f1189d557b))

## 1.75.0 (2025-09-19)

Full Changelog: [v1.74.0...v1.75.0](https://github.com/withpi/sdk-python/compare/v1.74.0...v1.75.0)
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 = "withpi"
version = "1.75.0"
version = "1.76.0"
description = "The official Python library for the Pi Client API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
14 changes: 11 additions & 3 deletions scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@ set -e

cd "$(dirname "$0")/.."

if ! command -v rye >/dev/null 2>&1 && [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then
brew bundle check >/dev/null 2>&1 || {
echo "==> Installing Homebrew dependencies…"
brew bundle
echo -n "==> Install Homebrew dependencies? (y/N): "
read -r response
case "$response" in
[yY][eE][sS]|[yY])
brew bundle
;;
*)
;;
esac
echo
}
fi

Expand Down
2 changes: 1 addition & 1 deletion src/withpi/_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__ = "withpi"
__version__ = "1.75.0" # x-release-please-version
__version__ = "1.76.0" # x-release-please-version
15 changes: 15 additions & 0 deletions src/withpi/types/scoring_system/generate_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,27 @@ class GenerateListResponseItem(BaseModel):
state: Literal["QUEUED", "RUNNING", "DONE", "ERROR", "CANCELLED"]
"""Current state of the job"""

balanced_accuracy: Optional[float] = None
"""
Weighted combination fo average accuracy per class for the labeled data and
overall accuracy for preference data.
"""

f1: Optional[float] = None
"""F1 for the labeled data."""

num_labeled_examples_used: Optional[int] = None
"""Number of labeled examples used for spec generation."""

num_preference_examples_used: Optional[int] = None
"""Number of preference examples used for spec generation."""

precision: Optional[float] = None
"""Precision for the labeled data."""

recall: Optional[float] = None
"""Recall for the labeled data."""

scoring_spec: Optional[List[Question]] = None
"""The generated scoring spec"""

Expand Down
15 changes: 15 additions & 0 deletions src/withpi/types/scoring_system/generate_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,27 @@ class GenerateRetrieveResponse(BaseModel):
state: Literal["QUEUED", "RUNNING", "DONE", "ERROR", "CANCELLED"]
"""Current state of the job"""

balanced_accuracy: Optional[float] = None
"""
Weighted combination fo average accuracy per class for the labeled data and
overall accuracy for preference data.
"""

f1: Optional[float] = None
"""F1 for the labeled data."""

num_labeled_examples_used: Optional[int] = None
"""Number of labeled examples used for spec generation."""

num_preference_examples_used: Optional[int] = None
"""Number of preference examples used for spec generation."""

precision: Optional[float] = None
"""Precision for the labeled data."""

recall: Optional[float] = None
"""Recall for the labeled data."""

scoring_spec: Optional[List[Question]] = None
"""The generated scoring spec"""

Expand Down
15 changes: 15 additions & 0 deletions src/withpi/types/scoring_system/generate_start_job_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,27 @@ class GenerateStartJobResponse(BaseModel):
state: Literal["QUEUED", "RUNNING", "DONE", "ERROR", "CANCELLED"]
"""Current state of the job"""

balanced_accuracy: Optional[float] = None
"""
Weighted combination fo average accuracy per class for the labeled data and
overall accuracy for preference data.
"""

f1: Optional[float] = None
"""F1 for the labeled data."""

num_labeled_examples_used: Optional[int] = None
"""Number of labeled examples used for spec generation."""

num_preference_examples_used: Optional[int] = None
"""Number of preference examples used for spec generation."""

precision: Optional[float] = None
"""Precision for the labeled data."""

recall: Optional[float] = None
"""Recall for the labeled data."""

scoring_spec: Optional[List[Question]] = None
"""The generated scoring spec"""

Expand Down