Skip to content

Commit 7fe41b6

Browse files
committed
fix(genai/embeddings): defer async client init; wrap long comment for lint
1 parent fcb66d7 commit 7fe41b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libs/genai/langchain_google_genai/embeddings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ def validate_environment(self) -> Self:
117117
transport=self.transport,
118118
)
119119
# Always defer async client initialization to first async call.
120-
# This avoids creating event loops implicitly and aligns with lazy init in chat models.
120+
# Avoids implicit event loop creation and aligns with lazy init
121+
# in chat models.
121122
self.async_client = None
122123
return self
123124

0 commit comments

Comments
 (0)