update
Browse files
app.py
CHANGED
@@ -32,8 +32,8 @@ class EmbeddingRequest(BaseModel):
|
|
32 |
input: str = Field(..., min_length=1, max_length=1000)
|
33 |
|
34 |
@app.post("/embeddings")
|
35 |
-
|
36 |
-
async def embeddings(request: EmbeddingRequest):
|
37 |
input_text = request.input
|
38 |
|
39 |
try:
|
|
|
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
|
38 |
|
39 |
try:
|