Skip to content

Commit

Permalink
Merge pull request #933 from parea-ai/fix-experiment-deserialization
Browse files Browse the repository at this point in the history
Fix experiment deserialization
  • Loading branch information
jalexanderII authored Jun 14, 2024
2 parents 0769b4b + 3e470c4 commit 94848cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion parea/cookbook/evals_and_experiments/list_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

p = Parea(api_key=os.getenv("PAREA_API_KEY"))

experiments = p.list_experiments(ListExperimentUUIDsFilters(experiment_name_filter="Greeting"))
experiments = p.list_experiments(ListExperimentUUIDsFilters(experiment_name_filter="greeting"))
print(f"Num. experiments: {len(experiments)}")
trace_logs = p.get_experiment_trace_logs(experiments[0].uuid)
print(f"Num. trace logs: {len(trace_logs)}")
Expand Down
8 changes: 4 additions & 4 deletions parea/schemas/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ def to_dict(self) -> Dict[str, str]:

@define
class ModelParams:
temp: Union[float, None] = 1.0
top_p: Union[float, None] = 1.0
frequency_penalty: Union[float, None] = 0.0
presence_penalty: Union[float, None] = 0.0
temp: Optional[float] = 1.0
top_p: Optional[float] = 1.0
frequency_penalty: Optional[float] = 0.0
presence_penalty: Optional[float] = 0.0
max_length: Optional[int] = None
response_format: Optional[dict] = None
safe_prompt: Optional[bool] = None
Expand Down
2 changes: 1 addition & 1 deletion parea/schemas/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class TraceLog(EvaluatedLog):

@define
class TraceLogTree(TraceLog):
children_logs: Optional[List[TraceLog]] = field(factory=list)
children_logs: Optional[List["TraceLogTree"]] = field(factory=list)


@define
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.174"
version = "0.2.175"
description = "Parea python sdk"
readme = "README.md"
authors = ["joel-parea-ai <[email protected]>"]
Expand Down

0 comments on commit 94848cf

Please sign in to comment.