Skip to content

Commit

Permalink
Move v1 routes out into separate file/wrapper class
Browse files Browse the repository at this point in the history
  • Loading branch information
drewkim committed Oct 16, 2024
1 parent 983f11f commit 1c8f562
Show file tree
Hide file tree
Showing 4 changed files with 870 additions and 816 deletions.
1 change: 0 additions & 1 deletion chromadb/api/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ def get_database(
resp_json = self._make_request(
"get",
f"/tenants/{tenant}/databases/{name}",
params={"tenant": tenant},
)
return Database(
id=resp_json["id"], name=resp_json["name"], tenant=resp_json["tenant"]
Expand Down
4 changes: 2 additions & 2 deletions chromadb/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import chromadb
import chromadb.config
from chromadb.server.fastapi import FastAPI
from chromadb.server.fastapi.v1 import FastAPIWithV1

settings = chromadb.config.Settings()
server = FastAPI(settings)
server = FastAPIWithV1(settings)
app = server.app()
Loading

0 comments on commit 1c8f562

Please sign in to comment.