Skip to content

Commit e50a698

Browse files
Merge branch 'master' into fix/hitl-edit-persistence
2 parents 69d4f40 + 2f67f9d commit e50a698

File tree

24 files changed

+529
-26
lines changed

24 files changed

+529
-26
lines changed

.github/workflows/_release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ jobs:
377377
XAI_API_KEY: ${{ secrets.XAI_API_KEY }}
378378
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
379379
PPLX_API_KEY: ${{ secrets.PPLX_API_KEY }}
380+
LANGCHAIN_TESTS_USER_AGENT: ${{ secrets.LANGCHAIN_TESTS_USER_AGENT }}
380381
run: make integration_tests
381382
working-directory: ${{ inputs.working-directory }}
382383

@@ -395,7 +396,7 @@ jobs:
395396
contents: read
396397
strategy:
397398
matrix:
398-
partner: [anthropic]
399+
partner: [openai]
399400
fail-fast: false # Continue testing other partners if one fails
400401
env:
401402
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
@@ -409,6 +410,7 @@ jobs:
409410
AZURE_OPENAI_LEGACY_CHAT_DEPLOYMENT_NAME: ${{ secrets.AZURE_OPENAI_LEGACY_CHAT_DEPLOYMENT_NAME }}
410411
AZURE_OPENAI_LLM_DEPLOYMENT_NAME: ${{ secrets.AZURE_OPENAI_LLM_DEPLOYMENT_NAME }}
411412
AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT_NAME: ${{ secrets.AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT_NAME }}
413+
LANGCHAIN_TESTS_USER_AGENT: ${{ secrets.LANGCHAIN_TESTS_USER_AGENT }}
412414
steps:
413415
- uses: actions/checkout@v5
414416

.github/workflows/integration_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ jobs:
155155
WATSONX_APIKEY: ${{ secrets.WATSONX_APIKEY }}
156156
WATSONX_PROJECT_ID: ${{ secrets.WATSONX_PROJECT_ID }}
157157
XAI_API_KEY: ${{ secrets.XAI_API_KEY }}
158+
LANGCHAIN_TESTS_USER_AGENT: ${{ secrets.LANGCHAIN_TESTS_USER_AGENT }}
158159
run: |
159160
cd langchain/${{ matrix.working-directory }}
160161
make integration_tests

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,4 @@ To improve your LLM application development, pair LangChain with:
7575
- [API Reference](https://reference.langchain.com/python): Detailed reference on navigating base packages and integrations for LangChain.
7676
- [Integrations](https://docs.langchain.com/oss/python/integrations/providers/overview): List of LangChain integrations, including chat & embedding models, tools & toolkits, and more
7777
- [Contributing Guide](https://docs.langchain.com/oss/python/contributing/overview): Learn how to contribute to LangChain and find good first issues.
78+
- [Code of Conduct](https://github.com/langchain-ai/langchain/blob/master/.github/CODE_OF_CONDUCT.md): Our community guidelines and standards for participation.

libs/core/langchain_core/language_models/chat_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
if TYPE_CHECKING:
7777
import uuid
7878

79-
from langchain_model_profiles import ModelProfile # type: ignore[import-not-found]
79+
from langchain_model_profiles import ModelProfile # type: ignore[import-untyped]
8080

8181
from langchain_core.output_parsers.base import OutputParserLike
8282
from langchain_core.runnables import Runnable, RunnableConfig

libs/core/langchain_core/utils/input.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ def get_color_mapping(
2626
colors = list(_TEXT_COLOR_MAPPING.keys())
2727
if excluded_colors is not None:
2828
colors = [c for c in colors if c not in excluded_colors]
29+
if not colors:
30+
msg = "No colors available after applying exclusions."
31+
raise ValueError(msg)
2932
return {item: colors[i % len(colors)] for i, item in enumerate(items)}
3033

3134

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""langchain-core version information and utilities."""
22

3-
VERSION = "1.0.2"
3+
VERSION = "1.0.3"

libs/core/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies = [
1616
"pydantic>=2.7.4,<3.0.0",
1717
]
1818
name = "langchain-core"
19-
version = "1.0.2"
19+
version = "1.0.3"
2020
description = "Building applications with LLMs through composability"
2121
readme = "README.md"
2222

@@ -35,6 +35,7 @@ typing = [
3535
"mypy>=1.18.1,<1.19.0",
3636
"types-pyyaml>=6.0.12.2,<7.0.0.0",
3737
"types-requests>=2.28.11.5,<3.0.0.0",
38+
"langchain-model-profiles",
3839
"langchain-text-splitters",
3940
]
4041
dev = [
@@ -56,13 +57,15 @@ test = [
5657
"blockbuster>=1.5.18,<1.6.0",
5758
"numpy>=1.26.4; python_version<'3.13'",
5859
"numpy>=2.1.0; python_version>='3.13'",
60+
"langchain-model-profiles",
5961
"langchain-tests",
6062
"pytest-benchmark",
6163
"pytest-codspeed",
6264
]
6365
test_integration = []
6466

6567
[tool.uv.sources]
68+
langchain-model-profiles = { path = "../model-profiles" }
6669
langchain-tests = { path = "../standard-tests" }
6770
langchain-text-splitters = { path = "../text-splitters" }
6871

libs/core/tests/unit_tests/language_models/chat_models/test_base.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,3 +1217,20 @@ def _llm_type(self) -> str:
12171217

12181218
ls_params = llm._get_ls_params(stop=["stop"])
12191219
assert ls_params["ls_stop"] == ["stop"]
1220+
1221+
1222+
def test_model_profiles() -> None:
1223+
model = GenericFakeChatModel(messages=iter([]))
1224+
profile = model.profile
1225+
assert profile == {}
1226+
1227+
class MyModel(GenericFakeChatModel):
1228+
model: str = "gpt-5"
1229+
1230+
@property
1231+
def _llm_type(self) -> str:
1232+
return "openai-chat"
1233+
1234+
model = MyModel(messages=iter([]))
1235+
profile = model.profile
1236+
assert profile

libs/core/uv.lock

Lines changed: 45 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/langchain_v1/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ description = "Building applications with LLMs through composability"
1818
readme = "README.md"
1919

2020
[project.optional-dependencies]
21+
model-profiles = ["langchain-model-profiles"]
2122
community = ["langchain-community"]
2223
anthropic = ["langchain-anthropic"]
2324
openai = ["langchain-openai"]
24-
#azure-ai = ["langchain-azure-ai"]
25+
azure-ai = ["langchain-azure-ai"]
2526
#cohere = ["langchain-cohere"]
2627
google-vertexai = ["langchain-google-vertexai"]
2728
google-genai = ["langchain-google-genai"]

0 commit comments

Comments
 (0)