Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

[chore] fix wrong import of LLMs from langchain (#1002)

Sidharth Mohanty7910cee2594f
diff --git a/embedchain/llm/cohere.py b/embedchain/llm/cohere.py
index e996db6b7..7ddac928b 100644
--- a/embedchain/llm/cohere.py
+++ b/embedchain/llm/cohere.py
@@ -2,7 +2,7 @@ import importlib
import os
from typing import Optional
-from langchain.llms import Cohere
+from langchain.llms.cohere import Cohere
from embedchain.config import BaseLlmConfig
from embedchain.helpers.json_serializable import register_deserializable
diff --git a/embedchain/llm/huggingface.py b/embedchain/llm/huggingface.py
index a4628c0d0..2d7601ee3 100644
--- a/embedchain/llm/huggingface.py
+++ b/embedchain/llm/huggingface.py
@@ -3,7 +3,7 @@ import logging
import os
from typing import Optional
-from langchain.llms import HuggingFaceHub
+from langchain.llms.huggingface_hub import HuggingFaceHub
from embedchain.config import BaseLlmConfig
from embedchain.helpers.json_serializable import register_deserializable
diff --git a/embedchain/llm/llama2.py b/embedchain/llm/llama2.py
index fa2587bb8..1e74d1bb2 100644
--- a/embedchain/llm/llama2.py
+++ b/embedchain/llm/llama2.py
@@ -2,7 +2,7 @@ import importlib
import os
from typing import Optional
-from langchain.llms import Replicate
+from langchain.llms.replicate import Replicate
from embedchain.config import BaseLlmConfig
from embedchain.helpers.json_serializable import register_deserializable