langchain-ai
langchain
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
docs(core): image url docstring enhancement (#34488)
master
2 hours ago
docs(core): image url docstring enhancement
mdrxy/image-url-docstrings
2 hours ago
Merge branch 'master' into core-no-return-any
cbornet:core-no-return-any
3 hours ago
test(core): URL-encode bgColor parameter in mermaid.ink API calls (#34466) ## Problem The `draw_mermaid_png()` function fails with HTTP 400 when using named background colors like `white`. This is because named colors get prefixed with `!` (e.g., `!white`) but this special character is not URL-encoded before being added to the API URL. As reported in #34444, the URL parameter `bgColor=!white` causes mermaid.ink to return a 400 Bad Request error. ## Solution URL-encode the `background_color` parameter using `urllib.parse.quote()` before constructing the API URL. This ensures special characters like `!` are properly encoded as `%21`. ## Changes - Added `import urllib.parse` - URL-encode `background_color` value with `urllib.parse.quote(str(background_color), safe="")` - Added 2 unit tests: - `test_mermaid_bgcolor_url_encoding`: Verifies named colors are properly encoded - `test_mermaid_bgcolor_hex_not_encoded`: Verifies hex colors work correctly ## Testing ```bash pytest tests/unit_tests/runnables/test_graph.py::test_mermaid_bgcolor_url_encoding -v pytest tests/unit_tests/runnables/test_graph.py::test_mermaid_bgcolor_hex_not_encoded -v ``` Both tests pass. Fixes #34444 --- *This contribution was made with AI assistance (Claude).* Co-authored-by: Mr-Neutr0n <mrneutron@users.noreply.github.com> Co-authored-by: Mason Daugherty <mason@langchain.dev>
master
3 hours ago
Merge branch 'master' into fix/url-encode-mermaid-bgcolor
Mr-Neutr0n:fix/url-encode-mermaid-bgcolor
3 hours ago
style(core): fix some noqa: ARG rules (#34437)
master
3 hours ago
Apply suggestion from @mdrxy
Rudra-Tiwari-codes:perf/module-level-origin-map
4 hours ago
style(core): add ruff rules TC (#34476) * Fixed a few TC * Added a few Pydantic classes to `flake8-type-checking.runtime-evaluated-base-classes` (not as much as I would have imagined) * Added a few `noqa: TC` * Activated TC rules
master
4 hours ago
Active Branches
style(core): fix mypy no-any-return violations
last run
3 hours ago
#34204
CodSpeed Performance Gauge
-2%
feat(core): Langsmith Tracing Overriding
last run
10 hours ago
#34483
CodSpeed Performance Gauge
+6%
fix(core): `NotRequired` in TypedDict causes TypeError when converting to OpenAI function schema
last run
11 hours ago
#34349
CodSpeed Performance Gauge
+12%
© 2025 CodSpeed Technology
Home
Terms
Privacy
Docs