mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-26 15:49:42 +02:00
fix chromadb ut
This commit is contained in:
parent
2ffa9e12b9
commit
91c58d04cf
3 changed files with 3 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ import chromadb
|
|||
class ChromaStore:
|
||||
"""If inherited from BaseStore, or importing other modules from metagpt, a Python exception occurs, which is strange."""
|
||||
|
||||
def __init__(self, name, get_or_create: bool = True):
|
||||
def __init__(self, name: str, get_or_create: bool = False):
|
||||
client = chromadb.Client()
|
||||
collection = client.create_collection(name, get_or_create=get_or_create)
|
||||
self.client = client
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue