Skip to content

Commit

Permalink
Merge pull request #930 from parea-ai/fix-model-params-types
Browse files Browse the repository at this point in the history
fix: model params types
  • Loading branch information
joschkabraun committed Jun 11, 2024
2 parents 8f29b81 + 8bafc6d commit a5d0198
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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: float = 1.0
top_p: float = 1.0
frequency_penalty: float = 0.0
presence_penalty: float = 0.0
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
max_length: Optional[int] = None
response_format: Optional[dict] = None
safe_prompt: Optional[bool] = None
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.172"
version = "0.2.173"
description = "Parea python sdk"
readme = "README.md"
authors = ["joel-parea-ai <[email protected]>"]
Expand Down

0 comments on commit a5d0198

Please sign in to comment.