Spaces:
Running on Zero
Running on Zero
File size: 347 Bytes
24f7855 | 1 2 3 4 5 6 7 8 9 | # Ragas compatibility patch: stubs deprecated VertexAI import in langchain_community
import sys
import types
if "langchain_community.chat_models.vertexai" not in sys.modules:
_stub = types.ModuleType("langchain_community.chat_models.vertexai")
_stub.ChatVertexAI = None
sys.modules["langchain_community.chat_models.vertexai"] = _stub
|