Skip to content

Commit 241b6d2

Browse files
authored
Revert "merge master (#25997)" (#25998)
1 parent 91e09ff commit 241b6d2

File tree

29 files changed

+3122
-3267
lines changed

29 files changed

+3122
-3267
lines changed

β€Ž.github/scripts/check_diff.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
# specifically in huggingface jobs
2828
# https://github.com/langchain-ai/langchain/issues/25558
2929
"huggingface",
30+
# remove ai21 because of breaking changes in sdk version 2.14.0
31+
# that have not been fixed yet
32+
"ai21",
3033
]
3134

3235

@@ -202,6 +205,7 @@ def _get_configs_for_multi_dirs(
202205
dirs_to_run["test"].add("libs/partners/mistralai")
203206
dirs_to_run["test"].add("libs/partners/openai")
204207
dirs_to_run["test"].add("libs/partners/anthropic")
208+
dirs_to_run["test"].add("libs/partners/ai21")
205209
dirs_to_run["test"].add("libs/partners/fireworks")
206210
dirs_to_run["test"].add("libs/partners/groq")
207211

β€Žlibs/community/langchain_community/chat_models/openai.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,6 @@ def _stream(
403403
if len(chunk["choices"]) == 0:
404404
continue
405405
choice = chunk["choices"][0]
406-
if choice["delta"] is None:
407-
continue
408406
chunk = _convert_delta_to_message_chunk(
409407
choice["delta"], default_chunk_class
410408
)
@@ -497,8 +495,6 @@ async def _astream(
497495
if len(chunk["choices"]) == 0:
498496
continue
499497
choice = chunk["choices"][0]
500-
if choice["delta"] is None:
501-
continue
502498
chunk = _convert_delta_to_message_chunk(
503499
choice["delta"], default_chunk_class
504500
)

β€Žlibs/community/langchain_community/graphs/neo4j_graph.py

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -346,27 +346,18 @@ def __init__(
346346
)
347347

348348
url = get_from_dict_or_env({"url": url}, "url", "NEO4J_URI")
349-
# if username and password are "", assume Neo4j auth is disabled
350-
if username == "" and password == "":
351-
auth = None
352-
else:
353-
username = get_from_dict_or_env(
354-
{"username": username},
355-
"username",
356-
"NEO4J_USERNAME",
357-
)
358-
password = get_from_dict_or_env(
359-
{"password": password},
360-
"password",
361-
"NEO4J_PASSWORD",
362-
)
363-
auth = (username, password)
349+
username = get_from_dict_or_env(
350+
{"username": username}, "username", "NEO4J_USERNAME"
351+
)
352+
password = get_from_dict_or_env(
353+
{"password": password}, "password", "NEO4J_PASSWORD"
354+
)
364355
database = get_from_dict_or_env(
365356
{"database": database}, "database", "NEO4J_DATABASE", "neo4j"
366357
)
367358

368359
self._driver = neo4j.GraphDatabase.driver(
369-
url, auth=auth, **(driver_config or {})
360+
url, auth=(username, password), **(driver_config or {})
370361
)
371362
self._database = database
372363
self.timeout = timeout

β€Žlibs/community/poetry.lock

Lines changed: 161 additions & 115 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žlibs/community/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

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

3131
[tool.poetry.dependencies]
3232
python = ">=3.8.1,<4.0"
33-
langchain-core = "^0.2.38"
34-
langchain = "^0.2.16"
33+
langchain-core = "^0.2.37"
34+
langchain = "^0.2.15"
3535
SQLAlchemy = ">=1.4,<3"
3636
requests = "^2"
3737
PyYAML = ">=5.3"

β€Žlibs/experimental/poetry.lock

Lines changed: 1000 additions & 1089 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žlibs/experimental/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "langchain-experimental"
7-
version = "0.0.65"
7+
version = "0.0.64"
88
description = "Building applications with LLMs through composability"
99
authors = []
1010
license = "MIT"
@@ -22,8 +22,8 @@ exclude = [ "notebooks", "examples", "example_data",]
2222

2323
[tool.poetry.dependencies]
2424
python = ">=3.8.1,<4.0"
25-
langchain-core = "^0.2.38"
26-
langchain-community = "^0.2.16"
25+
langchain-core = "^0.2.27"
26+
langchain-community = "^0.2.10"
2727

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

β€Žlibs/langchain/poetry.lock

Lines changed: 227 additions & 138 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žlibs/langchain/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "langchain"
7-
version = "0.2.16"
7+
version = "0.2.15"
88
description = "Building applications with LLMs through composability"
99
authors = []
1010
license = "MIT"
@@ -33,7 +33,7 @@ langchain-server = "langchain.server:main"
3333

3434
[tool.poetry.dependencies]
3535
python = ">=3.8.1,<4.0"
36-
langchain-core = "^0.2.38"
36+
langchain-core = "^0.2.35"
3737
langchain-text-splitters = "^0.2.0"
3838
langsmith = "^0.1.17"
3939
pydantic = ">=1,<3"

β€Žlibs/partners/milvus/poetry.lock

Lines changed: 231 additions & 334 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)