From 5298db02c0c7f5b62c2229419e8deb6d44cb7041 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 3 Jun 2026 15:04:38 +0000 Subject: [PATCH 1/2] feat: spec: add support for word_v4 tokenizer --- .stats.yml | 4 ++-- src/turbopuffer/types/full_text_search_config.py | 2 +- src/turbopuffer/types/full_text_search_config_param.py | 2 +- src/turbopuffer/types/tokenizer.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index 74337dcd..2c793566 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 14 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/turbopuffer-benesch/turbopuffer-ffcaae9b05de6560eb11bb0821cf4d6ebc06f1464c6d8258d79c1a0f2eda41fb.yml -openapi_spec_hash: 2ffbfcbe9c95eb73ef0be3dbef708e6a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/turbopuffer-benesch/turbopuffer-9b2e78ecf00c29be34999750978f9e4773a27c1a295599aded219c00a50623c0.yml +openapi_spec_hash: 6b35fa549f0b4682714f45c28cc9246a config_hash: bab72dc9f937352c7a01a37dadd44122 diff --git a/src/turbopuffer/types/full_text_search_config.py b/src/turbopuffer/types/full_text_search_config.py index f7cc0e55..8f4ee273 100644 --- a/src/turbopuffer/types/full_text_search_config.py +++ b/src/turbopuffer/types/full_text_search_config.py @@ -55,5 +55,5 @@ class FullTextSearchConfig(BaseModel): tokenizer: Optional[Tokenizer] = None """The tokenizer to use for full-text search on an attribute. - Defaults to `word_v3`. + Defaults to `word_v4`. """ diff --git a/src/turbopuffer/types/full_text_search_config_param.py b/src/turbopuffer/types/full_text_search_config_param.py index e359eba3..587a9db5 100644 --- a/src/turbopuffer/types/full_text_search_config_param.py +++ b/src/turbopuffer/types/full_text_search_config_param.py @@ -56,5 +56,5 @@ class FullTextSearchConfigParam(TypedDict, total=False): tokenizer: Tokenizer """The tokenizer to use for full-text search on an attribute. - Defaults to `word_v3`. + Defaults to `word_v4`. """ diff --git a/src/turbopuffer/types/tokenizer.py b/src/turbopuffer/types/tokenizer.py index e120b8d2..2ff5d766 100644 --- a/src/turbopuffer/types/tokenizer.py +++ b/src/turbopuffer/types/tokenizer.py @@ -4,4 +4,4 @@ __all__ = ["Tokenizer"] -Tokenizer: TypeAlias = Literal["pre_tokenized_array", "word_v0", "word_v1", "word_v2", "word_v3"] +Tokenizer: TypeAlias = Literal["pre_tokenized_array", "word_v0", "word_v1", "word_v2", "word_v3", "word_v4"] From 1a2563d01cc9f668eced6ed504caa60f593102b2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 3 Jun 2026 15:08:12 +0000 Subject: [PATCH 2/2] release: 2.3.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 4 ++-- pyproject.toml | 2 +- src/turbopuffer/_version.py | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b6fd98c0..75ec52fc 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.3.0-alpha.1" + ".": "2.3.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a40c3a32..2b807aec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 2.3.0 (2026-06-03) + +Full Changelog: [v2.3.0-alpha.1...v2.3.0](https://github.com/turbopuffer/turbopuffer-python/compare/v2.3.0-alpha.1...v2.3.0) + +### Features + +* spec: add support for word_v4 tokenizer ([5298db0](https://github.com/turbopuffer/turbopuffer-python/commit/5298db02c0c7f5b62c2229419e8deb6d44cb7041)) + ## 2.3.0-alpha.1 (2026-06-02) Full Changelog: [v2.2.0...v2.3.0-alpha.1](https://github.com/turbopuffer/turbopuffer-python/compare/v2.2.0...v2.3.0-alpha.1) diff --git a/README.md b/README.md index 70804615..e5637be4 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ The HTTP API documentation can be found at [turbopuffer.com/docs/overview](https ```sh # install from PyPI -pip install --pre turbopuffer +pip install turbopuffer ``` ## Usage @@ -128,7 +128,7 @@ You can enable this by installing `aiohttp`: ```sh # install from PyPI -pip install --pre turbopuffer[aiohttp] +pip install turbopuffer[aiohttp] ``` Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`: diff --git a/pyproject.toml b/pyproject.toml index c9861379..c47b806e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "turbopuffer" -version = "2.3.0-alpha.1" +version = "2.3.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 e12dcfdc..e2f737d4 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__ = "2.3.0-alpha.1" # x-release-please-version +__version__ = "2.3.0" # x-release-please-version