Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jacob/mistral #2

Draft
wants to merge 344 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
344 commits
Select commit Hold shift + click to select a range
377ad8b
langchain[patch]: Bump vertex dep (#6613)
bracesproul Aug 23, 2024
e15307f
cohere[patch]: Do not test stream tool calls in cohere (#6617)
bracesproul Aug 23, 2024
0cd64d8
scripts[patch]: Use fs.rm for deleting directories (#6619)
bracesproul Aug 23, 2024
037cb6f
fix(core): return conditional edge in toJSON
dqbd Aug 26, 2024
d3dfa92
langchain[patch]: Update version for removal of deprecated code (#6620)
bracesproul Aug 26, 2024
3193cc4
mistral[patch]: Hide secrets (#6630)
bracesproul Aug 26, 2024
5a827d2
mistral[patch]: Release 0.0.29 (#6632)
bracesproul Aug 26, 2024
943ca5f
core[patch]: Adds option for more verbose parsing errors (#6634)
jacoblee93 Aug 26, 2024
64c5d34
scripts[patch]: Add spam comment filter (#6633)
bracesproul Aug 26, 2024
0b34933
core[patch]: Release 0.2.29 (#6635)
jacoblee93 Aug 26, 2024
289ec35
langchain[patch]: Fixes bug in ReAct agent that prevents parsing erro…
obround Aug 26, 2024
3371d5d
infra[patch]: Improve speeds for spam detection script (#6636)
bracesproul Aug 26, 2024
4f3a8d2
infra[patch]: Fix comment regex (#6637)
bracesproul Aug 26, 2024
c0a19d0
core[patch]: Make tool call chunk partial JSON parsing more strict (#…
jacoblee93 Aug 26, 2024
3d8917b
openai[patch]: Properly dedupe system fingerprint (#6638)
jacoblee93 Aug 26, 2024
e3e014c
openai[patch]: Release 0.2.8 (#6640)
jacoblee93 Aug 26, 2024
608bbf1
core[patch]: Prevent ConsoleCallbackHandler from throwing TypeError w…
benjamincburns Aug 26, 2024
66749d5
core[patch]: Release 0.2.30 (#6641)
jacoblee93 Aug 26, 2024
5e93236
infra[patch]: Sanitize body in spam filter (#6642)
AdnaneKhan Aug 27, 2024
b9193b2
docs[patch]: Update ParentDocument docs to use byte store (#6647)
bracesproul Aug 28, 2024
bf6e783
docs[patch]: Update migrate_agent.ipynb -> was refering to the wrong …
TimSusa Aug 28, 2024
dae691c
Fix typo in agents tutorial (#6649)
ksimons Aug 28, 2024
0c003d8
feat(core): always provide message ID inferred from run ID if not pre…
dqbd Aug 28, 2024
8f4ba8d
core[patch]: Treat OpenAI message format as a message like (#6654)
jacoblee93 Aug 28, 2024
f3d4b14
core[patch]: Release 0.2.31 (#6656)
jacoblee93 Aug 28, 2024
f38c569
api_refs[patch]: Update core redirect (#6668)
bracesproul Aug 30, 2024
aa1f7cf
openai[patch]: Skip flaky test (#6677)
bracesproul Sep 2, 2024
f3de0bc
👥 Update LangChain people data (#6669)
jacoblee93 Sep 3, 2024
2de468f
docs[patch]: Fix typos in Agents tutorial (#6675)
ayatnkw Sep 3, 2024
7922aa9
fix(openai): Check `configuration.apiKey` in `ChatOpenAI` constructor…
ezra-chu Sep 4, 2024
2cd7519
langchain[patch]: Allow custom handling of tool runtime errors in leg…
jacoblee93 Sep 4, 2024
cc46825
chore(openai): Release 0.2.9 (#6689)
jacoblee93 Sep 4, 2024
bc1dadc
fix(community): ElasticVectorSearch: exclude metadata filters not wor…
jacoblee93 Sep 4, 2024
26612d9
Fix tiny typo in llm_chain.ipynb (#6679)
dwabyick Sep 4, 2024
eeb7ae7
feat(anthropic): langchain-anthropic support custom create anthropic …
rxliuli Sep 4, 2024
5efa3b2
chore(anthropic): Release 0.2.16 (#6691)
jacoblee93 Sep 4, 2024
8f90583
Fix top-level dependency install for node 22+ (#6658)
benjamincburns Sep 4, 2024
8c1396b
chore(community): Bump pyodide dev version and allow peer installs up…
benjamincburns Sep 4, 2024
8365a7f
fix(community): Add support for Bedrock cross-region inference models…
keremnalbant Sep 4, 2024
3c00787
chore(community): Release 0.2.32 (#6692)
jacoblee93 Sep 4, 2024
24b40fb
Release 0.2.18
jacoblee93 Sep 4, 2024
01a9472
fix(mongodb): mongodb storage mget must return undefined when key not…
rtyshyk Sep 4, 2024
15b5916
chore(mongodb): Release 0.0.6 (#6694)
jacoblee93 Sep 4, 2024
e787d82
fix(openai): Fix type import issue (#6695)
jacoblee93 Sep 4, 2024
2ec5184
feat(openai): baseUrl for DallEAPIWrapper (#6685)
wanoo21 Sep 4, 2024
d09af37
chore(openai): Release 0.2.10 (#6697)
jacoblee93 Sep 4, 2024
938fa72
community[patch]: Relax webllm peer dep (#6696)
bracesproul Sep 4, 2024
68fbc88
langchain[patch]: Take all required fields into account for OpenAPI c…
ikalachy Sep 5, 2024
a3d6aee
docs[minor]: Add state of agents survey to docs announcement bar (#6710)
bracesproul Sep 6, 2024
360dc17
anthropic[patch]: Fix passing cache control through in messages (#6711)
bracesproul Sep 6, 2024
3b9d7a1
anthropic[minor]: Allow different tool types to be bound (#6712)
bracesproul Sep 6, 2024
c8688a2
anthropic[patch]: Release 0.2.17 (#6713)
bracesproul Sep 7, 2024
3446b9c
docs[patch]: fix chroma distance function reference link (#6714)
spielhoelle Sep 7, 2024
2b6872b
fix(core): Pin TypeScript version for now for export test failures, a…
jacoblee93 Sep 10, 2024
d89745c
feat(core,openai): Adds streaming support for OpenAI withStructuredOu…
jacoblee93 Sep 10, 2024
24400db
baidu-qianfan[patch]: Fix streaming mode of Qianfan (#6661)
stanoswald Sep 10, 2024
47f846d
fix(anthropic): Do not check for apiKey existence when createClient p…
rxliuli Sep 10, 2024
964e8bd
feat(community): Add arcjet integration (#6725)
jacoblee93 Sep 10, 2024
34421e0
feat(community): BM25 Keyword Search Retriever (#6719)
Mraj23 Sep 10, 2024
e5b5cd8
chore(baidu-qianfan): Release 0.0.4 (#6726)
jacoblee93 Sep 10, 2024
baa0d7b
chore(anthropic): Release 0.2.18 (#6727)
jacoblee93 Sep 10, 2024
60601bc
chore(core): Release 0.2.32 (#6728)
jacoblee93 Sep 10, 2024
f1cf907
chore(community): Release 0.2.33 (#6729)
jacoblee93 Sep 10, 2024
3b892ee
cloudflare[minor]: use native Cloudflare Workers AI binding (#5287)
Cherry Sep 11, 2024
2e67133
docs: Fix typo in chatbot tutorial (#6730)
jacoblee93 Sep 11, 2024
5565c02
docs: Update wording in tool choice guide (#6732)
jacoblee93 Sep 11, 2024
da14961
google-common[major]: Media manager (#5835)
afirstenberg Sep 11, 2024
86c2a9a
fix(langchain): Fix local file store traversal issue (#6736)
jacoblee93 Sep 11, 2024
eee902c
fix(ci): Fix cf exports test (#6737)
jacoblee93 Sep 11, 2024
88275b3
fix(ci): Fix cf-workers export test (#6738)
jacoblee93 Sep 11, 2024
8a29045
fix(ci): Fix esbuild tests (#6739)
jacoblee93 Sep 11, 2024
6c2f178
fix(ci): Fix ci (#6741)
jacoblee93 Sep 11, 2024
ec8525c
chore(langchain): Release 0.2.19
jacoblee93 Sep 11, 2024
67714f4
fix(langchain): Prevent exception when using plan & execute agent wit…
OlegIvaniv Sep 12, 2024
2d4f8e0
fix(openai): Avoid thrown error on o1 stream calls (#6747)
jacoblee93 Sep 12, 2024
7a481e8
chore(openai): Release 0.2.11 (#6748)
jacoblee93 Sep 12, 2024
e49aa94
docs: Update link (#6757)
jacoblee93 Sep 13, 2024
8ae643d
refactor: Move langchain/core to a peer dep (#6698)
jacoblee93 Sep 13, 2024
76a63e2
chore(core): Release 0.3.0 (#6760)
jacoblee93 Sep 13, 2024
9f0f121
chore(deps): Update deps for 0.3.0 (#6761)
jacoblee93 Sep 13, 2024
065006f
chore(textsplitters): Release 0.1.0 (#6762)
jacoblee93 Sep 13, 2024
2850f9d
chore(cloudflare): Bump dep (#6763)
jacoblee93 Sep 13, 2024
bbdec4e
chore(openai): Release 0.3.0 (#6764)
jacoblee93 Sep 13, 2024
b3c073c
chore(anthropic): Release 0.3.0 (#6765)
jacoblee93 Sep 13, 2024
9503f72
chore(mistralai): Release 0.1.0 (#6766)
jacoblee93 Sep 13, 2024
6dbef1f
chore(langchain): Release 0.3.0
jacoblee93 Sep 13, 2024
38de1bd
chore(build): Update lock (#6770)
jacoblee93 Sep 13, 2024
bfbd47a
chore(cohere): Release 0.3.0 (#6771)
jacoblee93 Sep 13, 2024
5e726dc
chore(weaviate): Release 0.1.0 (#6773)
jacoblee93 Sep 13, 2024
36dc084
chore(aws): Release 0.1.0 (#6775)
jacoblee93 Sep 14, 2024
d08bd5d
chore(azure-cosmosdb): Release 0.2.0 (#6776)
jacoblee93 Sep 14, 2024
7628a4c
chore(azure-dynamic-sessions): Release 0.2.0 (#6777)
jacoblee93 Sep 14, 2024
00fa1d7
chore(release): Release Baidu, Exa, MixedBread, Nomic (#6778)
jacoblee93 Sep 14, 2024
193e95d
fix(ci): Fix CI issue where local monorepo node_modules were copied i…
jacoblee93 Sep 14, 2024
e085979
chore(community): Release 0.3.0 (#6779)
jacoblee93 Sep 14, 2024
ab90b88
chore(cloudflare): Release 0.1.0 (#6780)
jacoblee93 Sep 14, 2024
3b9e64a
chore(groq): Release 0.1.1 (#6781)
jacoblee93 Sep 14, 2024
13ccad1
chore(mongodb): Release 0.1.0 (#6782)
jacoblee93 Sep 14, 2024
1ebe79c
chore(ollama): Release 0.1.0 (#6783)
jacoblee93 Sep 14, 2024
e2ea50e
chore(pinecone): Release 0.1.0 (#6784)
jacoblee93 Sep 14, 2024
e5383a7
chore(qdrant): Release 0.1.0 (#6785)
jacoblee93 Sep 14, 2024
dff7833
chore(redis): Release 0.1.0 (#6786)
jacoblee93 Sep 14, 2024
fa840ff
chore(google): Release 0.1.0 (#6787)
jacoblee93 Sep 14, 2024
dac4a6e
chore(google-genai): Release 0.1.0 (#6788)
jacoblee93 Sep 14, 2024
9ae9c3e
fix(core, langchain): Update langsmith dep to rc (#6797)
jacoblee93 Sep 15, 2024
e020330
chore(core): Release 0.3.1 (#6800)
jacoblee93 Sep 15, 2024
39cc12d
Release 0.3.1
jacoblee93 Sep 15, 2024
b69dbf3
fix(langchain): Remove circular peer dep in langchain on @langchain/c…
jacoblee93 Sep 15, 2024
ccac362
chore(langchain): Release 0.3.2 (#6805)
jacoblee93 Sep 15, 2024
b060228
docs: new algolia index (#6810)
efriis Sep 16, 2024
1008575
docs: Adds 0.3 versioning docs (#6793)
jacoblee93 Sep 16, 2024
08efa9a
docs: NotFound page suggested links (#6809)
efriis Sep 16, 2024
50b3251
docs: Fix Firecrawl v0 version in the docs (#6768)
nickscamara Sep 16, 2024
7f921a3
docs: Fix concepts docs hash param (#6816)
jacoblee93 Sep 16, 2024
3319044
fix(google): Fixed - TypeError: Cannot read properties of undefined (…
pksharmapokhrel Sep 16, 2024
c597b21
fix(ci): Conditionally deplpy api refs to prod (#6819)
bracesproul Sep 16, 2024
4bf183d
fix(ci): Add vercel ignore file (#6820)
bracesproul Sep 16, 2024
52c9727
feat(google-common): Export ChatConnection class (#6823)
jacoblee93 Sep 16, 2024
ec53cb3
chore(google-common): Release 0.1.1 (#6824)
jacoblee93 Sep 16, 2024
b0bba94
fix(core,langchain,community): Update LangSmith deps, lighten export …
jacoblee93 Sep 16, 2024
2fa9655
deps: update @anthropic-ai/sdk to 0.27.3 from 0.25.2 (#6796)
rootCircle Sep 17, 2024
7a56ccd
chore(anthropic): Release 0.3.1 (#6826)
jacoblee93 Sep 17, 2024
053e46a
docs: Adds warnings to cypher chain about credentials (#6827)
jacoblee93 Sep 17, 2024
11e281b
feat(community): Remove required param from LanceDB integration (#6706)
AyushExel Sep 17, 2024
818f0a5
fix(ci): Fix lint (#6828)
jacoblee93 Sep 17, 2024
f939b48
chore(community): Release 0.3.1 (#6831)
jacoblee93 Sep 17, 2024
c7c47ca
fix(ci): Update API ref deployment action & vercelignore (#6835)
bracesproul Sep 17, 2024
e6f84eb
fix(core): Fix nested stream events behavior (#6836)
jacoblee93 Sep 17, 2024
1fc8e07
chore(core): Release 0.3.2 (#6839)
jacoblee93 Sep 17, 2024
dde5d73
fix(ci): Add script for aliasing domains in gh deployments (#6838)
bracesproul Sep 17, 2024
10379e1
chore(deps): bump the pip group across 1 directory with 2 updates (#6…
dependabot[bot] Sep 18, 2024
43192e4
fix(groq): Feature/groq response format improvements (#6754)
allohamora Sep 18, 2024
20f3c2e
fix(core): Loosen return type of withConfig, fix tracing for nested t…
jacoblee93 Sep 19, 2024
867d1bc
chore(core): Release 0.3.3 (#6848)
jacoblee93 Sep 19, 2024
9fb9321
docs(tutorial): fix typo (#6849)
jjangga0214 Sep 19, 2024
cb89d4c
fix(mistral): Fix call options type (#6857)
jacoblee93 Sep 20, 2024
11cc919
chore(mistralai): Release 0.1.1 (#6858)
jacoblee93 Sep 20, 2024
a58ba0a
fix: typo fix in agents doc (#6859)
stevologic Sep 22, 2024
fe9fd5e
feat(community): Update ChromeLLM with latest experimental API (#6861)
jacoblee93 Sep 23, 2024
ce5f7ce
chore(community): Release 0.3.2 (#6862)
jacoblee93 Sep 23, 2024
c9f4f9c
fix(community): bump `@upstash/ratelimit` version (#6832)
CahidArda Sep 23, 2024
5f5961d
fix(docs): Drop announcement bar (#6863)
bracesproul Sep 23, 2024
824f1ec
groq[patch]: set api key attr (#6864)
baskaryan Sep 23, 2024
c05aa07
chore(groq): Release 0.1.2 (#6865)
jacoblee93 Sep 23, 2024
8f6f244
chore(openai,anthropic): Expose OpenAI and Anthropic payload formatte…
jacoblee93 Sep 24, 2024
52b010d
chore(openai): Release 0.3.1 (#6874)
jacoblee93 Sep 24, 2024
d3e55f8
chore(anthropic): Release 0.3.2 (#6875)
jacoblee93 Sep 24, 2024
338b116
feat(anthropic,openai): Add payload formatting utils to Anthropic and…
jacoblee93 Sep 24, 2024
b397a7d
chore(openai): Release 0.3.2 (#6877)
jacoblee93 Sep 25, 2024
fb149e8
chore(anthropic): Release 0.3.3 (#6878)
jacoblee93 Sep 25, 2024
ae04a17
community[patch]: support AWS_... env vars (#6866)
baskaryan Sep 25, 2024
421bcf2
chore(community): Release 0.3.3 (#6880)
jacoblee93 Sep 25, 2024
ab1375a
jigsawstack[major]: Add Jigsawtack Integration Docs (#6767)
iamNarcisse Sep 27, 2024
8394303
feat(build): Allow entrypoint side-effect escape hatch for non-entryp…
jacoblee93 Sep 28, 2024
644a049
feat(core): Allow more types of inputs in prompt templates (#6894)
jacoblee93 Sep 30, 2024
287a70b
chore(core): Release 0.3.4 (#6896)
jacoblee93 Sep 30, 2024
4d1312c
fix(ci): Fix npm community install test (#6900)
jacoblee93 Sep 30, 2024
736c044
fix(qdrant): Support for custom IDs when adding documents (#6898)
Anush008 Sep 30, 2024
d3f2468
openai[patch]: add AZURE_OPENAI_ENDPOINT supoprt (#6868)
baskaryan Sep 30, 2024
3a21f04
chore(openai): Release 0.3.3 (#6902)
jacoblee93 Sep 30, 2024
2d6880b
fix(community): Update PrismaVectorStore to execute raw SQL with `Pri…
hmShuvo314 Sep 30, 2024
17cbf23
chore(community): Release 0.3.4 (#6903)
jacoblee93 Sep 30, 2024
fe89991
fix(ollama): Drop tool_choice from docstrings (#6905)
bracesproul Sep 30, 2024
8756022
fix(openai): Allow OpenAI streaming with json_schema, fix docs nits (…
jacoblee93 Sep 30, 2024
9136378
chore(openai): Release 0.3.4 (#6907)
jacoblee93 Sep 30, 2024
2e215a5
fix(core): Narrow chat model return type (#6908)
jacoblee93 Sep 30, 2024
7fc8517
feat(core): Pass token usage in streamed chunks to callback handlers …
Stadly Sep 30, 2024
1392981
fix(scripts): Fix dist directory not empty error (#6909)
bracesproul Sep 30, 2024
0fc525e
chore(core): Release 0.3.5 (#6911)
jacoblee93 Sep 30, 2024
4f478f8
fix(community): supabase comparison to string function (#6910)
lakshyaag12 Oct 1, 2024
54569d3
feat(core): Update mermaid drawing to support subgraphs (#6917)
jacoblee93 Oct 2, 2024
d1a9212
chore(core): Release 0.3.6 (#6918)
jacoblee93 Oct 2, 2024
870f9bf
feat(docs): Add migrating memory docs (#6873)
bracesproul Oct 2, 2024
0df2e5a
fix(community): Column VEC_VECTOR has the wrong length (#6914)
prashantrakheja Oct 2, 2024
e5ed732
fix(openai): Pass OpenAI caching information through in responses (#6…
jacoblee93 Oct 2, 2024
5116868
chore(openai): Release 0.3.5 (#6923)
jacoblee93 Oct 2, 2024
04e21d8
feat(core): Adds exported typeguards for messages (#6925)
jacoblee93 Oct 3, 2024
e3df451
Add better error msg (#6928)
hinthornw Oct 3, 2024
168168d
feat(core): Allow serialized messages as BaseMessageLikes (#6930)
jacoblee93 Oct 3, 2024
ee79f89
fix(pinecone): fix PineconeStore to support null or undefined pageCon…
sam-trost Oct 3, 2024
85dab3f
chore(pinecone): Release 0.1.1 (#6932)
jacoblee93 Oct 3, 2024
f6026dd
chore(core): Release 0.3.7 (#6933)
jacoblee93 Oct 3, 2024
7595978
core[minor]: exclude model cache from serialization (#6929)
baskaryan Oct 3, 2024
1a2ffb8
docs: Update integration contributing instructions (#6939)
jacoblee93 Oct 4, 2024
94e603e
fix: allow numberic value for keepAlive property (#6937)
mok-liee Oct 7, 2024
4afc11e
feat(community): add libsql vectorstore (#6904)
notrab Oct 7, 2024
46b5c52
feat(core): Allow generic configurable type to be passed into Runnabl…
jacoblee93 Oct 8, 2024
bd5330e
chore(core): Release 0.3.8 (#6951)
jacoblee93 Oct 8, 2024
a55b4d1
infra: remove spam-comment-filter.yml workflow
efriis Oct 9, 2024
f9b8576
feat(core): Allow overriding config type of RunnableLikes (#6958)
jacoblee93 Oct 10, 2024
fd7e8f5
fix(core): Properly serialize usage metadata (#6959)
bracesproul Oct 10, 2024
3c4093f
core[patch], openai[patch]: add UsageMetadata details (#6950)
baskaryan Oct 10, 2024
27f2e14
chore(core): Release 0.3.9 (#6962)
jacoblee93 Oct 10, 2024
3865c4d
chore(openai): Release 0.3.6 (#6964)
jacoblee93 Oct 10, 2024
30d8337
fix(core): Fix error message (#6965)
jacoblee93 Oct 10, 2024
1904e9a
fix(openai): Ensure usage_metadata is serialized when invoking (#6966)
bracesproul Oct 11, 2024
780379e
chore(openai): Release 0.3.7 (#6968)
jacoblee93 Oct 11, 2024
d7ab981
feat(core): Adds support for context variables (#6967)
jacoblee93 Oct 11, 2024
60a8db4
chore(core): Release 0.3.10 (#6972)
jacoblee93 Oct 11, 2024
278f9be
feat(community): Return document ids when querying pgvector store (#6…
elliots Oct 11, 2024
2d0eb4f
feat(aws): Added AWS Bedrock Document and Image Support (#6956)
MNorgren Oct 11, 2024
ddbcaf4
chore(aws): Release 0.1.1 (#6973)
jacoblee93 Oct 11, 2024
47b5946
chore(community): Release 0.3.5 (#6974)
jacoblee93 Oct 11, 2024
8a6854b
docs: Adds context variable example to tool runtime docs (#6975)
jacoblee93 Oct 12, 2024
26eb1dc
docs: Update tool_runtime.ipynb (#6976)
jacoblee93 Oct 12, 2024
82836b2
core(patch): Allow generic typing for context var methods (#6978)
jacoblee93 Oct 13, 2024
197cfe8
fix(docs): usage web-streams-polyfill (#6979)
electroluxcode Oct 13, 2024
10f1288
docs: Update for docs build (#6980)
jacoblee93 Oct 13, 2024
dcb76fb
fix(core): Fix config passing for single string input tools (#6981)
jacoblee93 Oct 13, 2024
4f1a6a1
chore(core): Release 0.3.11 (#6982)
jacoblee93 Oct 13, 2024
d0f5d30
feat(cohere): Cohere custom client support (#6938)
debkanchan Oct 13, 2024
a7dd2a5
chore(cohere): Release 0.3.1 (#6983)
jacoblee93 Oct 13, 2024
f2ac4f0
fix(anthropic): Pass back full Anthropic content for stream events (#…
jacoblee93 Oct 17, 2024
13ce377
chore(anthropic): Release 0.3.4 (#6998)
jacoblee93 Oct 17, 2024
2fe3ca8
feat(docs,core): Adds error reference pages and populate codes on err…
jacoblee93 Oct 17, 2024
ccd97db
chore(core): Release 0.3.12 (#7000)
jacoblee93 Oct 17, 2024
fe2646a
fix(core): Fix typo (#7001)
jacoblee93 Oct 17, 2024
3240e77
feat(community): Add Origin/langchain to Apify's client's user-agent …
jirispilka Oct 17, 2024
9d93166
fix(community): Fix CI (#7002)
jacoblee93 Oct 17, 2024
ff77892
feat(openai): Wrap some common OpenAI errors (#7003)
jacoblee93 Oct 17, 2024
17896b2
chore(openai): Release 0.3.8 (#7006)
jacoblee93 Oct 17, 2024
1ee5e48
feat(anthropic): Wrap common Anthropic model errors (#7004)
jacoblee93 Oct 17, 2024
694482b
chore(anthropic): Release 0.3.5 (#7007)
jacoblee93 Oct 17, 2024
a98487f
fix(ci): Temporarily disable community range CI (#7005)
jacoblee93 Oct 17, 2024
d79c6c0
chore(core): Release 0.3.13 (#7008)
jacoblee93 Oct 17, 2024
db80a8b
chore(community): Release 0.3.6 (#7009)
jacoblee93 Oct 17, 2024
dad6783
docs: Adds example to error code page (#7010)
jacoblee93 Oct 17, 2024
078a730
docs: Change error code docs header (#7011)
jacoblee93 Oct 17, 2024
b7a50d9
feat(openai): Support audio output (#7012)
bracesproul Oct 17, 2024
b3e1d0a
fix(openai): Release 0.3.9 (#7014)
bracesproul Oct 17, 2024
de837c5
Revert "feat(openai): Support audio output" (#7016)
bracesproul Oct 17, 2024
2f6a6cc
fix(openai): Release 0.3.10 (#7017)
bracesproul Oct 17, 2024
d01831f
fix(openai): Include audio messages in request (#7015)
bracesproul Oct 18, 2024
6f9e25f
feat(openai): Release 0.3.11 (#7021)
bracesproul Oct 18, 2024
9375127
fix(docs): Update API ref URL to point to v3 (#7023)
bracesproul Oct 18, 2024
6b81115
docs: Update LlamaCPP install instructions (#7029)
jacoblee93 Oct 19, 2024
b4f1fe6
fix(community): AILanguageModel interface (#7025)
hemanth Oct 20, 2024
0b4f9c3
chore(community): Release 0.3.7 (#7030)
jacoblee93 Oct 20, 2024
e0b93c0
chore(langchain): Release 0.3.3 (#7039)
jacoblee93 Oct 21, 2024
196a09f
Added support for new HTTPClient feature in v1.1.0
TripleADC Nov 3, 2024
0fcdf2a
Removed deprecated checks from mistral chat models integration test
CarterMorris Nov 10, 2024
61ca396
import error resolution
BaNg-W Nov 11, 2024
d185ed7
Finished removing deprecated StructuredOutputMethodParams implementation
CarterMorris Nov 11, 2024
31f494b
Improved Langchain to Mistral message conversion flexibility
CarterMorris Nov 11, 2024
7efe0c9
Removed Mistral retry config support in favour of async caller retry …
CarterMorris Nov 13, 2024
6dbcda2
Upgraded to Mistral version 1.3.1
CarterMorris Nov 15, 2024
95756e7
Fixed assistant role only supporting content or tool calls but not both
BaNg-W Nov 16, 2024
5ba420e
Added tests for image url, contentChunk,and hooks + linting
BaNg-W Nov 16, 2024
c3c89aa
Updated Mistral documentation to cover hook support
CarterMorris Nov 16, 2024
ceb35c7
Added hook tests for mistral llms and embeddings
CarterMorris Nov 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/DISCUSSION_TEMPLATE/q-a.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ body:
Relevant links to check before opening a question to see if your question has already been answered, fixed or
if there's another way to solve your problem:

[LangChain.js documentation with the integrated search](https://js.langchain.com/v0.2/docs/introduction),
[API Reference](https://v02.api.js.langchain.com/),
[LangChain.js documentation with the integrated search](https://js.langchain.com/docs/introduction),
[API Reference](https://api.js.langchain.com/),
[GitHub search](https://github.com/langchain-ai/langchainjs),
[LangChain.js Github Discussions](https://github.com/langchain-ai/langchainjs/discussions),
[LangChain.js Github Issues](https://github.com/langchain-ai/langchainjs/issues?q=is%3Aissue),
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ body:
Relevant links to check before filing a bug report to see if your issue has already been reported, fixed or
if there's another way to solve your problem:

[LangChain.js documentation with the integrated search](https://js.langchain.com/v0.2/docs/introduction),
[API Reference](https://v02.api.js.langchain.com/),
[LangChain.js documentation with the integrated search](https://js.langchain.com/docs/introduction),
[API Reference](https://api.js.langchain.com/),
[GitHub search](https://github.com/langchain-ai/langchainjs),
[LangChain.js Github Discussions](https://github.com/langchain-ai/langchainjs/discussions),
[LangChain.js Github Issues](https://github.com/langchain-ai/langchainjs/issues?q=is%3Aissue),
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ body:
If you're in the wrong place, here are some helpful links to find a better
place to ask your question:

[LangChain.js documentation with the integrated search](https://js.langchain.com/v0.2/docs/introduction),
[API Reference](https://v02.api.js.langchain.com/),
[LangChain.js documentation with the integrated search](https://js.langchain.com/docs/introduction),
[API Reference](https://api.js.langchain.com/),
[GitHub search](https://github.com/langchain-ai/langchainjs),
[LangChain.js Github Discussions](https://github.com/langchain-ai/langchainjs/discussions),
[LangChain.js Github Issues](https://github.com/langchain-ai/langchainjs/issues?q=is%3Aissue),
Expand Down
30 changes: 30 additions & 0 deletions .github/scripts/deployDomainVercel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

# Check if an argument is provided
if [ $# -eq 0 ]; then
echo "Error: Please provide a version string as an argument."
exit 1
fi

inputString=$1

# Check if VERCEL_TOKEN is set
if [ -z "$VERCEL_TOKEN" ]; then
echo "Error: VERCEL_TOKEN is not set."
exit 1
fi

# save stdout and stderr to files
vercel deploy --prebuilt --token="$VERCEL_TOKEN" >deployment-url.txt 2>error.txt

# check the exit code
code=$?
if [ $code -eq 0 ]; then
# Set the deploymentUrl using the input string
deploymentUrl="${inputString}.api.js.langchain.com"
vercel alias $(cat deployment-url.txt) $deploymentUrl --token="$VERCEL_TOKEN" --scope="langchain"
else
# Handle the error
errorMessage=$(cat error.txt)
echo "There was an error: $errorMessage"
fi
80 changes: 40 additions & 40 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
pull_request:
# Only run this workflow if the following directories have changed.
paths:
- 'langchain/**'
- 'langchain-core/**'
- 'libs/**'
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI
- "langchain/**"
- "langchain-core/**"
- "libs/**"
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI

# If another push to the same PR or branch happens while this workflow is still running,
# cancel the earlier run in favor of the next run.
Expand All @@ -24,7 +24,7 @@ concurrency:
env:
PUPPETEER_SKIP_DOWNLOAD: "true"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
NODE_VERSION: "18.x"
NODE_VERSION: "20.x"
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}

# Run a separate job for each check in the docker-compose file,
Expand Down Expand Up @@ -75,42 +75,42 @@ jobs:
- name: Test LangChain with lowest deps
run: docker compose -f dependency_range_tests/docker-compose.yml run langchain-lowest-deps

# Community
community-latest-deps:
runs-on: ubuntu-latest
needs: get-changed-files
if: contains(needs.get-changed-files.outputs.changed_files, 'langchain-core/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-openai/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-community/')
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable
- name: Build `@langchain/standard-tests`
run: yarn build --filter=@langchain/standard-tests
- name: Test `@langchain/community` with latest deps
run: docker compose -f dependency_range_tests/docker-compose.yml run community-latest-deps
# # Community
# community-latest-deps:
# runs-on: ubuntu-latest
# needs: get-changed-files
# if: contains(needs.get-changed-files.outputs.changed_files, 'langchain-core/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-openai/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-community/')
# steps:
# - uses: actions/checkout@v4
# - name: Use Node.js ${{ env.NODE_VERSION }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ env.NODE_VERSION }}
# cache: "yarn"
# - name: Install dependencies
# run: yarn install --immutable
# - name: Build `@langchain/standard-tests`
# run: yarn build --filter=@langchain/standard-tests
# - name: Test `@langchain/community` with latest deps
# run: docker compose -f dependency_range_tests/docker-compose.yml run community-latest-deps

community-lowest-deps:
runs-on: ubuntu-latest
needs: get-changed-files
if: contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-community/')
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable
- name: Build `@langchain/standard-tests`
run: yarn build --filter=@langchain/standard-tests
- name: Test `@langchain/community` with lowest deps
run: docker compose -f dependency_range_tests/docker-compose.yml run community-lowest-deps
# community-lowest-deps:
# runs-on: ubuntu-latest
# needs: get-changed-files
# if: contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-community/')
# steps:
# - uses: actions/checkout@v4
# - name: Use Node.js ${{ env.NODE_VERSION }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ env.NODE_VERSION }}
# cache: "yarn"
# - name: Install dependencies
# run: yarn install --immutable
# - name: Build `@langchain/standard-tests`
# run: yarn build --filter=@langchain/standard-tests
# - name: Test `@langchain/community` with lowest deps
# run: docker compose -f dependency_range_tests/docker-compose.yml run community-lowest-deps

community-npm-install:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy-api-refs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Deploy API Refs Preview

on:
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI
pull_request:
# Avoid deploying on PR due to rate limits
# pull_request:

# If another push to the same PR or branch happens while this workflow is still running,
# cancel the earlier run in favor of the next run.
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/deploy-api-refs-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy API Refs Prod
on:
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI
push:
branches: ["main"]
branches: ["main", "v0.2"]

# If another push to the same PR or branch happens while this workflow is still running,
# cancel the earlier run in favor of the next run.
Expand Down Expand Up @@ -34,6 +34,21 @@ jobs:
- name: Build All Projects
run: yarn turbo:command build --filter=!examples --filter=!api_refs --filter=!core_docs --filter=!create-langchain-integration
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
run: |
if [ ${{ github.ref }} = 'refs/heads/main' ]; then
vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
else
vercel build --token=${{ secrets.VERCEL_TOKEN }}
fi
- name: Deploy to Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: |
if [ ${{ github.ref }} = 'refs/heads/main' ]; then
vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
elif [ ${{ github.ref }} = 'refs/heads/v0.2' ]; then
.github/scripts/deployDomainVercel.sh v02
else
echo "Error: Deployment is only allowed for 'main' or 'v0.2' branches."
exit 1
fi
42 changes: 28 additions & 14 deletions .github/workflows/standard-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
package: [anthropic, cohere, google-genai, groq, mistralai, aws]
package: [anthropic, cohere, google-genai, groq, mistralai, aws, google-vertexai-web]
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
Expand All @@ -24,16 +24,15 @@ jobs:
- name: Run integration tests for ${{ matrix.package }}
run: yarn turbo test:integration --filter=@langchain/${{ matrix.package }}
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
DISABLE_CONSOLE_LOGS: "true"
# @langchain/aws credentials
BEDROCK_AWS_ACCESS_KEY_ID: ${{ secrets.BEDROCK_AWS_ACCESS_KEY_ID }}
BEDROCK_AWS_SECRET_ACCESS_KEY: ${{ secrets.BEDROCK_AWS_SECRET_ACCESS_KEY }}
BEDROCK_AWS_REGION: "us-east-1"
ANTHROPIC_API_KEY: ${{ matrix.package == 'anthropic' && secrets.ANTHROPIC_API_KEY || '' }}
COHERE_API_KEY: ${{ matrix.package == 'cohere' && secrets.COHERE_API_KEY || '' }}
GOOGLE_API_KEY: ${{ matrix.package == 'google-genai' && secrets.GOOGLE_API_KEY || '' }}
GROQ_API_KEY: ${{ matrix.package == 'groq' && secrets.GROQ_API_KEY || '' }}
MISTRAL_API_KEY: ${{ matrix.package == 'mistralai' && secrets.MISTRAL_API_KEY || '' }}
BEDROCK_AWS_ACCESS_KEY_ID: ${{ matrix.package == 'aws' && secrets.BEDROCK_AWS_ACCESS_KEY_ID || '' }}
BEDROCK_AWS_SECRET_ACCESS_KEY: ${{ matrix.package == 'aws' && secrets.BEDROCK_AWS_SECRET_ACCESS_KEY || '' }}
BEDROCK_AWS_REGION: ${{ matrix.package == 'aws' && 'us-east-1' || '' }}
GOOGLE_VERTEX_AI_WEB_CREDENTIALS: ${{ matrix.package == 'google-vertexai-web' && secrets.GOOGLE_VERTEX_AI_WEB_CREDENTIALS || '' }}

# The `@langchain/openai` package contains standard tests for ChatOpenAI and AzureChatOpenAI
# We want to run these separately, so we need to pass the exact path for each test, which means
Expand All @@ -55,7 +54,6 @@ jobs:
run: yarn workspace @langchain/openai test:single src/tests/chat_models_structured_output.int.test.ts src/tests/chat_models-extended.int.test.ts src/tests/chat_models-vision.int.test.ts src/tests/chat_models.int.test.ts src/tests/chat_models.standard.int.test.ts
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
DISABLE_CONSOLE_LOGS: "true"

standard-tests-azure-openai:
runs-on: ubuntu-latest
Expand All @@ -77,7 +75,6 @@ jobs:
AZURE_OPENAI_API_DEPLOYMENT_NAME: "chat"
AZURE_OPENAI_API_VERSION: ${{ secrets.AZURE_OPENAI_API_VERSION }}
AZURE_OPENAI_BASE_PATH: ${{ secrets.AZURE_OPENAI_BASE_PATH }}
DISABLE_CONSOLE_LOGS: "true"

standard-tests-bedrock:
runs-on: ubuntu-latest
Expand All @@ -98,4 +95,21 @@ jobs:
BEDROCK_AWS_REGION: "us-east-1"
BEDROCK_AWS_SECRET_ACCESS_KEY: ${{ secrets.BEDROCK_AWS_SECRET_ACCESS_KEY }}
BEDROCK_AWS_ACCESS_KEY_ID: ${{ secrets.BEDROCK_AWS_ACCESS_KEY_ID }}
DISABLE_CONSOLE_LOGS: "true"

standard-tests-fireworks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable --mode=skip-build
- name: Build `@langchain/community`
run: yarn build --filter=@langchain/community
- name: Run standard tests (integration) for `@langchain/community` ChatFireworks
run: yarn workspace @langchain/community test:single src/chat_models/tests/chatfireworks.standard.int.test.ts
env:
FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_API_KEY }}
16 changes: 14 additions & 2 deletions .github/workflows/validate_new_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,21 @@ jobs:
run: |
notebooks=$(echo '${{ steps.changed-files.outputs.all_changed_files }}' | tr ' ' '\n' | grep '^docs/core_docs/.*\.ipynb$' || true)
if [ -n "$notebooks" ]; then
failed_notebooks=()
for notebook in $notebooks; do
yarn notebook:validate "$notebook"
absolute_path="$GITHUB_WORKSPACE/$notebook"
set +e
yarn workspace @langchain/scripts notebook_validate "$absolute_path"
if [ $? -ne 0 ]; then
failed_notebooks+=("$notebook")
fi
set -e
done
if [ ${#failed_notebooks[@]} -ne 0 ]; then
echo "The following notebooks failed validation:"
printf '%s\n' "${failed_notebooks[@]}"
exit 1
fi
else
echo "No notebooks in docs/core_docs to validate."
fi
fi
4 changes: 4 additions & 0 deletions .vercelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
**/node_modules/
.next/
**/.next/
12 changes: 8 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ LangChain supports several different types of integrations with third-party prov

We welcome such contributions, but ask that you read our dedicated [integration contribution guide](https://github.com/langchain-ai/langchainjs/blob/main/.github/contributing/INTEGRATIONS.md) for specific details and patterns to consider before opening a pull request.

You can also check out the [guides on extending LangChain.js](https://js.langchain.com/v0.2/docs/how_to/#custom) in our docs.
You can also check out the [guides on extending LangChain.js](https://js.langchain.com/docs/how_to/#custom) in our docs.

#### Integration packages

Expand Down Expand Up @@ -105,9 +105,9 @@ You can invoke the script by calling `yarn release`. If new dependencies have be

There are three parameters which can be passed to this script, one required and two optional.

- __Required__: `<workspace name>`. eg: `@langchain/core` The name of the package to release. Can be found in the `name` value of the package's `package.json`
- __Optional__: `--bump-deps` eg `--bump-deps` Will find all packages in the repo which depend on this workspace and checkout a new branch, update the dep version, run yarn install, commit & push to new branch. Generally, this is not necessary.
- __Optional__: `--tag <tag>` eg `--tag beta` Add a tag to the NPM release. Useful if you want to push a release candidate.
- **Required**: `<workspace name>`. eg: `@langchain/core` The name of the package to release. Can be found in the `name` value of the package's `package.json`
- **Optional**: `--bump-deps` eg `--bump-deps` Will find all packages in the repo which depend on this workspace and checkout a new branch, update the dep version, run yarn install, commit & push to new branch. Generally, this is not necessary.
- **Optional**: `--tag <tag>` eg `--tag beta` Add a tag to the NPM release. Useful if you want to push a release candidate.

This script automatically bumps the package version, creates a new release branch with the changes, pushes the branch to GitHub, uses `release-it` to automatically release to NPM, and more depending on the flags passed.

Expand Down Expand Up @@ -323,6 +323,10 @@ Similar to linting, we recognize documentation can be annoying. If you do not wa

Documentation and the skeleton lives under the `docs/` folder. Example code is imported from under the `examples/` folder.

**If you are contributing an integration, please copy and use the appropriate template from here:**

https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-scripts/src/cli/docs/templates

### Running examples

If you add a new major piece of functionality, it is helpful to add an
Expand Down
Loading