Skip to content

Commit acfb30e

Browse files
Luboslav Yordanovclaude
authored andcommitted
fix: Add missing langchain-classic dependency
The code uses langchain_classic but it wasn't in dependencies. Added langchain-classic>=1.0.0 to pyproject.toml and reverted generate_code_node.py to use langchain_classic (the correct import). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 2a08b46 commit acfb30e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ authors = [
1111

1212
dependencies = [
1313
"langchain>=0.3.0",
14+
"langchain-classic>=1.0.0",
1415
"langchain-openai>=0.1.22",
1516
"langchain-mistralai>=0.1.12",
1617
"langchain_community>=0.2.9",

scrapegraphai/nodes/generate_code_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from bs4 import BeautifulSoup
1313
from jsonschema import ValidationError as JSONSchemaValidationError
1414
from jsonschema import validate
15-
from langchain_community.output_parsers.structured import (
15+
from langchain_classic.output_parsers.structured import (
1616
ResponseSchema,
1717
StructuredOutputParser,
1818
)

0 commit comments

Comments
 (0)