langchain[patch]: fix requests lint (#16049)

pull/15750/head^2
Bagatur 5 months ago committed by GitHub
parent 061e63eef2
commit 697a6f2c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -163,7 +163,7 @@ class APIChain(Chain):
)
api_response = self.requests_wrapper.get(api_url)
_run_manager.on_text(
api_response, color="yellow", end="\n", verbose=self.verbose
str(api_response), color="yellow", end="\n", verbose=self.verbose
)
answer = self.api_answer_chain.predict(
question=question,
@ -198,7 +198,7 @@ class APIChain(Chain):
)
api_response = await self.requests_wrapper.aget(api_url)
await _run_manager.on_text(
api_response, color="yellow", end="\n", verbose=self.verbose
str(api_response), color="yellow", end="\n", verbose=self.verbose
)
answer = await self.api_answer_chain.apredict(
question=question,

Loading…
Cancel
Save