Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PMAT and necessary changes for new langchain and small changes to be compatible with PMA #103

Merged
merged 7 commits into from
Jul 16, 2024

Conversation

kongzii
Copy link
Collaborator

@kongzii kongzii commented Jul 15, 2024

No description provided.

@kongzii kongzii marked this pull request as ready for review July 16, 2024 11:28
@@ -10,6 +11,9 @@
from prediction_prophet.functions.search import search
from pydantic.types import SecretStr

if t.TYPE_CHECKING:
from loguru import Logger
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this change for? It looks below like it is still always using logging.Logger below

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the loguru's Logger below into accepted types, because in PMAT/PMA we use loguru, so we can pass it there without mypy complaining.

logger: t.Union[logging.Logger, "Logger"] = logging.getLogger()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And idk why logging.Logger | "Logger" doesn't work in Python, so we need to use the old-school Union[logging.Logger, "Logger"].

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, so we can use prophet's research in PMA? Makes sense!

@kongzii kongzii changed the title Update PMAT and necessary changes for new langchain Update PMAT and necessary changes for new langchain and small changes to be compatible with PMA Jul 16, 2024
@kongzii kongzii merged commit ba98871 into main Jul 16, 2024
1 check passed
@kongzii kongzii deleted the peter/updatepat3 branch July 16, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants