Apply patch [skip ci]

This commit is contained in:
open-swe[bot]
2025-09-10 00:10:22 +00:00
parent 107f810438
commit 110d364c02

View File

@@ -440,8 +440,8 @@ class Chroma(VectorStore):
"""Ensure that the collection exists or create it."""
if self._client is None:
msg = (
"Cannot ensure collection synchronously when only async_client is provided. "
"Use async methods or provide a sync client."
"Cannot ensure collection synchronously when only async_client "
"is provided. Use async methods or provide a sync client."
)
raise ValueError(msg)
self._chroma_collection = self._client.get_or_create_collection(
@@ -1758,3 +1758,4 @@ class Chroma(VectorStore):
metadatas = [doc.metadata for doc in documents]
return await self.aadd_texts(texts, metadatas=metadatas, **kwargs)