From 3de40448b78fcab5fcf901648631efb335f70748 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 24 Feb 2026 17:48:03 +0000 Subject: [PATCH 1/4] chore(internal): make `test_proxy_environment_variables` more resilient to env --- tests/test_client.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/test_client.py b/tests/test_client.py index 6aaf0be3..f5ecec83 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -980,8 +980,14 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: def test_proxy_environment_variables(self, monkeypatch: pytest.MonkeyPatch) -> None: # Test that the proxy environment variables are set correctly monkeypatch.setenv("HTTPS_PROXY", "https://example.org") - # Delete in case our environment has this set + # Delete in case our environment has any proxy env vars set monkeypatch.delenv("HTTP_PROXY", raising=False) + monkeypatch.delenv("ALL_PROXY", raising=False) + monkeypatch.delenv("NO_PROXY", raising=False) + monkeypatch.delenv("http_proxy", raising=False) + monkeypatch.delenv("https_proxy", raising=False) + monkeypatch.delenv("all_proxy", raising=False) + monkeypatch.delenv("no_proxy", raising=False) client = DefaultHttpxClient() @@ -1896,8 +1902,14 @@ async def test_get_platform(self) -> None: async def test_proxy_environment_variables(self, monkeypatch: pytest.MonkeyPatch) -> None: # Test that the proxy environment variables are set correctly monkeypatch.setenv("HTTPS_PROXY", "https://example.org") - # Delete in case our environment has this set + # Delete in case our environment has any proxy env vars set monkeypatch.delenv("HTTP_PROXY", raising=False) + monkeypatch.delenv("ALL_PROXY", raising=False) + monkeypatch.delenv("NO_PROXY", raising=False) + monkeypatch.delenv("http_proxy", raising=False) + monkeypatch.delenv("https_proxy", raising=False) + monkeypatch.delenv("all_proxy", raising=False) + monkeypatch.delenv("no_proxy", raising=False) client = DefaultAsyncHttpxClient() From eec92f465cf9e1d2835008b47cbfbb044107e75d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 25 Feb 2026 16:59:29 +0000 Subject: [PATCH 2/4] feat: Remove `queries` from recall endpoint --- .stats.yml | 4 ++-- src/turbopuffer/resources/namespaces.py | 10 ---------- src/turbopuffer/types/namespace_recall_params.py | 7 ------- tests/api_resources/test_namespaces.py | 2 -- 4 files changed, 2 insertions(+), 21 deletions(-) diff --git a/.stats.yml b/.stats.yml index f687b9b3..afeb13e2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 11 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/turbopuffer-benesch%2Fturbopuffer-fff3452c931af2634eba217782cddb06b3fa935668f92146f5fc1c8f0e392b2b.yml -openapi_spec_hash: dc07b6c87677a7906956313ce9732719 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/turbopuffer-benesch%2Fturbopuffer-6fb4376a43d51aefbbd39b2d1ad924cea5af786c5e5e6de9d5aed6a594589c4b.yml +openapi_spec_hash: 84775addbf01ae183699a124ad0a7117 config_hash: fb4fcbea34061aefdc474bc42d366209 diff --git a/src/turbopuffer/resources/namespaces.py b/src/turbopuffer/resources/namespaces.py index 6eede9ff..e9489b8b 100644 --- a/src/turbopuffer/resources/namespaces.py +++ b/src/turbopuffer/resources/namespaces.py @@ -409,7 +409,6 @@ def recall( filters: object | Omit = omit, include_ground_truth: bool | Omit = omit, num: int | Omit = omit, - queries: Iterable[float] | Omit = omit, top_k: int | Omit = omit, # 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. @@ -430,9 +429,6 @@ def recall( num: The number of searches to run. - queries: Use specific query vectors for the measurement. If omitted, sampled from the - index. - top_k: Search for `top_k` nearest neighbors. extra_headers: Send extra headers @@ -454,7 +450,6 @@ def recall( "filters": filters, "include_ground_truth": include_ground_truth, "num": num, - "queries": queries, "top_k": top_k, }, namespace_recall_params.NamespaceRecallParams, @@ -1019,7 +1014,6 @@ async def recall( filters: object | Omit = omit, include_ground_truth: bool | Omit = omit, num: int | Omit = omit, - queries: Iterable[float] | Omit = omit, top_k: int | Omit = omit, # 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. @@ -1040,9 +1034,6 @@ async def recall( num: The number of searches to run. - queries: Use specific query vectors for the measurement. If omitted, sampled from the - index. - top_k: Search for `top_k` nearest neighbors. extra_headers: Send extra headers @@ -1064,7 +1055,6 @@ async def recall( "filters": filters, "include_ground_truth": include_ground_truth, "num": num, - "queries": queries, "top_k": top_k, }, namespace_recall_params.NamespaceRecallParams, diff --git a/src/turbopuffer/types/namespace_recall_params.py b/src/turbopuffer/types/namespace_recall_params.py index 91455f3d..f56a1f6d 100644 --- a/src/turbopuffer/types/namespace_recall_params.py +++ b/src/turbopuffer/types/namespace_recall_params.py @@ -2,7 +2,6 @@ from __future__ import annotations -from typing import Iterable from typing_extensions import TypedDict __all__ = ["NamespaceRecallParams"] @@ -23,11 +22,5 @@ class NamespaceRecallParams(TypedDict, total=False): num: int """The number of searches to run.""" - queries: Iterable[float] - """Use specific query vectors for the measurement. - - If omitted, sampled from the index. - """ - top_k: int """Search for `top_k` nearest neighbors.""" diff --git a/tests/api_resources/test_namespaces.py b/tests/api_resources/test_namespaces.py index 5e2ec588..b09801f5 100644 --- a/tests/api_resources/test_namespaces.py +++ b/tests/api_resources/test_namespaces.py @@ -305,7 +305,6 @@ def test_method_recall_with_all_params(self, client: Turbopuffer) -> None: namespace = client.namespace("namespace").recall( include_ground_truth=True, num=0, - queries=[0], top_k=0, ) assert_matches_type(NamespaceRecallResponse, namespace, path=["response"]) @@ -775,7 +774,6 @@ async def test_method_recall_with_all_params(self, async_client: AsyncTurbopuffe filters={}, include_ground_truth=True, num=0, - queries=[0], top_k=0, ) assert_matches_type(NamespaceRecallResponse, namespace, path=["response"]) From 38aaf5bde2e0968e628428ea64707b634c8dd1d2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 27 Feb 2026 21:28:00 +0000 Subject: [PATCH 3/4] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index afeb13e2..c4e5be99 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 11 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/turbopuffer-benesch%2Fturbopuffer-6fb4376a43d51aefbbd39b2d1ad924cea5af786c5e5e6de9d5aed6a594589c4b.yml openapi_spec_hash: 84775addbf01ae183699a124ad0a7117 -config_hash: fb4fcbea34061aefdc474bc42d366209 +config_hash: 307cb6007b00b0023c2d8cef768b7f8e From 1cfc9c453cdce443d8902a8af9493cbbfadce4f1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 27 Feb 2026 21:28:21 +0000 Subject: [PATCH 4/4] release: 1.17.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ pyproject.toml | 2 +- src/turbopuffer/_version.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fb1bd8f4..6a197bef 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.16.2" + ".": "1.17.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index fd2b6b71..17f403ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 1.17.0 (2026-02-27) + +Full Changelog: [v1.16.2...v1.17.0](https://github.com/turbopuffer/turbopuffer-python/compare/v1.16.2...v1.17.0) + +### Features + +* Remove `queries` from recall endpoint ([eec92f4](https://github.com/turbopuffer/turbopuffer-python/commit/eec92f465cf9e1d2835008b47cbfbb044107e75d)) + + +### Chores + +* **internal:** make `test_proxy_environment_variables` more resilient to env ([3de4044](https://github.com/turbopuffer/turbopuffer-python/commit/3de40448b78fcab5fcf901648631efb335f70748)) + ## 1.16.2 (2026-02-24) Full Changelog: [v1.16.1...v1.16.2](https://github.com/turbopuffer/turbopuffer-python/compare/v1.16.1...v1.16.2) diff --git a/pyproject.toml b/pyproject.toml index ebe07637..b036be90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "turbopuffer" -version = "1.16.2" +version = "1.17.0" description = "The official Python library for the turbopuffer API" dynamic = ["readme"] license = "MIT" diff --git a/src/turbopuffer/_version.py b/src/turbopuffer/_version.py index b6c6d8d3..f1ca1d18 100644 --- a/src/turbopuffer/_version.py +++ b/src/turbopuffer/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "turbopuffer" -__version__ = "1.16.2" # x-release-please-version +__version__ = "1.17.0" # x-release-please-version