jina-ai / dev-gpt

Your Virtual Development Team

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImportError: cannot import name 'CallbackManager' from 'langchain.callbacks'

Sassun opened this issue · comments

commented

I followed the installation steps and now I am trying to run this example:

gptdeploy % gptdeploy generate \ --description "The user writes something and gets a related deep compliment." \ --test "Given the word test a deep compliment is generated" \ --model gpt-4 \ --path microservice

However, I get this error see below:

image

hi, this problem exists because we no longer support python 3.7

Oh wait a second, you are using 3.10. I have to look into it
can you upgrade langchain?

commented

Upgraded langchain, now it works. Thanks!