community: fix lint (#23611)

This commit is contained in:
ccurme
2024-06-27 18:12:16 -04:00
committed by GitHub
parent ef0593db58
commit adf2dc13de
2 changed files with 5 additions and 5 deletions

View File

@@ -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())