mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-07 22:11:51 +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:
@@ -49,7 +49,7 @@ def is_gemini_model(model_name: str) -> bool:
|
||||
return model_name is not None and "gemini" in model_name
|
||||
|
||||
|
||||
def completion_with_retry(
|
||||
def completion_with_retry( # type: ignore[no-redef]
|
||||
llm: VertexAI,
|
||||
prompt: List[Union[str, "Image"]],
|
||||
stream: bool = False,
|
||||
@@ -330,7 +330,7 @@ class VertexAI(_VertexAICommon, BaseLLM):
|
||||
generation += chunk
|
||||
generations.append([generation])
|
||||
else:
|
||||
res = completion_with_retry(
|
||||
res = completion_with_retry( # type: ignore[misc]
|
||||
self,
|
||||
[prompt],
|
||||
stream=should_stream,
|
||||
@@ -373,7 +373,7 @@ class VertexAI(_VertexAICommon, BaseLLM):
|
||||
**kwargs: Any,
|
||||
) -> Iterator[GenerationChunk]:
|
||||
params = self._prepare_params(stop=stop, stream=True, **kwargs)
|
||||
for stream_resp in completion_with_retry(
|
||||
for stream_resp in completion_with_retry( # type: ignore[misc]
|
||||
self,
|
||||
[prompt],
|
||||
stream=True,
|
||||
|
Reference in New Issue
Block a user