You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Run the prompt listed above.
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.
The text was updated successfully, but these errors were encountered:
Description
Running a
%%ai
magic command with theanthropic
model provider, such as the following:… yields a warning: (split across two lines for readability)
The prompt continues to run.
Reproduce
Expected behavior
The Jupyter AI invokes the
ChatAnthropic
LLM provider, not the deprecatedAnthropic
model provider.Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: