dify/api/core/tools
EvanYao826 d03d958d49 fix: stop auth header prefix accumulating on repeated Custom Tool calls
When a Custom Tool uses API Key authentication with a Bearer or Basic
prefix, assembling_request mutated runtime.credentials in-place,
prepending the prefix to api_key_value on every call. Subsequent
invocations would read the already-prefixed value and prefix it again,
producing headers like "Bearer Bearer Bearer token".

Use a local variable instead of writing back to the shared credentials
dict, so the stored value is never modified.

Fixes #35974
2026-05-10 21:33:57 +08:00
..
__base refactor: replace bare dict with dict[str, Any] in core tools and runtime (#35111) 2026-04-14 03:03:13 +00:00
builtin_tool chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
custom_tool fix: stop auth header prefix accumulating on repeated Custom Tool calls 2026-05-10 21:33:57 +08:00
entities chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
mcp_tool chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
plugin_tool chore: use from __future__ import annotations (#30254) 2026-01-06 23:57:20 +09:00
utils refactor: convert isinstance chains to match/case (#35902) (#35922) 2026-05-08 09:51:10 +00:00
workflow_as_tool chore(api): adapt Graphon 0.2.2 upgrade (#35377) 2026-04-18 11:16:24 +00:00
__init__.py improve: generalize tool parameter converter (#4786) 2024-06-03 21:26:58 +08:00
errors.py refactor: use sessionmaker in api_tools_manage_service.py (#34892) 2026-04-17 05:07:12 +00:00
signature.py fix: Image rendering in the knowledge base failed. (#35914) 2026-05-09 10:06:01 +00:00
tool_engine.py chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
tool_file_manager.py chore(api): adapt Graphon 0.2.2 upgrade (#35377) 2026-04-18 11:16:24 +00:00
tool_label_manager.py refactor: use sessionmaker in tool_label_manager.py (#34895) 2026-04-14 07:23:29 +00:00
tool_manager.py fix(workflow): unblock plugin model selector tools on 1.14.0 (#35794) 2026-05-06 07:07:43 +00:00