dify/api/core/tools/custom_tool
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
..
provider.py chore: use from __future__ import annotations (#30254) 2026-01-06 23:57:20 +09:00
tool.py fix: stop auth header prefix accumulating on repeated Custom Tool calls 2026-05-10 21:33:57 +08:00