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

Deprecation warning when running custom chains in a magic command #595

Closed
JasonWeill opened this issue Jan 22, 2024 · 0 comments · Fixed by #600
Closed

Deprecation warning when running custom chains in a magic command #595

JasonWeill opened this issue Jan 22, 2024 · 0 comments · Fixed by #600
Assignees
Labels
bug Something isn't working @jupyter-ai/magics

Comments

@JasonWeill
Copy link
Collaborator

When running a custom chain using an %%ai magic command, the user sees a warning:

/opt/miniconda3/envs/jupyter-ai-jl4/lib/python3.11/site-packages/langchain_core/_api/deprecation.py:117: LangChainDeprecationWarning: The function `run` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use invoke instead.
  warn_deprecated(

The chain still runs. invoke has the same interface as run, but run will be removed in LangChain 0.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @jupyter-ai/magics
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant