requests
Browse files
main.py
CHANGED
@@ -138,8 +138,9 @@ def list_collections(request: Request):
|
|
138 |
return bkend.list_collections()
|
139 |
|
140 |
@app.post(api_base+"/collections")
|
141 |
-
def create_collection( collection: CreateCollection ) :
|
142 |
print("Received request to create_collection")
|
|
|
143 |
return bkend.create_collection(name=collection.name,metadata=collection.metadata,embedding_function=embedding_function,get_or_create=collection.get_or_create)
|
144 |
|
145 |
@app.get(api_base+"/collections/{collection_name}")
|
|
|
138 |
return bkend.list_collections()
|
139 |
|
140 |
@app.post(api_base+"/collections")
|
141 |
+
def create_collection( request: Request, collection: CreateCollection ) :
|
142 |
print("Received request to create_collection")
|
143 |
+
print(request.cookies)
|
144 |
return bkend.create_collection(name=collection.name,metadata=collection.metadata,embedding_function=embedding_function,get_or_create=collection.get_or_create)
|
145 |
|
146 |
@app.get(api_base+"/collections/{collection_name}")
|