mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-12 21:11:43 +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:
@@ -250,9 +250,9 @@ class WatsonxLLM(BaseLLM):
|
||||
}
|
||||
|
||||
def _get_chat_params(self, stop: Optional[List[str]] = None) -> Dict[str, Any]:
|
||||
params: Dict[str, Any] = {**self.params} if self.params else None
|
||||
params: Dict[str, Any] = {**self.params} if self.params else {}
|
||||
if stop is not None:
|
||||
params = (params or {}) | {"stop_sequences": stop}
|
||||
params["stop_sequences"] = stop
|
||||
return params
|
||||
|
||||
def _create_llm_result(self, response: List[dict]) -> LLMResult:
|
||||
|
Reference in New Issue
Block a user