vb
This commit is contained in:
parent
af380c8e52
commit
92f0fd956f
8 changed files with 34 additions and 10 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.24.1] - 2026-01-08
|
||||||
|
|
||||||
### Fixed
|
### 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.
|
- **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.
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
name = "haiku.rag-evals"
|
name = "haiku.rag-evals"
|
||||||
description = "Benchmarking and evaluation scripts for haiku.rag"
|
description = "Benchmarking and evaluation scripts for haiku.rag"
|
||||||
version = "0.24.0"
|
version = "0.24.1"
|
||||||
authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }]
|
authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }]
|
||||||
license = { text = "MIT" }
|
license = { text = "MIT" }
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ requires-python = ">=3.12"
|
||||||
keywords = ["RAG", "a2a", "agent", "conversational-ai"]
|
keywords = ["RAG", "a2a", "agent", "conversational-ai"]
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"haiku.rag>=0.23.1",
|
"haiku.rag>=0.24.1",
|
||||||
"fasta2a>=0.6.0",
|
"fasta2a>=0.6.0",
|
||||||
"pydantic-ai-slim[a2a]>=1.39.0",
|
"pydantic-ai-slim[a2a]>=1.39.0",
|
||||||
"rich>=14.2.0",
|
"rich>=14.2.0",
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ dependencies = [
|
||||||
"uvicorn[standard]>=0.40.0",
|
"uvicorn[standard]>=0.40.0",
|
||||||
"pydantic-ai-slim[ag-ui,openai]>=1.39.0",
|
"pydantic-ai-slim[ag-ui,openai]>=1.39.0",
|
||||||
"python-dotenv>=1.2.1",
|
"python-dotenv>=1.2.1",
|
||||||
"haiku.rag-slim[agui]>=0.23.1",
|
"haiku.rag-slim[agui]>=0.24.1",
|
||||||
]
|
]
|
||||||
|
|
||||||
[dependency-groups]
|
[dependency-groups]
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
name = "haiku.rag-slim"
|
name = "haiku.rag-slim"
|
||||||
description = "Opinionated agentic RAG powered by LanceDB, Pydantic AI, and Docling - Minimal dependencies"
|
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" }]
|
authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }]
|
||||||
license = { text = "MIT" }
|
license = { text = "MIT" }
|
||||||
readme = { file = "README.md", content-type = "text/markdown" }
|
readme = { file = "README.md", content-type = "text/markdown" }
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
name = "haiku.rag"
|
name = "haiku.rag"
|
||||||
description = "Opinionated agentic RAG powered by LanceDB, Pydantic AI, and Docling"
|
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" }]
|
authors = [{ name = "Yiorgis Gozadinos", email = "ggozadinos@gmail.com" }]
|
||||||
license = { text = "MIT" }
|
license = { text = "MIT" }
|
||||||
readme = { file = "README.md", content-type = "text/markdown" }
|
readme = { file = "README.md", content-type = "text/markdown" }
|
||||||
|
|
@ -30,7 +30,7 @@ classifiers = [
|
||||||
]
|
]
|
||||||
|
|
||||||
dependencies = [
|
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]
|
[project.scripts]
|
||||||
|
|
|
||||||
|
|
@ -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())}")
|
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:
|
def update_changelog(changelog_path: Path, new_version: str) -> None:
|
||||||
"""Update CHANGELOG.md with new version."""
|
"""Update CHANGELOG.md with new version."""
|
||||||
content = changelog_path.read_text()
|
content = changelog_path.read_text()
|
||||||
|
|
@ -105,10 +118,15 @@ def main():
|
||||||
root / "evaluations" / "pyproject.toml",
|
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"
|
changelog_file = root / "CHANGELOG.md"
|
||||||
|
|
||||||
# Check all files exist
|
# 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():
|
if not file.exists():
|
||||||
print(f"Error: {file} not found")
|
print(f"Error: {file} not found")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
@ -134,6 +152,10 @@ def main():
|
||||||
# Update haiku.rag-slim dependency version in root pyproject.toml
|
# Update haiku.rag-slim dependency version in root pyproject.toml
|
||||||
update_dependency_version(pyproject_files[0], new_version)
|
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.md
|
||||||
update_changelog(changelog_file, new_version)
|
update_changelog(changelog_file, new_version)
|
||||||
|
|
||||||
|
|
|
||||||
6
uv.lock
6
uv.lock
|
|
@ -1286,7 +1286,7 @@ wheels = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "haiku-rag"
|
name = "haiku-rag"
|
||||||
version = "0.24.0"
|
version = "0.24.1"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "haiku-rag-slim", extra = ["cohere", "docling", "inspector", "mxbai", "voyageai", "zeroentropy"] },
|
{ name = "haiku-rag-slim", extra = ["cohere", "docling", "inspector", "mxbai", "voyageai", "zeroentropy"] },
|
||||||
|
|
@ -1341,7 +1341,7 @@ dev = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "haiku-rag-evals"
|
name = "haiku-rag-evals"
|
||||||
version = "0.24.0"
|
version = "0.24.1"
|
||||||
source = { editable = "evaluations" }
|
source = { editable = "evaluations" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "datasets" },
|
{ name = "datasets" },
|
||||||
|
|
@ -1362,7 +1362,7 @@ requires-dist = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "haiku-rag-slim"
|
name = "haiku-rag-slim"
|
||||||
version = "0.24.0"
|
version = "0.24.1"
|
||||||
source = { editable = "haiku_rag_slim" }
|
source = { editable = "haiku_rag_slim" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "docling-core" },
|
{ name = "docling-core" },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue