Avatar for the langchain-ai user
langchain-ai
langchain
Instrumentation
Wall Time
BlogDocsChangelog

fix(core): fix `BaseMessage` `.text()` filtering out blocks with text

#32829Closed
Comparing
olieydt:patch-1
(
d972ca3
) with
master
(
bc91a48
)
CodSpeed Performance Gauge
0%
Untouched
14

Benchmarks

Passed

test_init_time
libs/partners/mistralai/tests/unit_tests/test_standard.py::TestMistralStandard::test_init_time
CodSpeed Performance Gauge
0%
12.6 ms12.5 ms
test_stream_time
libs/partners/openai/tests/integration_tests/chat_models/test_responses_standard.py::TestOpenAIResponses::test_stream_time
CodSpeed Performance Gauge
0%
937.3 ms935.4 ms
test_init_time
libs/partners/anthropic/tests/unit_tests/test_standard.py::TestAnthropicStandard::test_init_time
CodSpeed Performance Gauge
0%
3.8 ms3.8 ms
test_stream_time
libs/partners/openai/tests/integration_tests/chat_models/test_base_standard.py::TestOpenAIStandard::test_stream_time
CodSpeed Performance Gauge
0%
1.1 s1.1 s
test_init_time
libs/partners/groq/tests/unit_tests/test_standard.py::TestGroqStandard::test_init_time
CodSpeed Performance Gauge
0%
1.6 s1.6 s
test_init_time
libs/partners/deepseek/tests/unit_tests/test_chat_models.py::TestChatDeepSeekUnit::test_init_time
CodSpeed Performance Gauge
0%
1.6 s1.6 s
test_stream_time
libs/partners/openai/tests/integration_tests/chat_models/test_responses_standard.py::TestOpenAIStandard::test_stream_time
CodSpeed Performance Gauge
0%
1.1 s1.1 s
test_init_time
libs/partners/xai/tests/unit_tests/test_chat_models_standard.py::TestXAIStandard::test_init_time
CodSpeed Performance Gauge
0%
3.3 s3.3 s
test_init_time
libs/partners/fireworks/tests/unit_tests/test_standard.py::TestFireworksStandard::test_init_time
CodSpeed Performance Gauge
0%
6.6 s6.6 s
test_init_time
libs/partners/openai/tests/unit_tests/chat_models/test_azure_standard.py::TestOpenAIStandard::test_init_time
CodSpeed Performance Gauge
0%
1.7 s1.7 s
test_init_time_with_client
libs/partners/anthropic/tests/unit_tests/test_standard.py::test_init_time_with_client
CodSpeed Performance Gauge
0%
5.3 ms5.3 ms
test_init_time
libs/partners/openai/tests/unit_tests/chat_models/test_responses_standard.py::TestOpenAIResponses::test_init_time
CodSpeed Performance Gauge
0%
17.2 ms17.2 ms
test_init_time
libs/partners/openai/tests/unit_tests/chat_models/test_base_standard.py::TestOpenAIStandard::test_init_time
CodSpeed Performance Gauge
0%
17.1 ms17.2 ms
test_stream_time
libs/partners/anthropic/tests/integration_tests/test_standard.py::TestAnthropicStandard::test_stream_time
CodSpeed Performance Gauge
0%
37.5 ms37.7 ms

Commits

Click on a commit to change the comparison range
Base
master
bc91a48
+0.1%
fix(core): fix BaseMessage .text() filtering out blocks with text BaseMessage .text() filters for type "text" when content is a list of dict. Concatenated messages can result in type != "text" but containing a text prop. This results in calling .text() on the message but receiving "". If a text prop is present, include it.
910f420
6 days ago
by olieydt
-0.13%
fixing lint
d972ca3
6 days ago
by olieydt
© 2025 CodSpeed Technology
Home Terms Privacy Docs