mirror of
https://github.com/langgenius/dify.git
synced 2026-06-26 14:51:13 +08:00
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 |
||
|---|---|---|
| .. | ||
| provider.py | ||
| tool.py | ||