Skip to content

Commit 189fd0d

Browse files
Merge branch 'main' into add-Azure-to-ChatModelTab
2 parents 1b6746f + e9dbac2 commit 189fd0d

File tree

5,686 files changed

+227968
-79213
lines changed

Some content is hidden

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

5,686 files changed

+227968
-79213
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Node.js & TypeScript",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-20",
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1.1.0-20",
77
"customizations": {
88
"vscode": {
99
"extensions": [

.github/DISCUSSION_TEMPLATE/q-a.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ body:
2121
Relevant links to check before opening a question to see if your question has already been answered, fixed or
2222
if there's another way to solve your problem:
2323
24-
[LangChain.js documentation with the integrated search](https://js.langchain.com/v0.2/docs/introduction),
25-
[API Reference](https://v02.api.js.langchain.com/),
24+
[LangChain.js documentation with the integrated search](https://js.langchain.com/docs/introduction),
25+
[API Reference](https://api.js.langchain.com/),
2626
[GitHub search](https://github.com/langchain-ai/langchainjs),
2727
[LangChain.js Github Discussions](https://github.com/langchain-ai/langchainjs/discussions),
2828
[LangChain.js Github Issues](https://github.com/langchain-ai/langchainjs/issues?q=is%3Aissue),

.github/ISSUE_TEMPLATE/bug-report.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ body:
1515
Relevant links to check before filing a bug report to see if your issue has already been reported, fixed or
1616
if there's another way to solve your problem:
1717
18-
[LangChain.js documentation with the integrated search](https://js.langchain.com/v0.2/docs/introduction),
19-
[API Reference](https://v02.api.js.langchain.com/),
18+
[LangChain.js documentation with the integrated search](https://js.langchain.com/docs/introduction),
19+
[API Reference](https://api.js.langchain.com/),
2020
[GitHub search](https://github.com/langchain-ai/langchainjs),
2121
[LangChain.js Github Discussions](https://github.com/langchain-ai/langchainjs/discussions),
2222
[LangChain.js Github Issues](https://github.com/langchain-ai/langchainjs/issues?q=is%3Aissue),

.github/ISSUE_TEMPLATE/config.yml

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ contact_links:
44
- name: 🤔 Question or Problem
55
about: Ask a question or ask about a problem in GitHub Discussions.
66
url: https://www.github.com/langchain-ai/langchainjs/discussions/categories/q-a
7-
- name: Discord
8-
url: https://discord.gg/6adMQxSpJS
9-
about: General community discussions
107
- name: Feature Request
118
url: https://www.github.com/langchain-ai/langchainjs/discussions/categories/ideas
129
about: Suggest a feature or an idea

.github/ISSUE_TEMPLATE/documentation.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ body:
2020
If you're in the wrong place, here are some helpful links to find a better
2121
place to ask your question:
2222
23-
[LangChain.js documentation with the integrated search](https://js.langchain.com/v0.2/docs/introduction),
24-
[API Reference](https://v02.api.js.langchain.com/),
23+
[LangChain.js documentation with the integrated search](https://js.langchain.com/docs/introduction),
24+
[API Reference](https://api.js.langchain.com/),
2525
[GitHub search](https://github.com/langchain-ai/langchainjs),
2626
[LangChain.js Github Discussions](https://github.com/langchain-ai/langchainjs/discussions),
2727
[LangChain.js Github Issues](https://github.com/langchain-ai/langchainjs/issues?q=is%3Aissue),

.github/contributing/INTEGRATIONS.md

+2-9
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,9 @@ Above, we have a document loader that we're sure will always require a specific
122122

123123
We highly appreciate documentation and integration tests showing how to set up and use your integration. Providing this will make it much easier for reviewers to verify that your integration works and will streamline the review process.
124124

125-
New docs pages should be added as `.mdx` files in the appropriate location under `docs/` (`.mdx` is an extended markdown format that allows use of additional statements like `import`). Code examples within docs pages should be under `examples` and imported like this:
125+
New docs pages should be added as the appropriate template from here:
126126

127-
```md
128-
import CodeBlock from "@theme/CodeBlock";
129-
import LangCoExample from "@examples/document_loaders/langco.ts";
130-
131-
<CodeBlock language="typescript">{LangCoExample}</CodeBlock>
132-
```
133-
134-
This allows the linter and formatter to pick up example code blocks within docs as well.
127+
https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-scripts/src/cli/docs/templates
135128

136129
### Linting and formatting
137130

.github/scripts/deployDomainVercel.sh

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
# Check if an argument is provided
4+
if [ $# -eq 0 ]; then
5+
echo "Error: Please provide a version string as an argument."
6+
exit 1
7+
fi
8+
9+
inputString=$1
10+
11+
# Check if VERCEL_TOKEN is set
12+
if [ -z "$VERCEL_TOKEN" ]; then
13+
echo "Error: VERCEL_TOKEN is not set."
14+
exit 1
15+
fi
16+
17+
# save stdout and stderr to files
18+
vercel deploy --prebuilt --token="$VERCEL_TOKEN" >deployment-url.txt 2>error.txt
19+
20+
# check the exit code
21+
code=$?
22+
if [ $code -eq 0 ]; then
23+
# Set the deploymentUrl using the input string
24+
deploymentUrl="${inputString}.api.js.langchain.com"
25+
vercel alias $(cat deployment-url.txt) $deploymentUrl --token="$VERCEL_TOKEN" --scope="langchain"
26+
else
27+
# Handle the error
28+
errorMessage=$(cat error.txt)
29+
echo "There was an error: $errorMessage"
30+
fi

.github/workflows/ci.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
name: CI
55

66
on:
7-
push:
8-
branches: ["main"]
97
pull_request:
10-
# Do not run this workflow if only docs changed.
11-
paths-ignore:
8+
paths_ignore:
129
- 'docs/**'
10+
- 'dependency_range_tests/**'
11+
- 'environment_tests/**'
12+
- '.github/**'
13+
- '!.github/workflows/ci.yml'
1314
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI
1415

1516

@@ -38,8 +39,3 @@ jobs:
3839
run: yarn install --immutable --mode=skip-build
3940
- name: Check linting
4041
run: yarn run lint
41-
42-
test-exports:
43-
uses:
44-
./.github/workflows/test-exports.yml
45-
secrets: inherit

0 commit comments

Comments
 (0)