mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 14:41:24 +08:00
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:
parent
d6e7ce330e
commit
61dd97bd0e
@ -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
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user