geqintan commited on
Commit
46a8c74
·
1 Parent(s): 797dfb9
Files changed (1) hide show
  1. app.py +1 -1
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