fix: correct OpenMineru file parameter from 'files' to 'file'

Fixes issue #11252 where the locally deployed mineru service was not working
properly due to incorrect FastAPI request body. The file field was always None
because the parameter name was 'files' instead of 'file'.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
kangfenmao 2025-11-14 10:49:18 +08:00
parent d6e7ce330e
commit 61dd97bd0e

View File

@ -124,7 +124,7 @@ export default class OpenMineruPreprocessProvider extends BasePreprocessProvider
const formData = new FormData()
formData.append('return_md', 'true')
formData.append('response_format_zip', 'true')
formData.append('files', fileBuffer, {
formData.append('file', fileBuffer, {
filename: file.origin_name
})