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.16.2"
".": "1.17.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: 11
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/turbopuffer-benesch%2Fturbopuffer-fff3452c931af2634eba217782cddb06b3fa935668f92146f5fc1c8f0e392b2b.yml
openapi_spec_hash: dc07b6c87677a7906956313ce9732719
config_hash: fb4fcbea34061aefdc474bc42d366209
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/turbopuffer-benesch%2Fturbopuffer-6fb4376a43d51aefbbd39b2d1ad924cea5af786c5e5e6de9d5aed6a594589c4b.yml
openapi_spec_hash: 84775addbf01ae183699a124ad0a7117
config_hash: 307cb6007b00b0023c2d8cef768b7f8e
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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 = "turbopuffer"
version = "1.16.2"
version = "1.17.0"
description = "The official Python library for the turbopuffer API"
dynamic = ["readme"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/turbopuffer/_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__ = "turbopuffer"
__version__ = "1.16.2" # x-release-please-version
__version__ = "1.17.0" # x-release-please-version
10 changes: 0 additions & 10 deletions src/turbopuffer/resources/namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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,
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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,
Expand Down
7 changes: 0 additions & 7 deletions src/turbopuffer/types/namespace_recall_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from __future__ import annotations

from typing import Iterable
from typing_extensions import TypedDict

__all__ = ["NamespaceRecallParams"]
Expand All @@ -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."""
2 changes: 0 additions & 2 deletions tests/api_resources/test_namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down Expand Up @@ -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"])
Expand Down
16 changes: 14 additions & 2 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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()

Expand Down