From 8c2386df41a7f4c04c997071a03454d9cf14b1d2 Mon Sep 17 00:00:00 2001 From: Rahul Raghavendra Choudhury <104511030+2020uce0047@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:07:59 +0530 Subject: [PATCH] Update embedding_proxy.py solves #93 --- embedding_proxy.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/embedding_proxy.py b/embedding_proxy.py index c2d8f020..4e9cc566 100644 --- a/embedding_proxy.py +++ b/embedding_proxy.py @@ -17,9 +17,8 @@ class EmbeddingResponse(BaseModel): object: str data: List[dict] model: str - usage: dict - -@app.post("/v1/embeddings") + +@app.post("/embeddings") async def create_embedding(request: EmbeddingRequest): async with httpx.AsyncClient() as client: if isinstance(request.input, str):