From 92f0fd956f85be1281028c747b85cd56a27e64e2 Mon Sep 17 00:00:00 2001 From: Yiorgis Gozadinos Date: Thu, 8 Jan 2026 10:25:25 +0200 Subject: [PATCH] vb --- CHANGELOG.md | 2 ++ evaluations/pyproject.toml | 2 +- examples/a2a-server/pyproject.toml | 2 +- .../ag-ui-research/backend/pyproject.toml | 2 +- haiku_rag_slim/pyproject.toml | 2 +- pyproject.toml | 4 ++-- scripts/bump_version.py | 24 ++++++++++++++++++- uv.lock | 6 ++--- 8 files changed, 34 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ebfbea7..f3e8f9bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## [Unreleased] +## [0.24.1] - 2026-01-08 + ### Fixed - **OpenAI Non-Reasoning Models**: Fixed `reasoning_effort` parameter being sent to non-reasoning OpenAI models (gpt-4o, gpt-4o-mini), causing 400 errors. Now correctly detects reasoning models (o1, o3 series) using pydantic-ai's model profile. diff --git a/evaluations/pyproject.toml b/evaluations/pyproject.toml index 618338e0..bd11af6c 100644 --- a/evaluations/pyproject.toml +++ b/evaluations/pyproject.toml @@ -2,7 +2,7 @@ name = "haiku.rag-evals" description = "Benchmarking and evaluation scripts for haiku.rag" -version = "0.24.0" +version = "0.24.1" authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }] license = { text = "MIT" } requires-python = ">=3.12" diff --git a/examples/a2a-server/pyproject.toml b/examples/a2a-server/pyproject.toml index 9bd3def7..2338f667 100644 --- a/examples/a2a-server/pyproject.toml +++ b/examples/a2a-server/pyproject.toml @@ -9,7 +9,7 @@ requires-python = ">=3.12" keywords = ["RAG", "a2a", "agent", "conversational-ai"] dependencies = [ - "haiku.rag>=0.23.1", + "haiku.rag>=0.24.1", "fasta2a>=0.6.0", "pydantic-ai-slim[a2a]>=1.39.0", "rich>=14.2.0", diff --git a/examples/ag-ui-research/backend/pyproject.toml b/examples/ag-ui-research/backend/pyproject.toml index 238a5704..45a8cd98 100644 --- a/examples/ag-ui-research/backend/pyproject.toml +++ b/examples/ag-ui-research/backend/pyproject.toml @@ -9,7 +9,7 @@ dependencies = [ "uvicorn[standard]>=0.40.0", "pydantic-ai-slim[ag-ui,openai]>=1.39.0", "python-dotenv>=1.2.1", - "haiku.rag-slim[agui]>=0.23.1", + "haiku.rag-slim[agui]>=0.24.1", ] [dependency-groups] diff --git a/haiku_rag_slim/pyproject.toml b/haiku_rag_slim/pyproject.toml index 260bf3d6..ea01d2ca 100644 --- a/haiku_rag_slim/pyproject.toml +++ b/haiku_rag_slim/pyproject.toml @@ -2,7 +2,7 @@ name = "haiku.rag-slim" description = "Opinionated agentic RAG powered by LanceDB, Pydantic AI, and Docling - Minimal dependencies" -version = "0.24.0" +version = "0.24.1" authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }] license = { text = "MIT" } readme = { file = "README.md", content-type = "text/markdown" } diff --git a/pyproject.toml b/pyproject.toml index 8bb2cf8b..782d5c59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "haiku.rag" description = "Opinionated agentic RAG powered by LanceDB, Pydantic AI, and Docling" -version = "0.24.0" +version = "0.24.1" authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }] license = { text = "MIT" } readme = { file = "README.md", content-type = "text/markdown" } @@ -30,7 +30,7 @@ classifiers = [ ] dependencies = [ - "haiku.rag-slim[docling,voyageai,mxbai,cohere,zeroentropy,inspector]==0.24.0", + "haiku.rag-slim[docling,voyageai,mxbai,cohere,zeroentropy,inspector]==0.24.1", ] [project.scripts] diff --git a/scripts/bump_version.py b/scripts/bump_version.py index daa4f148..4fbddd7a 100755 --- a/scripts/bump_version.py +++ b/scripts/bump_version.py @@ -41,6 +41,19 @@ def update_dependency_version(file_path: Path, new_version: str) -> None: print(f"✓ Updated haiku.rag-slim dependency in {file_path.relative_to(Path.cwd())}") +def update_example_dependencies(file_path: Path, new_version: str) -> None: + """Update haiku.rag and haiku.rag-slim dependency versions in example pyproject.toml files.""" + content = file_path.read_text() + # Update haiku.rag-slim[...] >= X.Y.Z + updated = re.sub( + r"(haiku\.rag-slim\[.*?\])>=[0-9.]+", rf"\1>={new_version}", content + ) + # Update haiku.rag >= X.Y.Z + updated = re.sub(r"(haiku\.rag)>=[0-9.]+", rf"\1>={new_version}", updated) + file_path.write_text(updated) + print(f"✓ Updated example dependencies in {file_path.relative_to(Path.cwd())}") + + def update_changelog(changelog_path: Path, new_version: str) -> None: """Update CHANGELOG.md with new version.""" content = changelog_path.read_text() @@ -105,10 +118,15 @@ def main(): root / "evaluations" / "pyproject.toml", ] + example_pyproject_files = [ + root / "examples" / "ag-ui-research" / "backend" / "pyproject.toml", + root / "examples" / "a2a-server" / "pyproject.toml", + ] + changelog_file = root / "CHANGELOG.md" # Check all files exist - for file in pyproject_files + [changelog_file]: + for file in pyproject_files + example_pyproject_files + [changelog_file]: if not file.exists(): print(f"Error: {file} not found") sys.exit(1) @@ -134,6 +152,10 @@ def main(): # Update haiku.rag-slim dependency version in root pyproject.toml update_dependency_version(pyproject_files[0], new_version) + # Update example project dependencies + for file in example_pyproject_files: + update_example_dependencies(file, new_version) + # Update CHANGELOG.md update_changelog(changelog_file, new_version) diff --git a/uv.lock b/uv.lock index ff7afd61..0a30013c 100644 --- a/uv.lock +++ b/uv.lock @@ -1286,7 +1286,7 @@ wheels = [ [[package]] name = "haiku-rag" -version = "0.24.0" +version = "0.24.1" source = { editable = "." } dependencies = [ { name = "haiku-rag-slim", extra = ["cohere", "docling", "inspector", "mxbai", "voyageai", "zeroentropy"] }, @@ -1341,7 +1341,7 @@ dev = [ [[package]] name = "haiku-rag-evals" -version = "0.24.0" +version = "0.24.1" source = { editable = "evaluations" } dependencies = [ { name = "datasets" }, @@ -1362,7 +1362,7 @@ requires-dist = [ [[package]] name = "haiku-rag-slim" -version = "0.24.0" +version = "0.24.1" source = { editable = "haiku_rag_slim" } dependencies = [ { name = "docling-core" },