mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-12 12:59:07 +00:00
infra: add -p to mkdir in lint steps (#17013)
Previously, if this did not find a mypy cache then it wouldnt run this makes it always run adding mypy ignore comments with existing uncaught issues to unblock other prs --------- Co-authored-by: Erick Friis <erick@langchain.dev> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
@@ -56,11 +56,11 @@ class BaichuanLLM(LLM):
|
||||
def _post(self, request: Any) -> Any:
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": f"Bearer {self.baichuan_api_key.get_secret_value()}",
|
||||
"Authorization": f"Bearer {self.baichuan_api_key.get_secret_value()}", # type: ignore[union-attr]
|
||||
}
|
||||
try:
|
||||
response = requests.post(
|
||||
self.baichuan_api_host,
|
||||
self.baichuan_api_host, # type: ignore[arg-type]
|
||||
headers=headers,
|
||||
json=request,
|
||||
timeout=self.timeout,
|
||||
|
Reference in New Issue
Block a user