diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0c3ec30c..33a65d75 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.76.1" + ".": "1.77.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 6bf01168..1184f1ab 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 26 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/pi-labs%2Fwithpi-d1b497dd21adf36d21d3e0613ba305844a2d625e1c1034e858fd1d151d7a6b81.yml -openapi_spec_hash: 55ea7a8aa698eb390e555893328686a4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/pi-labs%2Fwithpi-3072964da825b849113298f2849e31a2a1e8ee707d2d51a5fcd6d1d4726b5c40.yml +openapi_spec_hash: d40336730ed53ba8dd2388978ce14a64 config_hash: fd3e1149c629c2972c54a66a88fd4fab diff --git a/CHANGELOG.md b/CHANGELOG.md index b462f7cf..4fadf638 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.77.0 (2025-09-25) + +Full Changelog: [v1.76.1...v1.77.0](https://github.com/withpi/sdk-python/compare/v1.76.1...v1.77.0) + +### Features + +* **api:** api update ([2223120](https://github.com/withpi/sdk-python/commit/2223120ccab1f67b3c6ba6127cdd39eba7d56697)) + ## 1.76.1 (2025-09-25) Full Changelog: [v1.76.0...v1.76.1](https://github.com/withpi/sdk-python/compare/v1.76.0...v1.76.1) diff --git a/pyproject.toml b/pyproject.toml index 4b1df80a..5cf693fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "withpi" -version = "1.76.1" +version = "1.77.0" description = "The official Python library for the Pi Client API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/withpi/_version.py b/src/withpi/_version.py index 3f189a38..a3e72201 100644 --- a/src/withpi/_version.py +++ b/src/withpi/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "withpi" -__version__ = "1.76.1" # x-release-please-version +__version__ = "1.77.0" # x-release-please-version diff --git a/src/withpi/resources/search/search.py b/src/withpi/resources/search/search.py index d00e226b..980e0532 100644 --- a/src/withpi/resources/search/search.py +++ b/src/withpi/resources/search/search.py @@ -57,7 +57,6 @@ def with_streaming_response(self) -> SearchResourceWithStreamingResponse: def embed( self, *, - batch: bool, query: SequenceNotStr[str], # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -72,9 +71,6 @@ def embed( dimensional embeddings with the same length as the input query parameter. Args: - batch: Set to false for realtime usage, such as embedding queries. Set to true for - batch usage, such as for embedding documents as part of indexing. - query: List of queries or documents to embed extra_headers: Send extra headers @@ -87,13 +83,7 @@ def embed( """ return self._post( "/search/embed", - body=maybe_transform( - { - "batch": batch, - "query": query, - }, - search_embed_params.SearchEmbedParams, - ), + body=maybe_transform({"query": query}, search_embed_params.SearchEmbedParams), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), @@ -174,7 +164,6 @@ def with_streaming_response(self) -> AsyncSearchResourceWithStreamingResponse: async def embed( self, *, - batch: bool, query: SequenceNotStr[str], # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -189,9 +178,6 @@ async def embed( dimensional embeddings with the same length as the input query parameter. Args: - batch: Set to false for realtime usage, such as embedding queries. Set to true for - batch usage, such as for embedding documents as part of indexing. - query: List of queries or documents to embed extra_headers: Send extra headers @@ -204,13 +190,7 @@ async def embed( """ return await self._post( "/search/embed", - body=await async_maybe_transform( - { - "batch": batch, - "query": query, - }, - search_embed_params.SearchEmbedParams, - ), + body=await async_maybe_transform({"query": query}, search_embed_params.SearchEmbedParams), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), diff --git a/src/withpi/types/search_embed_params.py b/src/withpi/types/search_embed_params.py index b63cc9ed..ff9d25f2 100644 --- a/src/withpi/types/search_embed_params.py +++ b/src/withpi/types/search_embed_params.py @@ -10,12 +10,5 @@ class SearchEmbedParams(TypedDict, total=False): - batch: Required[bool] - """Set to false for realtime usage, such as embedding queries. - - Set to true for batch usage, such as for embedding documents as part of - indexing. - """ - query: Required[SequenceNotStr[str]] """List of queries or documents to embed""" diff --git a/tests/api_resources/test_search.py b/tests/api_resources/test_search.py index dcb04a48..1e621608 100644 --- a/tests/api_resources/test_search.py +++ b/tests/api_resources/test_search.py @@ -21,7 +21,6 @@ class TestSearch: @parametrize def test_method_embed(self, client: PiClient) -> None: search = client.search.embed( - batch=True, query=["string"], ) assert_matches_type(SearchEmbedResponse, search, path=["response"]) @@ -30,7 +29,6 @@ def test_method_embed(self, client: PiClient) -> None: @parametrize def test_raw_response_embed(self, client: PiClient) -> None: response = client.search.with_raw_response.embed( - batch=True, query=["string"], ) @@ -43,7 +41,6 @@ def test_raw_response_embed(self, client: PiClient) -> None: @parametrize def test_streaming_response_embed(self, client: PiClient) -> None: with client.search.with_streaming_response.embed( - batch=True, query=["string"], ) as response: assert not response.is_closed @@ -101,7 +98,6 @@ class TestAsyncSearch: @parametrize async def test_method_embed(self, async_client: AsyncPiClient) -> None: search = await async_client.search.embed( - batch=True, query=["string"], ) assert_matches_type(SearchEmbedResponse, search, path=["response"]) @@ -110,7 +106,6 @@ async def test_method_embed(self, async_client: AsyncPiClient) -> None: @parametrize async def test_raw_response_embed(self, async_client: AsyncPiClient) -> None: response = await async_client.search.with_raw_response.embed( - batch=True, query=["string"], ) @@ -123,7 +118,6 @@ async def test_raw_response_embed(self, async_client: AsyncPiClient) -> None: @parametrize async def test_streaming_response_embed(self, async_client: AsyncPiClient) -> None: async with async_client.search.with_streaming_response.embed( - batch=True, query=["string"], ) as response: assert not response.is_closed