mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-16 23:43:03 +00:00
has_collection did `collection_name in self.client.list_collections()`, but chromadb's list_collections() returns Collection objects (1.x), not name strings — so the membership test is always False, even when the collection exists. Compare against the collection names instead (with a hasattr guard tolerating versions that yield plain names). Found via the dependency-contract test suite (unit/deps/test_chromadb.py). |
||
|---|---|---|
| .. | ||
| dbs | ||
| async_client.py | ||
| factory.py | ||
| main.py | ||
| type.py | ||
| utils.py | ||