light-infer-chat commited on
Commit
7d1ad3f
·
1 Parent(s): 65e87f1
Files changed (2) hide show
  1. app/api/v1/batch.py +1 -1
  2. app/api/v1/convert.py +1 -1
app/api/v1/batch.py CHANGED
@@ -73,7 +73,7 @@ def _batch_result_from_ok(result) -> BatchFileResult:
73
  async def batch_files(
74
  files: Annotated[List[UploadFile], File(description="Files to convert")],
75
  return_json: bool = Form(False),
76
- clean_content: bool = Form(False),
77
  mappings: Optional[str] = Form(None, description="JSON string with field mappings"),
78
  token: str = Depends(require_auth),
79
  converter_service: ConverterService = Depends(get_converter_service),
 
73
  async def batch_files(
74
  files: Annotated[List[UploadFile], File(description="Files to convert")],
75
  return_json: bool = Form(False),
76
+ clean_content: bool = Query(False),
77
  mappings: Optional[str] = Form(None, description="JSON string with field mappings"),
78
  token: str = Depends(require_auth),
79
  converter_service: ConverterService = Depends(get_converter_service),
app/api/v1/convert.py CHANGED
@@ -135,7 +135,7 @@ async def convert_file(
135
  file: Annotated[UploadFile, File(description="File to convert")],
136
  plain_text: bool = Form(False),
137
  return_json: bool = Form(False),
138
- clean_content: bool = Form(False),
139
  mappings: Optional[str] = Form(None, description="JSON string with field mappings"),
140
  token: str = Depends(require_auth),
141
  converter_service: ConverterService = Depends(get_converter_service),
 
135
  file: Annotated[UploadFile, File(description="File to convert")],
136
  plain_text: bool = Form(False),
137
  return_json: bool = Form(False),
138
+ clean_content: bool = Query(False),
139
  mappings: Optional[str] = Form(None, description="JSON string with field mappings"),
140
  token: str = Depends(require_auth),
141
  converter_service: ConverterService = Depends(get_converter_service),