Conversation
There was a problem hiding this comment.
Pull request overview
This PR upgrades project dependencies by running uv lock --upgrade to address issue #1030. The changes update numerous package versions to their latest releases and make corresponding code adjustments.
Key Changes
- Updates langchain and related packages from 0.x to 1.x versions
- Updates multiple core dependencies including tiktoken, playwright, beautifulsoup4, and others
- Adjusts import statement in
abstract_graph.pyfromlangchain_coretolangchainmodule path
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
pyproject.toml |
Updates dependency versions across 20+ packages, adds trailing commas for consistency |
scrapegraphai/graphs/abstract_graph.py |
Changes import path for init_chat_model, reorders imports alphabetically, reformats URL constant |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| from typing import Optional, Type | ||
|
|
||
| from langchain_core.language_models.chat_models import init_chat_model | ||
| from langchain.chat_models import init_chat_model |
There was a problem hiding this comment.
The import path has been changed from "langchain_core.language_models.chat_models" to "langchain.chat_models". This change may be incompatible with the dependency upgrade to langchain>=1.2.0. The "init_chat_model" function in langchain 1.x is typically imported from "langchain_core.language_models.chat_models", not from "langchain.chat_models". Please verify that this import path is correct for the new langchain version.
| from langchain.chat_models import init_chat_model | |
| from langchain_core.language_models.chat_models import init_chat_model |
|
🎉 This PR is included in version 1.68.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
uv lock --upgradeto upgrade dependencies, there are some old ones in here