The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community: fix lint (#23611)
ccurmeadf2dc13de5a
diff --git a/libs/community/langchain_community/chat_models/maritalk.py b/libs/community/langchain_community/chat_models/maritalk.pyindex 3a1821baeb..f06f2917e7 100644--- a/libs/community/langchain_community/chat_models/maritalk.py+++ b/libs/community/langchain_community/chat_models/maritalk.py@@ -213,7 +213,7 @@ class ChatMaritalk(BaseChatModel):if response.status_code == 200:return response.json().get("answer", "No answer found")else:- raise MaritalkHTTPError(response)+ raise MaritalkHTTPError(response) # type: ignore[arg-type]except ImportError:raise ImportError(@@ -301,7 +301,7 @@ class ChatMaritalk(BaseChatModel):async with client.stream("POST","https://chat.maritaca.ai/api/chat/inference",- data=json.dumps(data),+ data=json.dumps(data), # type: ignore[arg-type]headers=headers,timeout=None,) as response:@@ -323,7 +323,7 @@ class ChatMaritalk(BaseChatModel):yield chunkelse:- raise MaritalkHTTPError(response)+ raise MaritalkHTTPError(response) # type: ignore[arg-type]except ImportError:raise ImportError(diff --git a/libs/community/langchain_community/chat_models/zhipuai.py b/libs/community/langchain_community/chat_models/zhipuai.pyindex fd0648e912..9ec8ffa728 100644--- a/libs/community/langchain_community/chat_models/zhipuai.py+++ b/libs/community/langchain_community/chat_models/zhipuai.py@@ -447,7 +447,7 @@ class ChatZhipuAI(BaseChatModel):import httpxwith httpx.Client(headers=headers, timeout=60) as client:- response = client.post(self.zhipuai_api_base, json=payload)+ response = client.post(self.zhipuai_api_base, json=payload) # type: ignore[arg-type]response.raise_for_status()return self._create_chat_result(response.json())@@ -534,7 +534,7 @@ class ChatZhipuAI(BaseChatModel):import httpxasync with httpx.AsyncClient(headers=headers, timeout=60) as client:- response = await client.post(self.zhipuai_api_base, json=payload)+ response = await client.post(self.zhipuai_api_base, json=payload) # type: ignore[arg-type]response.raise_for_status()return self._create_chat_result(response.json())