Skip to content
Discussion options

You must be logged in to vote

这是一个已知问题--backend 参数在命令行和 API 内部配置中重复传递导致冲突。

解决方法是不要在启动命令中指定 --backend,而是在 API 请求时传递:

启动服务:

MINERU_DEVICE_MODE=cpu mineru-api --host 0.0.0.0 --port 8000

调用 API 时指定 backend:

curl -X POST http://localhost:8000/file_parse \
  -F "files=@/path/to/file.pdf" \
  -F "backend=pipeline"

这样将基础设施配置(host/port)和请求参数(backend)分开就可以避免冲突了。

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu  Join Discord Share on X

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@walker202004-netizen
Comment options

@dosubot
Comment options

Answer selected by myhloli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant