This commit is contained in:
Yiorgis Gozadinos 2026-01-08 10:25:25 +02:00
parent af380c8e52
commit 92f0fd956f
No known key found for this signature in database
8 changed files with 34 additions and 10 deletions

View file

@ -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.

View file

@ -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"

View file

@ -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",

View file

@ -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]

View file

@ -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" }

View file

@ -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]

View file

@ -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)

View file

@ -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" },