From 697a6f2c80800a9dc3cd2ddbc0c1a7c69ab679a2 Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Mon, 15 Jan 2024 12:54:30 -0800 Subject: [PATCH] langchain[patch]: fix requests lint (#16049) --- libs/langchain/langchain/chains/api/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/langchain/langchain/chains/api/base.py b/libs/langchain/langchain/chains/api/base.py index 0afd7bd383..05b18330ef 100644 --- a/libs/langchain/langchain/chains/api/base.py +++ b/libs/langchain/langchain/chains/api/base.py @@ -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,