Repository navigation
Conversation
Document-parse providers were configurable only by hand-editing the stored YAML, and the PaddleOCR loader could not talk to the hosted jobs API at all. - PaddleOCR: add a jobs-API transport (multipart submit → poll jobId → fetch the presigned result), selected automatically when the URL ends in /jobs. The self-hosted /layout-parsing path is unchanged. - MinerU V4: support the hosted upload API (/api/v1/agent/parse/file) and the public-URL API (/api/v4/extract/task); the self-hosted /v1 job client is untouched. Upload mode returns markdown only, so it has no bbox metadata. - MinerU: the encrypted API key is injected as a configurable request header, and request_kwargs.backend is editable. - Providers resolve credentials from an encrypted DB value first, then the environment; no token is ever returned by the API. - Config writes are text-level and preserve comments; a nested section missing from an older deployment is created instead of failing the save. - Admin form under 系统管理 → 文档解析 with per-provider guidance and a connection test that distinguishes a rejected token from an unreachable service without consuming a parse job. - Native dev sources docker/.env.app (git-ignored); compose passes the token variables through. No secret is committed.
PR 2672 touches docker/docker-compose.yml, which triggers App Runtime Quality. That gate tests src/runtime-manager and src/app-proxy, neither of which this PR changes — both suites were already red on main: - F114 stage permits: the executor doubles lack authorize_step/preflight. - FastAPI 0.141 keeps included routers lazy, so app.routes no longer exposes .path; assert the public HTTP contract instead. - The image-check helper exists in the templates but was missing from the log-container whitelist and from the pod-count/fixture expectations. - Helm 3.16 server-side dry run maps every rendered resource, so the lookup fixture must advertise the chart's API resources. - app-proxy: the trailing-slash redirect is a deliberate second authorization; the fail-closed cache test must use the canonical URL. Test-only except the one-line k8s_client log whitelist. Verified locally: runtime-manager 1861 passed / 90 skipped, app-proxy 273 passed, ruff clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
文档解析(OCR/ETL)此前只能手改存储的 YAML,且 PaddleOCR loader 无法对接托管的 jobs API。
改动
/jobs结尾时自动选用;自建/layout-parsing路径保持不变/api/v1/agent/parse/file,无需公网地址)与公网 URL 接口(/api/v4/extract/task);自建/v1客户端不变request_kwargs.backend可编辑与完整分支的差异
本 PR 只含该功能提交,基线为上游
main。原提交中涉及Makefile/deploy.md的改动已被丢弃——这两个文件在上游不存在(由另一条开发栈提交引入)。因此本 PR 不引入docker/.env.app的本地开发注入机制;compose / 环境变量方式不受影响。验证
check-i18n无新增漂移parse_type=paddle_ocr/mineru_v4,文件状态 SUCCESS已知限制
/api/v4/extract/task(文件需公网可达)