mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-19 00:03:21 +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). |
||
|---|---|---|
| .. | ||
| data | ||
| internal | ||
| migrations | ||
| models | ||
| retrieval | ||
| routers | ||
| socket | ||
| static | ||
| storage | ||
| tools | ||
| utils | ||
| __init__.py | ||
| alembic.ini | ||
| config.py | ||
| constants.py | ||
| env.py | ||
| events.py | ||
| functions.py | ||
| main.py | ||
| tasks.py | ||