Skip to content

Commit

Permalink
integrations[patch]: bump core to 0.3.15 (#27805)
Browse files Browse the repository at this point in the history
  • Loading branch information
baskaryan authored Oct 31, 2024
1 parent 54cb80c commit 06420de
Show file tree
Hide file tree
Showing 15 changed files with 1,453 additions and 1,296 deletions.
8 changes: 5 additions & 3 deletions libs/partners/anthropic/langchain_anthropic/chat_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,12 @@ def _merge_messages(
all(isinstance(m, c) for m in (curr, last))
for c in (SystemMessage, HumanMessage)
):
if isinstance(last.content, str):
new_content: List = [{"type": "text", "text": last.content}]
if isinstance(cast(BaseMessage, last).content, str):
new_content: List = [
{"type": "text", "text": cast(BaseMessage, last).content}
]
else:
new_content = copy.copy(last.content)
new_content = copy.copy(cast(list, cast(BaseMessage, last).content))
if isinstance(curr.content, str):
new_content.append({"type": "text", "text": curr.content})
else:
Expand Down
6 changes: 3 additions & 3 deletions libs/partners/anthropic/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions libs/partners/anthropic/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-anthropic"
version = "0.2.3"
version = "0.2.4"
description = "An integration package connecting AnthropicMessages and LangChain"
authors = []
readme = "README.md"
Expand All @@ -21,7 +21,7 @@ disallow_untyped_defs = "True"
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
anthropic = ">=0.30.0,<1"
langchain-core = "^0.3.9"
langchain-core = "^0.3.15"
pydantic = "^2.7.4"

[tool.ruff.lint]
Expand Down
6 changes: 3 additions & 3 deletions libs/partners/fireworks/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions libs/partners/fireworks/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-fireworks"
version = "0.2.1"
version = "0.2.5"
description = "An integration package connecting Fireworks and LangChain"
authors = []
readme = "README.md"
Expand All @@ -20,7 +20,7 @@ disallow_untyped_defs = "True"

[tool.poetry.dependencies]
python = ">=3.9,<4.0"
langchain-core = "^0.3.9"
langchain-core = "^0.3.15"
fireworks-ai = ">=0.13.0"
openai = "^1.10.0"
requests = "^2"
Expand Down
708 changes: 374 additions & 334 deletions libs/partners/groq/poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions libs/partners/groq/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-groq"
version = "0.2.0"
version = "0.2.1"
description = "An integration package connecting Groq and LangChain"
authors = []
readme = "README.md"
Expand All @@ -20,7 +20,7 @@ disallow_untyped_defs = "True"

[tool.poetry.dependencies]
python = ">=3.9,<4.0"
langchain-core = "^0.3"
langchain-core = "^0.3.15"
groq = ">=0.4.1,<1"

[tool.ruff.lint]
Expand Down
325 changes: 180 additions & 145 deletions libs/partners/huggingface/poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions libs/partners/huggingface/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-huggingface"
version = "0.1.1"
version = "0.1.2"
description = "An integration package connecting Hugging Face and LangChain"
authors = []
readme = "README.md"
Expand All @@ -20,7 +20,7 @@ disallow_untyped_defs = "True"

[tool.poetry.dependencies]
python = ">=3.9,<4.0"
langchain-core = "^0.3.13"
langchain-core = "^0.3.15"
tokenizers = ">=0.19.1"
transformers = ">=4.39.0"
sentence-transformers = ">=2.6.0"
Expand Down
954 changes: 497 additions & 457 deletions libs/partners/mistralai/poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions libs/partners/mistralai/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-mistralai"
version = "0.2.0"
version = "0.2.1"
description = "An integration package connecting Mistral and LangChain"
authors = []
readme = "README.md"
Expand All @@ -20,7 +20,7 @@ disallow_untyped_defs = "True"

[tool.poetry.dependencies]
python = ">=3.9,<4.0"
langchain-core = "^0.3.0"
langchain-core = "^0.3.15"
tokenizers = ">=0.15.1,<1"
httpx = ">=0.25.2,<1"
httpx-sse = ">=0.3.1,<1"
Expand Down
Loading

0 comments on commit 06420de

Please sign in to comment.