update
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ except Exception as e:
|
|
31 |
class EmbeddingRequest(BaseModel):
|
32 |
input: str = Field(..., min_length=1, max_length=1000)
|
33 |
|
34 |
-
@app.post("/embeddings")
|
35 |
async def embeddings(request: EmbeddingRequest, authorization: str = Depends(check_authorization)):
|
36 |
# async def embeddings(request: EmbeddingRequest):
|
37 |
input_text = request.input
|
|
|
31 |
class EmbeddingRequest(BaseModel):
|
32 |
input: str = Field(..., min_length=1, max_length=1000)
|
33 |
|
34 |
+
@app.post("/v1/embeddings")
|
35 |
async def embeddings(request: EmbeddingRequest, authorization: str = Depends(check_authorization)):
|
36 |
# async def embeddings(request: EmbeddingRequest):
|
37 |
input_text = request.input
|