From 7ca821f15095f67ad9f5823252b3a35104cb740b Mon Sep 17 00:00:00 2001 From: John Walz Date: Thu, 20 Feb 2025 23:13:27 -0500 Subject: [PATCH 1/2] fix: fix isue where test result description generation fails for results without tables (cherry picked from commit 65745bb85a973769266ece8448b2236548ea2924) --- validmind/ai/test_descriptions.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/validmind/ai/test_descriptions.py b/validmind/ai/test_descriptions.py index 73f9ae28a..7a962bffb 100644 --- a/validmind/ai/test_descriptions.py +++ b/validmind/ai/test_descriptions.py @@ -83,8 +83,10 @@ def _get_llm_global_context(): return context if context_enabled and context else None -def _truncate_summary(summary: str, test_id: str, max_tokens: int = 100_000): - if len(summary) < max_tokens: +def _truncate_summary( + summary: Union[str, None], test_id: str, max_tokens: int = 100_000 +): + if summary is None or len(summary) < max_tokens: # since string itself is less than max_tokens, definitely small enough return summary From a31cc3d9082da51422d80aa70ba1c1dc964f4f72 Mon Sep 17 00:00:00 2001 From: Andres Rodriguez Date: Mon, 24 Feb 2025 10:45:28 -0800 Subject: [PATCH 2/2] 2.7.10 --- pyproject.toml | 2 +- validmind/__version__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c4d7cf6da..5517f3a09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ description = "ValidMind Library" license = "Commercial License" name = "validmind" readme = "README.pypi.md" -version = "2.7.9" +version = "2.7.10" [tool.poetry.dependencies] aiohttp = {extras = ["speedups"], version = "*"} diff --git a/validmind/__version__.py b/validmind/__version__.py index b9fcf8789..de4099b0c 100644 --- a/validmind/__version__.py +++ b/validmind/__version__.py @@ -1 +1 @@ -__version__ = "2.7.9" +__version__ = "2.7.10"