Skip to content

Commit 08230bb

Browse files
authored
Merge pull request #784 from parea-ai/fix-context-is-list
chore: update evals list parsing
2 parents 65809e5 + 7e1a02e commit 08230bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

parea/evals/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def get_context(log: Log, context_fields: Optional[List[str]] = None, as_list: b
189189
context = log.output
190190
try:
191191
loaded_context = json.loads(log.output)
192-
if isinstance(log.output, list):
192+
if isinstance(loaded_context, list):
193193
return loaded_context if as_list else "\n".join(loaded_context)
194194
except json.JSONDecodeError:
195195
pass

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api"
66
[tool.poetry]
77
name = "parea-ai"
88
packages = [{ include = "parea" }]
9-
version = "0.2.136"
9+
version = "0.2.137"
1010
description = "Parea python sdk"
1111
readme = "README.md"
1212
authors = ["joel-parea-ai <[email protected]>"]

0 commit comments

Comments
 (0)