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