langcorn icon indicating copy to clipboard operation
langcorn copied to clipboard

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

Open msoedov opened this issue 2 years ago • 0 comments

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 avatar May 10 '23 15:05 msoedov