How can I add a specific header when using the requests_all tools package? #8459
-
I am using the Requests Langchain tool for the Agent to be able to send requests to an API that requires authentication. For this I need to add a header named Authorization to every request sent by the tool.
but the tool is not TextRequestsWrapper although this is what I get from the docs, and any other type of tool doesn't seem to provide the option to set the headers. Please advie |
Beta Was this translation helpful? Give feedback.
Answered by
katy246-old
Jul 29, 2023
Replies: 1 comment
-
self answer requests_tools[0].requests_wrapper.headers.update({'header':'value'}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
katy246-old
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
self answer
requests_tools[0].requests_wrapper.headers.update({'header':'value'})