langchain-ai
langchain
BlogDocsChangelog

fix(openai): filter function_call blocks in token counting

#34396
Comparing
sujalmh:fix/token-counter-function-call
(
c21a249
) with
master
(
71778cb
)
CodSpeed Performance Gauge
0%
Untouched
6
Skipped
28

Benchmarks

Skipped (28)

Passed

test_stream_time
libs/partners/openai/tests/integration_tests/chat_models/test_base_standard.py::TestOpenAIStandard
CodSpeed Performance Gauge
0%
1.1 s*1.1 s
test_stream_time
libs/partners/openai/tests/integration_tests/chat_models/test_responses_standard.py::TestOpenAIStandard
CodSpeed Performance Gauge
0%
1.1 s*1.1 s
test_init_time
libs/partners/openai/tests/unit_tests/chat_models/test_azure_standard.py::TestOpenAIStandard
CodSpeed Performance Gauge
0%
1.7 s*1.7 s
test_stream_time
libs/partners/openai/tests/integration_tests/chat_models/test_responses_standard.py::TestOpenAIResponses
CodSpeed Performance Gauge
0%
824 ms*824.2 ms
test_init_time
libs/partners/openai/tests/unit_tests/chat_models/test_responses_standard.py::TestOpenAIResponses
CodSpeed Performance Gauge
0%
12.2 ms*12.2 ms
test_init_time
libs/partners/openai/tests/unit_tests/chat_models/test_base_standard.py::TestOpenAIStandard
CodSpeed Performance Gauge
0%
12.2 ms*12.2 ms

Commits

Click on a commit to change the comparison range
Base
master
71778cb
-0.01%
fix: skip function_call blocks when using the chat completions API
8d399d3
12 hours ago
by sujalmh
+0.04%
Merge branch 'langchain-ai:master' into fix/token-counter-function-call
c21a249
2 hours ago
by sujalmh
© 2025 CodSpeed Technology
Home Terms Privacy Docs