Skip to content

Commit

Permalink
Depedency fixes
Browse files Browse the repository at this point in the history
Adding more arg support to GeneratorParams
  • Loading branch information
monoxgas committed Feb 2, 2024
1 parent 10f6af5 commit b5f472b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "rigging"
version = "0.1.2"
version = "0.1.3"
description = "LLM Interaction Framework"
authors = ["Nick Landers <monoxgas@gmail.com>"]
license = "MIT"
Expand All @@ -9,8 +9,8 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "<3.13,>=3.10"
pydantic = "^2.5.3"
pydantic-xml = "^2.7.0"
pydantic = "2.5.3"
pydantic-xml = "2.7.0"
loguru = "^0.7.2"
litellm = "^1.20.1"

Expand Down
4 changes: 4 additions & 0 deletions rigging/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class GenerateParams(BaseModel):
stop: list[str] | None = None
presence_penalty: float | None = None
frequency_penalty: float | None = None
api_key: str | None = None
api_base: str | None = None
timeout: int | None = None
seed: int | None = None

@field_validator("stop", mode="before")
def validate_stop(cls, value: t.Any) -> t.Any:
Expand Down

0 comments on commit b5f472b

Please sign in to comment.