mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-19 19:11:33 +00:00
parent
11505f95d3
commit
60d009f75a
@ -17,7 +17,22 @@ from langchain.utilities.requests import TextRequestsWrapper
|
||||
|
||||
|
||||
class APIChain(Chain):
|
||||
"""Chain that makes API calls and summarizes the responses to answer a question."""
|
||||
"""Chain that makes API calls and summarizes the responses to answer a question.
|
||||
|
||||
*Security Note*: This API chain uses the requests toolkit
|
||||
to make GET, POST, PATCH, PUT, and DELETE requests to an API.
|
||||
|
||||
Exercise care in who is allowed to use this chain. If exposing
|
||||
to end users, consider that users will be able to make arbitrary
|
||||
requests on behalf of the server hosting the code. For example,
|
||||
users could ask the server to make a request to a private API
|
||||
that is only accessible from the server.
|
||||
|
||||
Control access to who can submit issue requests using this toolkit and
|
||||
what network access it has.
|
||||
|
||||
See https://python.langchain.com/docs/security for more information.
|
||||
"""
|
||||
|
||||
api_request_chain: LLMChain
|
||||
api_answer_chain: LLMChain
|
||||
|
Loading…
Reference in New Issue
Block a user