Skip to content

Commit

Permalink
Merge pull request #249 from parea-ai/fix-gsr
Browse files Browse the repository at this point in the history
fix: gsr
  • Loading branch information
joschkabraun committed Nov 28, 2023
2 parents 8c1729b + f8b5683 commit b134eb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions parea/evals/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
Expand Down

0 comments on commit b134eb1

Please sign in to comment.