From ac9746c32c8a2c1e88b336dfe0fd07907339fc44 Mon Sep 17 00:00:00 2001 From: theCyberTech <84775494+theCyberTech@users.noreply.github.com> Date: Sat, 7 Jun 2025 20:04:37 +0800 Subject: [PATCH] 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+) --- instagram_post/agents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instagram_post/agents.py b/instagram_post/agents.py index 7e1bcda9..5e327e3e 100644 --- a/instagram_post/agents.py +++ b/instagram_post/agents.py @@ -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):