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

Fix warning: Directly instantiating an LLMMathChain with an llm is deprecated #14

Open
msoedov opened this issue May 10, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@msoedov
Copy link
Owner

msoedov commented May 10, 2023

It's reproducible by running pytest

======================================================== warnings summary ========================================================
../../pyenvs/langchain_api/lib/python3.9/site-packages/langchain/chains/llm_math/base.py:50
  /Users/alexander/pyenvs/langchain_api/lib/python3.9/site-packages/langchain/chains/llm_math/base.py:50: UserWarning: Directly instantiating an LLMMathChain with an llm is deprecated. Please instantiate with llm_chain argument or using the from_llm class method.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
@msoedov msoedov added the good first issue Good for newcomers label May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant