That probably happens because typing_extensions
that we include is of an older version and it is imported first.
You probably can work it around if you del sys.modules["typing_extensions"]
before importing langchain. That will triggers re-import and If the right version is higher on a sys.path
it should be picked up.