geqintan commited on
Commit
7515fd1
·
1 Parent(s): 52ef174
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ class EmbeddingRequest(BaseModel):
33
  input: Union[str, List[str]] # 修复类型定义
34
 
35
  @app.post("/v1/embeddings")
36
- async def embeddings(request, authorization: str = Depends(check_authorization)):
37
  # async def embeddings(request: EmbeddingRequest):
38
  # logger.info("Received request for embeddings")
39
  # return '2222222222'
 
33
  input: Union[str, List[str]] # 修复类型定义
34
 
35
  @app.post("/v1/embeddings")
36
+ async def embeddings(request:EmbeddingRequest, authorization: str = Depends(check_authorization)):
37
  # async def embeddings(request: EmbeddingRequest):
38
  # logger.info("Received request for embeddings")
39
  # return '2222222222'