Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/scripts/check_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
# specifically in huggingface jobs
# https://github.com/langchain-ai/langchain/issues/25558
"huggingface",
# remove ai21 because of breaking changes in sdk version 2.14.0
# that have not been fixed yet
"ai21",
]


Expand Down Expand Up @@ -198,7 +195,6 @@ def _get_configs_for_multi_dirs(
dirs_to_run["test"].add("libs/partners/mistralai")
dirs_to_run["test"].add("libs/partners/openai")
dirs_to_run["test"].add("libs/partners/anthropic")
dirs_to_run["test"].add("libs/partners/ai21")
dirs_to_run["test"].add("libs/partners/fireworks")
dirs_to_run["test"].add("libs/partners/groq")

Expand Down
4 changes: 4 additions & 0 deletions libs/community/langchain_community/chat_models/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ def _stream(
if len(chunk["choices"]) == 0:
continue
choice = chunk["choices"][0]
if choice["delta"] is None:
continue
chunk = _convert_delta_to_message_chunk(
choice["delta"], default_chunk_class
)
Expand Down Expand Up @@ -495,6 +497,8 @@ async def _astream(
if len(chunk["choices"]) == 0:
continue
choice = chunk["choices"][0]
if choice["delta"] is None:
continue
chunk = _convert_delta_to_message_chunk(
choice["delta"], default_chunk_class
)
Expand Down
23 changes: 16 additions & 7 deletions libs/community/langchain_community/graphs/neo4j_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,18 +346,27 @@ def __init__(
)

url = get_from_dict_or_env({"url": url}, "url", "NEO4J_URI")
username = get_from_dict_or_env(
{"username": username}, "username", "NEO4J_USERNAME"
)
password = get_from_dict_or_env(
{"password": password}, "password", "NEO4J_PASSWORD"
)
# if username and password are "", assume Neo4j auth is disabled
if username == "" and password == "":
auth = None
else:
username = get_from_dict_or_env(
{"username": username},
"username",
"NEO4J_USERNAME",
)
password = get_from_dict_or_env(
{"password": password},
"password",
"NEO4J_PASSWORD",
)
auth = (username, password)
database = get_from_dict_or_env(
{"database": database}, "database", "NEO4J_DATABASE", "neo4j"
)

self._driver = neo4j.GraphDatabase.driver(
url, auth=(username, password), **(driver_config or {})
url, auth=auth, **(driver_config or {})
)
self._database = database
self.timeout = timeout
Expand Down
276 changes: 115 additions & 161 deletions libs/community/poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions libs/community/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "langchain-community"
version = "0.2.15"
version = "0.2.16"
description = "Community contributed LangChain integrations."
authors = []
license = "MIT"
Expand All @@ -30,8 +30,8 @@ ignore-words-list = "momento,collison,ned,foor,reworkd,parth,whats,aapply,mysogy

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain-core = "^0.2.37"
langchain = "^0.2.15"
langchain-core = "^0.2.38"
langchain = "^0.2.16"
SQLAlchemy = ">=1.4,<3"
requests = "^2"
PyYAML = ">=5.3"
Expand Down
2,089 changes: 1,089 additions & 1,000 deletions libs/experimental/poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions libs/experimental/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "langchain-experimental"
version = "0.0.64"
version = "0.0.65"
description = "Building applications with LLMs through composability"
authors = []
license = "MIT"
Expand All @@ -22,8 +22,8 @@ exclude = [ "notebooks", "examples", "example_data",]

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain-core = "^0.2.27"
langchain-community = "^0.2.10"
langchain-core = "^0.2.38"
langchain-community = "^0.2.16"

[tool.ruff.lint]
select = [ "E", "F", "I", "T201",]
Expand Down
365 changes: 138 additions & 227 deletions libs/langchain/poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions libs/langchain/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "langchain"
version = "0.2.15"
version = "0.2.16"
description = "Building applications with LLMs through composability"
authors = []
license = "MIT"
Expand Down Expand Up @@ -33,7 +33,7 @@ langchain-server = "langchain.server:main"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain-core = "^0.2.35"
langchain-core = "^0.2.38"
langchain-text-splitters = "^0.2.0"
langsmith = "^0.1.17"
pydantic = ">=1,<3"
Expand Down
565 changes: 334 additions & 231 deletions libs/partners/milvus/poetry.lock

Large diffs are not rendered by default.

103 changes: 44 additions & 59 deletions libs/partners/milvus/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
[build-system]
requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "langchain-milvus"
version = "0.1.4"
version = "0.1.5"
description = "An integration package connecting Milvus and LangChain"
authors = []
readme = "README.md"
repository = "https://github.com/langchain-ai/langchain"
license = "MIT"

[tool.ruff]
select = [ "E", "F", "I", "T201",]

[tool.mypy]
disallow_untyped_defs = "True"
[[tool.mypy.overrides]]
module = [ "pymilvus",]
ignore_missing_imports = "True"

[tool.poetry.urls]
"Source Code" = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/milvus"
"Release Notes" = "https://github.com/langchain-ai/langchain/releases?q=tag%3A%22langchain-milvus%3D%3D0%22&expanded=true"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain-core = "^0.2.20"
langchain-core = "^0.2.38"
pymilvus = "^2.4.3"

[[tool.poetry.dependencies.scipy]]
version = "^1.7"
python = "<3.12"
Expand All @@ -24,85 +36,58 @@ python = "<3.12"
version = "^1.9"
python = ">=3.12"

[tool.coverage.run]
omit = [ "tests/*",]

[tool.pytest.ini_options]
addopts = "--snapshot-warn-unused --strict-markers --strict-config --durations=5"
markers = [ "requires: mark tests as requiring a specific library", "asyncio: mark tests as requiring asyncio", "compile: mark placeholder test used to compile integration tests without running them",]
asyncio_mode = "auto"

[tool.poetry.group.test]
optional = true

[tool.poetry.group.codespell]
optional = true

[tool.poetry.group.test_integration]
optional = true

[tool.poetry.group.lint]
optional = true

[tool.poetry.group.dev]
optional = true

[tool.poetry.group.test.dependencies]
pytest = "^7.3.0"
freezegun = "^1.2.2"
pytest-mock = "^3.10.0"
syrupy = "^4.0.2"
pytest-watcher = "^0.3.4"
pytest-asyncio = "^0.21.1"
langchain-core = { path = "../../core", develop = true }

[tool.poetry.group.codespell]
optional = true

[tool.poetry.group.codespell.dependencies]
codespell = "^2.2.0"

[tool.poetry.group.test_integration]
optional = true

[tool.poetry.group.test_integration.dependencies]

[tool.poetry.group.lint]
optional = true

[tool.poetry.group.lint.dependencies]
ruff = "^0.1.5"

[tool.poetry.group.typing.dependencies]
mypy = "^0.991"
langchain-core = { path = "../../core", develop = true }
types-requests = "^2"
simsimd = "^5.0.0"

[tool.poetry.group.dev]
optional = true

[tool.poetry.group.dev.dependencies]
langchain-core = { path = "../../core", develop = true }

[tool.ruff]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"T201", # print
]

[tool.mypy]
disallow_untyped_defs = "True"

[[tool.mypy.overrides]]
module = ["pymilvus"]
ignore_missing_imports = "True"
[tool.poetry.group.test.dependencies.langchain-core]
path = "../../core"
develop = true

[tool.coverage.run]
omit = ["tests/*"]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.group.typing.dependencies.langchain-core]
path = "../../core"
develop = true

[tool.pytest.ini_options]
# --strict-markers will raise errors on unknown marks.
# https://docs.pytest.org/en/7.1.x/how-to/mark.html#raising-errors-on-unknown-marks
#
# https://docs.pytest.org/en/7.1.x/reference/reference.html
# --strict-config any warnings encountered while parsing the `pytest`
# section of the configuration file raise errors.
#
# https://github.com/tophat/syrupy
# --snapshot-warn-unused Prints a warning on unused snapshots rather than fail the test suite.
addopts = "--snapshot-warn-unused --strict-markers --strict-config --durations=5"
# Registering custom markers.
# https://docs.pytest.org/en/7.1.x/example/markers.html#registering-markers
markers = [
"requires: mark tests as requiring a specific library",
"asyncio: mark tests as requiring asyncio",
"compile: mark placeholder test used to compile integration tests without running them",
]
asyncio_mode = "auto"
[tool.poetry.group.dev.dependencies.langchain-core]
path = "../../core"
develop = true
Loading
Loading