Open rizblie opened 1 year ago
Hi, Could you please check and make sure your Langchain version is 0.0.246?
Also, given the recent update of Langchain, we are modifying the code to use the latest version. Will release after code review.
Yes it is 0.0.246. See below:
After some trial and error, I found that the highest version of langchain that will work with anthropic version 0.2.10 is 0.0.224.
I am not sure why langchain==0.0.246
is used in the notebook as this does not work. It appears to get caught by this validation check in langchain/llms/anthropic.py:
check_package_version("anthropic", gte_version="0.3")
I am now progressing through the rest of the notebook with langchain==0.0.224
and so far so good. I will post a final report here when completed, and raise a PR if successful.
Using langchain 0.0.224 I managed to execute all the notebook until the last step. Here I has mixed results - the agent managed to get half way through the task before ending with an error e.g.
TypeError: __main__.OptimizePortfolio._run() argument after ** must be a mapping, not list
I tried starting again with a clean history for a few times, and the agent was successful on the fourth attempt.
Looks like these library versions are not compatible?
From notebook cell 1:
then later: