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.73.0"
".": "1.74.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 29
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/pi-labs%2Fwithpi-faad46442edb6996db5c98a0f07f2164216854d0297dd2f4012ab070a0177eaa.yml
openapi_spec_hash: 4a0019defdc5d1d5e52b625e599f6d36
configured_endpoints: 28
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/pi-labs%2Fwithpi-7bbc18b8a1475905c0c210baabf634f248bd714721db886c257b1717e42746e3.yml
openapi_spec_hash: 0dcc4e7471a1b19ee6ebe1342a171835
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.74.0 (2025-09-18)

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

### Features

* **api:** api update ([985599e](https://github.com/withpi/sdk-python/commit/985599ee7b0ae2a7a02819332f2d1f42194e5821))


### Chores

* **internal:** update pydantic dependency ([854b393](https://github.com/withpi/sdk-python/commit/854b3930cac89de3ba0c361e5d53fcd44f076758))

## 1.73.0 (2025-09-10)

Full Changelog: [v1.72.0...v1.73.0](https://github.com/withpi/sdk-python/compare/v1.72.0...v1.73.0)
Expand Down
13 changes: 0 additions & 13 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ from withpi.types import (
DataGenerationStatus,
Example,
ExplorationMode,
QueryClassifierResult,
Question,
ScoringSpecCalibrationStatus,
ScoringSystemMetrics,
Expand Down Expand Up @@ -128,18 +127,6 @@ Methods:
- <code title="post /search/embed">client.search.<a href="./src/withpi/resources/search/search.py">embed</a>(\*\*<a href="src/withpi/types/search_embed_params.py">params</a>) -> <a href="./src/withpi/types/search_embed_response.py">SearchEmbedResponse</a></code>
- <code title="post /search/query_to_passage/score">client.search.<a href="./src/withpi/resources/search/search.py">rank</a>(\*\*<a href="src/withpi/types/search_rank_params.py">params</a>) -> <a href="./src/withpi/types/search_rank_response.py">SearchRankResponse</a></code>

## QueryClassifier

Types:

```python
from withpi.types.search import QueryClassifierClassifyResponse
```

Methods:

- <code title="post /search/query_classifier/classify">client.search.query_classifier.<a href="./src/withpi/resources/search/query_classifier.py">classify</a>(\*\*<a href="src/withpi/types/search/query_classifier_classify_params.py">params</a>) -> <a href="./src/withpi/types/search/query_classifier_classify_response.py">QueryClassifierClassifyResponse</a></code>

## Groundedness

Types:
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.73.0"
version = "1.74.0"
description = "The official Python library for the Pi Client API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
7 changes: 5 additions & 2 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ pluggy==1.5.0
propcache==0.3.1
# via aiohttp
# via yarl
pydantic==2.10.3
pydantic==2.11.9
# via withpi
pydantic-core==2.27.1
pydantic-core==2.33.2
# via pydantic
pygments==2.18.0
# via rich
Expand Down Expand Up @@ -125,7 +125,10 @@ typing-extensions==4.12.2
# via pydantic
# via pydantic-core
# via pyright
# via typing-inspection
# via withpi
typing-inspection==0.4.1
# via pydantic
virtualenv==20.24.5
# via nox
yarl==1.20.0
Expand Down
7 changes: 5 additions & 2 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ multidict==6.4.4
propcache==0.3.1
# via aiohttp
# via yarl
pydantic==2.10.3
pydantic==2.11.9
# via withpi
pydantic-core==2.27.1
pydantic-core==2.33.2
# via pydantic
sniffio==1.3.0
# via anyio
Expand All @@ -67,6 +67,9 @@ typing-extensions==4.12.2
# via multidict
# via pydantic
# via pydantic-core
# via typing-inspection
# via withpi
typing-inspection==0.4.1
# via pydantic
yarl==1.20.0
# via aiohttp
14 changes: 10 additions & 4 deletions src/withpi/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,15 @@ def model_dump(
mode: Literal["json", "python"] | str = "python",
include: IncEx | None = None,
exclude: IncEx | None = None,
by_alias: bool = False,
by_alias: bool | None = None,
exclude_unset: bool = False,
exclude_defaults: bool = False,
exclude_none: bool = False,
round_trip: bool = False,
warnings: bool | Literal["none", "warn", "error"] = True,
context: dict[str, Any] | None = None,
serialize_as_any: bool = False,
fallback: Callable[[Any], Any] | None = None,
) -> dict[str, Any]:
"""Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump

Expand Down Expand Up @@ -295,10 +296,12 @@ def model_dump(
raise ValueError("context is only supported in Pydantic v2")
if serialize_as_any != False:
raise ValueError("serialize_as_any is only supported in Pydantic v2")
if fallback is not None:
raise ValueError("fallback is only supported in Pydantic v2")
dumped = super().dict( # pyright: ignore[reportDeprecated]
include=include,
exclude=exclude,
by_alias=by_alias,
by_alias=by_alias if by_alias is not None else False,
exclude_unset=exclude_unset,
exclude_defaults=exclude_defaults,
exclude_none=exclude_none,
Expand All @@ -313,13 +316,14 @@ def model_dump_json(
indent: int | None = None,
include: IncEx | None = None,
exclude: IncEx | None = None,
by_alias: bool = False,
by_alias: bool | None = None,
exclude_unset: bool = False,
exclude_defaults: bool = False,
exclude_none: bool = False,
round_trip: bool = False,
warnings: bool | Literal["none", "warn", "error"] = True,
context: dict[str, Any] | None = None,
fallback: Callable[[Any], Any] | None = None,
serialize_as_any: bool = False,
) -> str:
"""Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json
Expand Down Expand Up @@ -348,11 +352,13 @@ def model_dump_json(
raise ValueError("context is only supported in Pydantic v2")
if serialize_as_any != False:
raise ValueError("serialize_as_any is only supported in Pydantic v2")
if fallback is not None:
raise ValueError("fallback is only supported in Pydantic v2")
return super().json( # type: ignore[reportDeprecated]
indent=indent,
include=include,
exclude=exclude,
by_alias=by_alias,
by_alias=by_alias if by_alias is not None else False,
exclude_unset=exclude_unset,
exclude_defaults=exclude_defaults,
exclude_none=exclude_none,
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.73.0" # x-release-please-version
__version__ = "1.74.0" # x-release-please-version
14 changes: 0 additions & 14 deletions src/withpi/resources/search/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,8 @@
GroundednessResourceWithStreamingResponse,
AsyncGroundednessResourceWithStreamingResponse,
)
from .query_classifier import (
QueryClassifierResource,
AsyncQueryClassifierResource,
QueryClassifierResourceWithRawResponse,
AsyncQueryClassifierResourceWithRawResponse,
QueryClassifierResourceWithStreamingResponse,
AsyncQueryClassifierResourceWithStreamingResponse,
)

__all__ = [
"QueryClassifierResource",
"AsyncQueryClassifierResource",
"QueryClassifierResourceWithRawResponse",
"AsyncQueryClassifierResourceWithRawResponse",
"QueryClassifierResourceWithStreamingResponse",
"AsyncQueryClassifierResourceWithStreamingResponse",
"GroundednessResource",
"AsyncGroundednessResource",
"GroundednessResourceWithRawResponse",
Expand Down
Loading