Skip to content

fix(nodes): update outdated ChatOllama import path to langchain_ollama#1076

Open
handsome-bond wants to merge 1 commit into
ScrapeGraphAI:mainfrom
handsome-bond:fix-ollama-import
Open

fix(nodes): update outdated ChatOllama import path to langchain_ollama#1076
handsome-bond wants to merge 1 commit into
ScrapeGraphAI:mainfrom
handsome-bond:fix-ollama-import

Conversation

@handsome-bond
Copy link
Copy Markdown

🐛 Problem

In recent versions of langchain, the ChatOllama class has been completely removed from the legacy langchain_community.chat_models module.

As a result, importing graph elements triggers a fatal ImportError: cannot import name 'ChatOllama' from 'langchain_community.chat_models', rendering the scraper completely unusable out-of-the-box.

🛠️ Solution

This PR systematically replaces the outdated import paths across all affected node and graph files to use the modern, officially supported langchain_ollama package instead. This guarantees full compatibility with the latest LangChain ecosystem ecosystem.

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working labels May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant