Skip to content

Commit

Permalink
This commit if applied will update the import statements in log.py an…
Browse files Browse the repository at this point in the history
…d openai.py files to use pydantic_settings instead of pydantic. It will also add pydantic-settings as a dependency in pyproject.toml.
  • Loading branch information
AngMits committed May 23, 2024
1 parent d717910 commit a6c6f20
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 13 deletions.
2 changes: 1 addition & 1 deletion g3/config/log.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pydantic import BaseSettings
from pydantic_settings import BaseSettings


class LogConfig(BaseSettings):
Expand Down
3 changes: 2 additions & 1 deletion g3/config/openai.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Optional

from pydantic import BaseSettings, Extra
from pydantic import Extra
from pydantic_settings import BaseSettings

from g3.utils.dictionary import without_nulls

Expand Down
54 changes: 43 additions & 11 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pydantic = { version = ">=1.10.10,<3.0.0", extras = ["dotenv"] }
tiktoken = "^0.6.0"
pygithub = ">=1.59,<3.0"
pyperclip = "^1.8.2"
pydantic-settings = "^2.2.1"


[tool.poetry.group.lint.dependencies]
Expand Down

0 comments on commit a6c6f20

Please sign in to comment.