Skip to content

Commit 881c653

Browse files
committed
Merge branch 'master' into wip-v0.4
# Conflicts: # .github/workflows/_integration_test.yml # .github/workflows/_release.yml # .github/workflows/api_doc_build.yml # .github/workflows/people.yml # .github/workflows/run_notebooks.yml # .github/workflows/scheduled_test.yml # SECURITY.md # docs/docs/integrations/vectorstores/pgvectorstore.ipynb # libs/langchain_v1/langchain/chat_models/base.py # libs/langchain_v1/tests/integration_tests/chat_models/test_base.py # libs/langchain_v1/tests/unit_tests/chat_models/test_chat_models.py
2 parents 5e9eb19 + a9e52ca commit 881c653

File tree

328 files changed

+1982
-1971
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

328 files changed

+1982
-1971
lines changed

.github/workflows/.codespell-exclude

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/_integration_test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: '🚀 Integration Tests'
2+
run-name: 'Test ${{ inputs.working-directory }} on Python ${{ inputs.python-version }}'
23

34
on:
45
workflow_dispatch:
@@ -11,6 +12,7 @@ on:
1112
required: true
1213
type: string
1314
description: "Python version to use"
15+
default: "3.11"
1416

1517
permissions:
1618
contents: read
@@ -24,7 +26,7 @@ jobs:
2426
run:
2527
working-directory: ${{ inputs.working-directory }}
2628
runs-on: ubuntu-latest
27-
name: '🚀 Integration Tests (Python ${{ inputs.python-version }})'
29+
name: 'Python ${{ inputs.python-version }}'
2830
steps:
2931
- uses: actions/checkout@v4
3032

.github/workflows/_release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: '🚀 Package Release'
2-
run-name: '🚀 Release ${{ inputs.working-directory }} by @${{ github.actor }}'
2+
run-name: 'Release ${{ inputs.working-directory }} ${{ inputs.release-version }}'
33
on:
44
workflow_call:
55
inputs:
@@ -14,6 +14,11 @@ on:
1414
type: string
1515
description: "From which folder this pipeline executes"
1616
default: 'libs/langchain'
17+
release-version:
18+
required: true
19+
type: string
20+
default: '0.1.0'
21+
description: "New version of package being released"
1722
dangerous-nonmaster-release:
1823
required: false
1924
type: boolean
@@ -111,7 +116,7 @@ jobs:
111116
# Look for the latest release of the same base version
112117
REGEX="^$PKG_NAME==$BASE_VERSION\$"
113118
PREV_TAG=$(git tag --sort=-creatordate | (grep -P "$REGEX" || true) | head -1)
114-
119+
115120
# If no exact base version match, look for the latest release of any kind
116121
if [ -z "$PREV_TAG" ]; then
117122
REGEX="^$PKG_NAME==\\d+\\.\\d+\\.\\d+\$"
@@ -122,7 +127,7 @@ jobs:
122127
PREV_TAG="$PKG_NAME==${VERSION%.*}.$(( ${VERSION##*.} - 1 ))"; [[ "${VERSION##*.}" -eq 0 ]] && PREV_TAG=""
123128
124129
# backup case if releasing e.g. 0.3.0, looks up last release
125-
# note if last release (chronologically) was e.g. 0.1.47 it will get
130+
# note if last release (chronologically) was e.g. 0.1.47 it will get
126131
# that instead of the last 0.2 release
127132
if [ -z "$PREV_TAG" ]; then
128133
REGEX="^$PKG_NAME==\\d+\\.\\d+\\.\\d+\$"
@@ -484,7 +489,7 @@ jobs:
484489
with:
485490
name: dist
486491
path: ${{ inputs.working-directory }}/dist/
487-
492+
488493
- name: Create Tag
489494
uses: ncipollo/release-action@v1
490495
with:

.github/workflows/api_doc_build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: '📚 API Documentation Build'
1+
name: '📚 API Docs'
2+
run-name: 'Build & Deploy API Reference'
23
# Runs daily or can be triggered manually for immediate updates
34

45
on:
@@ -51,23 +52,21 @@ jobs:
5152
run: |
5253
# Get unique repositories
5354
REPOS=$(echo "$REPOS_UNSORTED" | sort -u)
54-
5555
# Checkout each unique repository
5656
for repo in $REPOS; do
5757
# Validate repository format (allow any org with proper format)
5858
if [[ ! "$repo" =~ ^[a-zA-Z0-9_.-]+/[a-zA-Z0-9_.-]+$ ]]; then
5959
echo "Error: Invalid repository format: $repo"
6060
exit 1
6161
fi
62-
62+
6363
REPO_NAME=$(echo $repo | cut -d'/' -f2)
64-
64+
6565
# Additional validation for repo name
6666
if [[ ! "$REPO_NAME" =~ ^[a-zA-Z0-9_.-]+$ ]]; then
6767
echo "Error: Invalid repository name: $REPO_NAME"
6868
exit 1
6969
fi
70-
7170
echo "Checking out $repo to $REPO_NAME"
7271
git clone --depth 1 https://github.com/$repo.git $REPO_NAME
7372
done

.github/workflows/people.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: '👥 LangChain People'
2-
2+
run-name: 'Update People Data'
3+
# This workflow updates the LangChain People data by fetching the latest information from the LangChain Git
34
on:
45
schedule:
56
- cron: "0 14 1 * *"

.github/workflows/run_notebooks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: '📝 Run Documentation Notebooks'
2-
1+
name: '📓 Validate Documentation Notebooks'
2+
run-name: 'Test notebooks in ${{ inputs.working-directory }}'
33
on:
44
workflow_dispatch:
55
inputs:

.github/workflows/scheduled_test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: '⏰ Scheduled Integration Tests'
2+
run-name: "Run Integration Tests - ${{ inputs.working-directory-force || 'all libs' }} (Python ${{ inputs.python-version-force || '3.9, 3.11' }})"
23

34
on:
45
workflow_dispatch: # Allows maintainers to trigger the workflow manually in GitHub UI
@@ -161,7 +162,7 @@ jobs:
161162
162163
- name: '🧹 Clean up External Libraries'
163164
# Clean up external libraries to avoid affecting git status check
164-
run: |
165+
run: |
165166
rm -rf \
166167
langchain/libs/partners/google-genai \
167168
langchain/libs/partners/google-vertexai \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
[![GitHub star chart](https://img.shields.io/github/stars/langchain-ai/langchain?style=flat-square)](https://star-history.com/#langchain-ai/langchain)
1616
[![Open Issues](https://img.shields.io/github/issues-raw/langchain-ai/langchain?style=flat-square)](https://github.com/langchain-ai/langchain/issues)
1717
[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode&style=flat-square)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/langchain-ai/langchain)
18-
[<img src="https://github.com/codespaces/badge.svg" title="Open in Github Codespace" width="150" height="20">](https://codespaces.new/langchain-ai/langchain)
18+
[<img src="https://github.com/codespaces/badge.svg" alt="Open in Github Codespace" title="Open in Github Codespace" width="150" height="20">](https://codespaces.new/langchain-ai/langchain)
1919
[![Twitter](https://img.shields.io/twitter/url/https/twitter.com/langchainai.svg?style=social&label=Follow%20%40LangChainAI)](https://twitter.com/langchainai)
2020
[![CodSpeed Badge](https://img.shields.io/endpoint?url=https://codspeed.io/badge.json)](https://codspeed.io/langchain-ai/langchain)
2121

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ LangChain is partnered with [huntr by Protect AI](https://huntr.com/) to provide
3232
a bounty program for our open source projects.
3333

3434
Please report security vulnerabilities associated with the LangChain
35-
open source projects [here](https://huntr.com/bounties/disclose/?target=https%3A%2F%2Fgithub.com%2Flangchain-ai%2Flangchain&validSearch=true).
35+
open source projects at [huntr](https://huntr.com/bounties/disclose/?target=https%3A%2F%2Fgithub.com%2Flangchain-ai%2Flangchain&validSearch=true).
3636

3737
Before reporting a vulnerability, please review:
3838

cookbook/Multi_modal_RAG_google.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
},
145145
{
146146
"cell_type": "code",
147-
"execution_count": 4,
147+
"execution_count": null,
148148
"id": "kWDWfSDBMPl8",
149149
"metadata": {},
150150
"outputs": [
@@ -185,7 +185,7 @@
185185
" )\n",
186186
" # Text summary chain\n",
187187
" model = VertexAI(\n",
188-
" temperature=0, model_name=\"gemini-2.0-flash-lite-001\", max_tokens=1024\n",
188+
" temperature=0, model_name=\"gemini-2.5-flash\", max_tokens=1024\n",
189189
" ).with_fallbacks([empty_response])\n",
190190
" summarize_chain = {\"element\": lambda x: x} | prompt | model | StrOutputParser()\n",
191191
"\n",
@@ -235,7 +235,7 @@
235235
},
236236
{
237237
"cell_type": "code",
238-
"execution_count": 6,
238+
"execution_count": null,
239239
"id": "PeK9bzXv3olF",
240240
"metadata": {},
241241
"outputs": [],
@@ -254,7 +254,7 @@
254254
"\n",
255255
"def image_summarize(img_base64, prompt):\n",
256256
" \"\"\"Make image summary\"\"\"\n",
257-
" model = ChatVertexAI(model=\"gemini-2.0-flash\", max_tokens=1024)\n",
257+
" model = ChatVertexAI(model=\"gemini-2.5-flash\", max_tokens=1024)\n",
258258
"\n",
259259
" msg = model.invoke(\n",
260260
" [\n",
@@ -431,7 +431,7 @@
431431
},
432432
{
433433
"cell_type": "code",
434-
"execution_count": 9,
434+
"execution_count": null,
435435
"id": "GlwCErBaCKQW",
436436
"metadata": {},
437437
"outputs": [],
@@ -553,7 +553,7 @@
553553
" \"\"\"\n",
554554
"\n",
555555
" # Multi-modal LLM\n",
556-
" model = ChatVertexAI(temperature=0, model_name=\"gemini-2.0-flash\", max_tokens=1024)\n",
556+
" model = ChatVertexAI(temperature=0, model_name=\"gemini-2.5-flash\", max_tokens=1024)\n",
557557
"\n",
558558
" # RAG pipeline\n",
559559
" chain = (\n",

0 commit comments

Comments
 (0)