mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 11:39:18 +00:00
community: fix lint (#23611)
This commit is contained in:
@@ -447,7 +447,7 @@ class ChatZhipuAI(BaseChatModel):
|
||||
import httpx
|
||||
|
||||
with 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 httpx
|
||||
|
||||
async 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())
|
||||
|
||||
|
Reference in New Issue
Block a user