Fix deprecated LangChain Ollama import in instagram_post - Replace 'from langchain.llms import Ollama' with 'from langchain_community.llms import Ollama' - This fixes compatibility issues with newer versions of LangChain (v0.1.0+)

This commit is contained in:
theCyberTech
2025-06-07 20:04:37 +08:00
parent 7fba976d00
commit ac9746c32c

View File

@@ -5,7 +5,7 @@ from tools.browser_tools import BrowserTools
from tools.search_tools import SearchTools
from langchain.agents import load_tools
from langchain.llms import Ollama
from langchain_community.llms import Ollama
class MarketingAnalysisAgents:
def __init__(self):