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

Replace Anthropic LLM with ChatAnthropic #308

Closed
JasonWeill opened this issue Jul 31, 2023 · 0 comments · Fixed by #391
Closed

Replace Anthropic LLM with ChatAnthropic #308

JasonWeill opened this issue Jul 31, 2023 · 0 comments · Fixed by #391
Labels
bug Something isn't working @jupyter-ai/magics

Comments

@JasonWeill
Copy link
Collaborator

Description

Running a %%ai magic command with the anthropic model provider, such as the following:

%%ai anthropic:claude-v1.2
Write a poem about C++.

… yields a warning: (split across two lines for readability)

…lib/python3.11/site-packages/langchain/llms/anthropic.py:140:
UserWarning: This Anthropic LLM is deprecated. Please use `from langchain.chat_models import ChatAnthropic` instead

The prompt continues to run.

Reproduce

  1. Run the prompt listed above.
  2. See the warning above the output.

Expected behavior

The Jupyter AI invokes the ChatAnthropic LLM provider, not the deprecated Anthropic model provider.

Context

  • Operating System and version: macOS 12.6.6 "Monterey"
  • Browser and version: Firefox ESR
  • JupyterLab version: 4.0.3, with Jupyter AI 2.0.0
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.
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