Releases: langchain-ai/langchain
langchain==1.2.3
Changes since langchain==1.2.2
release(langchain): 1.2.3 (#34668)
refactor(langchain): engage summarization based on reported usage_metadata (#34632)
fix(langchain): keep tool call / AIMessage pairings when summarizing (#34609)
test(langchain): cover chat model provider inference (#34657)
fix(langchain): fix copy-paste error on azure_openai embedding provider map (#34655)
langchain==1.2.2
langchain==1.2.1
Changes since langchain==1.2.0
release(langchain): 1.2.1 (#34622)
fix(core,langchain): use get_buffer_string for message summarization (#34607)
chore(langchain): fix types in test_model_fallback (#34615)
chore(langchain): fix types in test_pii (#34617)
chore(langchain): add admonition around redaction_rules (#34618)
chore(langchain): fix types in test_composition (#34580)
chore(langchain): fix types in test_decorators (#34583)
chore(langchain): fix types in test_wrap_tool_call (#34600)
chore(langchain): fix types in test_model_call_limit_types (#34601)
chore(langchain): fix types in test_file_search and test_human_in_the_loop (#34602)
fix(core): exclude injected args from tool schema (#34582)
chore(langchain): fix types in test_diagram and test_sync_async_wrappers (#34591)
style(langchain): add ruff rule PLC0415 (#34559)
fix(langchain): resolve race condition in ShellSession.execute() (#34535)
fix(infra): use langchain_v1 for dev container deps (#34534)
chore(deps): bump mypy to v1.19 and ruff to v1.14 (#34521)
fix(langchain-classic): pass default to config.getoption (#34034)
style(langchain): add ruff rule RUF012 (#34497)
refactor(langchain): refactor optional imports logic (#32813)
style: add ruff ISC001 rule (#34493)
style(langchain): add TC ruff rules (#34496)
style(langchain): fix some ruff preview rules (#34504)
style(langchain): fix some PLC0415 rules (#34475)
style(langchain): add ruff rules PT (#34434)
feat(langchain): enhance init_chat_model with improved validation (#34226)
docs(langchain): Docstring improved to show Streaming custom events (#34353)
feat(langchain): Add support to google_genai provider in init_embeddings (#34388)
release(core): 1.2.3 (#34421)
release(openai): 1.1.6: update max input tokens for gpt-5 series (#34419)
release(openai): 1.1.5 (#34409)
feat(infra): add CI check for out of date lockfiles (#34397)
langchain-openai==1.1.7
Changes since langchain-openai==1.1.6
release(openai): 1.1.7 (#34640)
fix(openai): raise proper exception OpenAIRefusalError on structured output refusal (#34619)
fix: handle empty assistant content in Responses API (#34272) (#34296)
fix(core): serialization patch (#34455)
fix(openai): handle function_call content in token counting (#34379)
fix(openai): filter function_call blocks in token counting (#34396)
langchain-xai==1.2.1
langchain-anthropic==1.3.1
Changes since langchain-anthropic==1.3.0
fix(anthropic): fix version (#34606)
release(anthropic): 1.3.1 (#34605)
fix(anthropic): CVE-2025-68664 (#34563)
fix(anthropic): skip cache_control for code_execution blocks (#34579)
fix(core): serialization patch (#34455)
release(anthropic): 1.3.1 (#34337)
fix(anthropic): prevent crash with cache_control and empty message content (#34025)
langchain-core==1.2.6
Changes since langchain-core==1.2.5
release(core): 1.2.6 (#34586)
chore(core): Update LangChainTracer to use Pydantic v2 methods (#34541)
docs(core): add docstrings to internal helper functions (#34525)
docs(core): refresh content.py docstrings (#34546)
chore(deps): bump mypy to v1.19 and ruff to v1.14 (#34521)
refactor(core): fix some missing generic types (#31658)
style(core): add ruff RUF012 rule (#34492)
fix(core): support (message class, template) tuples in ChatPromptTemplate.from_messages (#33989)
test(core): add regression test for list-index $ref resolution (#34097)
fix(core): fix callback manager merge mixing handlers (#32028) (#33617)
style: add ruff ISC001 rule (#34493)
style(core): fix mypy no-any-return violations (#34204)
docs(core): image url docstring enhancement (#34488)
test(core): URL-encode bgColor parameter in mermaid.ink API calls (#34466)
style(core): fix some noqa: ARG rules (#34437)
fix(core): URL-encode bgColor in mermaid API calls (#34461)
perf(core): move origin type map to module level in function_calling.py (#34481)
style(core): add ruff rules TC (#34476)
perf(core): precompile hex color regex pattern at module level (#34480)
docs(core): update to indicate betas (#34457)
langchain-xai==1.2.0
Changes since langchain-xai==1.1.0
fix(xai): ensure citations are streamed just once (#34556)
release(xai): 1.2.0 (#34555)
fix(xai): stream usage metadata by default (#34531)
fix(core): serialization patch (#34455)
fix(openai): filter function_call blocks in token counting (#34396)
release(openai): 1.1.6: update max input tokens for gpt-5 series (#34419)
release(openai): 1.1.5 (#34409)
fix(openai): rely on langchain-core for setting chunk_position (#34404)
chore: update core dep in lockfiles (#34216)