anubhav77 commited on
Commit
4c44fc9
·
1 Parent(s): 8f88f4c
Files changed (1) hide show
  1. main.py +2 -1
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}")