From 86ed0d4041146a1682ab95c94ac61cb37ee9e598 Mon Sep 17 00:00:00 2001 From: Joschka Braun Date: Tue, 28 Nov 2023 17:54:37 -0500 Subject: [PATCH 1/2] fix: gsr --- parea/evals/chat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/parea/evals/chat.py b/parea/evals/chat.py index 80d221c7..41c9009a 100644 --- a/parea/evals/chat.py +++ b/parea/evals/chat.py @@ -5,6 +5,7 @@ def goal_success_ratio(log: Log) -> float: """Returns the average amount of turns the user had to converse with the AI to reach their goals.""" messages = [m.to_dict() for m in log.configuration.messages] + messages.append({'role': 'assistant', 'content': log.output}) # need to determine where does a new goal start conversation_segments = [] From f8b56834c47f8bca6ba9644264a549618ef3868c Mon Sep 17 00:00:00 2001 From: Joschka Braun Date: Tue, 28 Nov 2023 17:58:10 -0500 Subject: [PATCH 2/2] chore: bump version --- parea/evals/chat.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/parea/evals/chat.py b/parea/evals/chat.py index 41c9009a..ae9fe3cc 100644 --- a/parea/evals/chat.py +++ b/parea/evals/chat.py @@ -5,7 +5,7 @@ def goal_success_ratio(log: Log) -> float: """Returns the average amount of turns the user had to converse with the AI to reach their goals.""" messages = [m.to_dict() for m in log.configuration.messages] - messages.append({'role': 'assistant', 'content': log.output}) + messages.append({"role": "assistant", "content": log.output}) # need to determine where does a new goal start conversation_segments = [] diff --git a/pyproject.toml b/pyproject.toml index fc09985a..3ef97532 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "parea-ai" packages = [{ include = "parea" }] -version = "0.2.18" +version = "0.2.19" description = "Parea python sdk" readme = "README.md" authors = ["joel-parea-ai "]