langchain-ai
langchain
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
test(langchain): assert default LangSmith gateway URL Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
ccurme/langchain/langsmith-provider
4 hours ago
feat(langchain): add LangSmith provider to `init_chat_model` Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
ccurme/langchain/langsmith-provider
5 hours ago
fix(core): close internally created event loops in streaming tracers (#39222) Fixed a resource leak in the `astream_events` and `astream_log` streaming tracers: when constructed from synchronous code on Python 3.14+, an internally created event loop was never closed, causing a `ResourceWarning: unclosed event loop` to be emitted at garbage-collection time (and intermittent failures of warning-sensitive tests such as `test_chat_prompt_template_variable_names`). The loop is now closed when the handler is garbage collected.
master
6 hours ago
nit
mdrxy/core/tracer-event-loop-cleanup
6 hours ago
fix(core): close internally-created event loops in streaming tracers When a streaming callback handler is constructed from a synchronous context on Python 3.14+ (where `asyncio.get_event_loop()` raises if no loop is set on the current thread), the handler falls back to `asyncio.new_event_loop()`. That loop was never closed, so when the handler was eventually garbage collected, the loop's `__del__` emitted `ResourceWarning: unclosed event loop`. Because GC timing is nondeterministic, the warning surfaced inside whichever test happened to be running at collection time. In particular it could land inside a `warnings.catch_warnings(record=True)` block (e.g. `test_chat_prompt_template_variable_names`), turning a real resource leak into an order-dependent flaky failure. Register a `weakref.finalize` callback on the handler that closes only the loop we created; loops obtained via `asyncio.get_event_loop()` are left alone since they belong to the caller. Closing is wrapped in `contextlib.suppress(Exception)` so a finalizer can never raise at GC time. Adds a regression test that forces the no-current-loop branch, drops the handler, runs GC, and asserts no `unclosed event loop` warning is emitted. Verified the test fails without the fix.
mdrxy/core/tracer-event-loop-cleanup
7 hours ago
chore(model-profiles): ignore CPY ruff rule for ruff 0.16 compat Ruff 0.16.0 stabilized CPY001 into the default rule set, which fails lint on files without copyright headers. Ignore CPY in model-profiles and standard-tests, matching core, langchain_v1, and text-splitters.
dependabot/uv/libs/model-profiles/minor-and-patch-fdef41af62
8 hours ago
Merge branch 'master' into dependabot/uv/libs/model-profiles/minor-and-patch-fdef41af62
dependabot/uv/libs/model-profiles/minor-and-patch-fdef41af62
8 hours ago
fix(core): preserve OpenAI file blocks (#39205) Co-authored-by: Miguel Ingram <miguel.ingram.research@gmail.com>
master
1 day ago
Latest Branches
CodSpeed Performance Gauge
0%
feat(langchain): add LangSmith provider to `init_chat_model`
#39224
4 hours ago
9ea5740
ccurme/langchain/langsmith-provider
CodSpeed Performance Gauge
+1%
fix(core): close internally created event loops in streaming tracers
#39222
6 hours ago
35132e8
mdrxy/core/tracer-event-loop-cleanup
CodSpeed Performance Gauge
0%
chore: bump the minor-and-patch group across 3 directories with 7 updates
#39187
8 hours ago
536fcb5
dependabot/uv/libs/model-profiles/minor-and-patch-fdef41af62
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs