This commit is contained in:
Timothy J. Baek
2024-09-28 01:35:31 +02:00
parent 5b7cf88915
commit a52e8cd537
7 changed files with 14 additions and 13 deletions

View File

@@ -1340,14 +1340,14 @@ def store_doc(
)
class ProcessDocForm(BaseModel):
class ProcessFileForm(BaseModel):
file_id: str
collection_name: Optional[str] = None
@app.post("/process/doc")
def process_doc(
form_data: ProcessDocForm,
@app.post("/process/file")
def process_file(
form_data: ProcessFileForm,
user=Depends(get_verified_user),
):
try: