langchain-ai
langchain
BlogDocsChangelog

feat(core): can use now approximate alias inplace of count_tokens_approximately, any of it works now

#33045
Comparing
Davda-James:feat/trim_messages-support-approx-alias
(
0048bc8
) with
master
(
9863023
)
CodSpeed Performance Gauge
-2%
Untouched
13

Benchmarks

Passed

test_async_callbacks_in_sync
libs/core/tests/benchmarks/test_async_callbacks.py
CodSpeed Performance Gauge
0%
24.6 ms24.5 ms
test_import_time[CallbackManager]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
465.3 ms464.5 ms
test_import_time[Document]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
219.2 ms219.8 ms
test_import_time[Runnable]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
506.2 ms508.4 ms
test_import_time[tool]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-1%
540 ms544.4 ms
test_import_time[ChatPromptTemplate]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-1%
641.2 ms647.4 ms
test_import_time[InMemoryVectorStore]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-1%
646.6 ms652.9 ms
test_import_time[RunnableLambda]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-1%
504.7 ms511.4 ms
test_import_time[HumanMessage]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-2%
221.9 ms225.4 ms
test_import_time[InMemoryRateLimiter]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-2%
172.9 ms176.1 ms
test_import_time[LangChainTracer]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-2%
442.8 ms453.2 ms
test_import_time[PydanticOutputParser]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-5%
574.1 ms601.6 ms
test_import_time[BaseChatModel]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-6%
553.7 ms587.8 ms

Commits

Click on a commit to change the comparison range
Base
master
9863023
+1.42%
added feature for using alias approximate alongside count_tokens_approximately
d7b4e02
15 days ago
by Davda-James
-2.22%
Merge branch 'master' into feat/trim_messages-support-approx-alias
5855208
12 days ago
by mdrxy
-0.78%
Merge branch 'master' into feat/trim_messages-support-approx-alias
0048bc8
10 days ago
by eyurtsev
© 2025 CodSpeed Technology
Home Terms Privacy Docs