Avatar for the BerriAI user
BerriAI
litellm
BlogDocsChangelog

fix: strip whitespace from MCP credential values before encryption

#23689
Comparing
jeonsworld:fix/strip-mcp-credential-whitespace
(
6b30b47
) with
main
(
548e7eb
)
CodSpeed Performance Gauge
0%
Untouched
16

Benchmarks

16 total
test_get_llm_provider_with_prefix
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
+1%
142.8 µs141.8 µs
test_token_counter_raw_text
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
+1%
188 µs186.8 µs
test_token_counter_simple_message
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
+1%
239.6 µs238.4 µs
test_token_counter_multi_turn
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
0%
570.4 µs568.5 µs
test_get_llm_provider_openai
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
0%
143.1 µs142.7 µs
test_get_llm_provider_azure
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
0%
149.3 µs149 µs
test_get_llm_provider_anthropic
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
0%
146.6 µs146.5 µs
test_get_model_cost_key_case_insensitive
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
0%
87.6 µs87.6 µs
test_token_counter_with_tools
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
0%
419.3 µs420.1 µs
test_get_model_cost_key_exact_match
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
0%
85.1 µs85.2 µs
test_cost_per_token_openai
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
-1%
542.7 µs546.4 µs
test_get_model_info_openai
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
-1%
87 µs87.8 µs
test_cost_per_token_anthropic
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
-1%
541.7 µs547.2 µs
test_get_model_info_anthropic
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
-2%
83.6 µs85 µs
test_get_model_info_with_provider
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
-2%
85.4 µs86.8 µs
test_token_counter_long_content
tests/benchmarks/test_benchmarks.py
CodSpeed Performance Gauge
-2%
1.7 ms1.7 ms

Commits

Click on a commit to change the comparison range
Base
main
548e7eb
-0.02%
Merge remote-tracking branch 'origin/fix/strip-mcp-credential-whitespace' into fix/strip-mcp-credential-whitespace
5b953ad
3 hours ago
by jeonsworld
-0.46%
fix: remove unused pytest import
310b458
3 hours ago
by jeonsworld
+0.3%
fix: handle whitespace-only credentials and apply stripping to BYOK/OAuth paths
a8314e7
3 hours ago
by jeonsworld
+0.09%
fix: use _strip_credential_value helper in BYOK/OAuth paths and reject whitespace-only input
65dfbfe
3 hours ago
by jeonsworld
-0.15%
fix: add missing pytest and AsyncMock imports in test file
7fe2110
3 hours ago
by jeonsworld
-0.38%
fix: remove whitespace-only credentials from dict to prevent unencrypted storage
2e37d4a
2 hours ago
by jeonsworld
+0.5%
fix: return HTTP 400 for invalid credentials and hoist test imports
3bd809e
2 hours ago
by jeonsworld
-0.3%
fix: preserve internal spaces, handle refresh_token consistently, patch byok caller
371411b
2 hours ago
by jeonsworld
+0.07%
fix: add CRLF line ending test
6b30b47
2 hours ago
by jeonsworld
© 2026 CodSpeed Technology
Home Terms Privacy Docs