Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

docs(next): align api docs with current implementation

Luban01f50bd38c98
diff --git a/docs/next/api/health-models.md b/docs/next/api/health-models.md
index 306c085e..d4458094 100644
--- a/docs/next/api/health-models.md
+++ b/docs/next/api/health-models.md
@@ -44,7 +44,7 @@ GET /v1/health HTTP/1.1
| HTTP | code | 场景 |
|------|------|------|
-| 503 | `service_unavailable` | 服务启动中或无法处理请求。 |
+| 503 | `engine_error` 类模型预加载错误码 | 模型预加载未成功,服务尚不能处理请求。本地实现返回 `model_preload_dependency_missing`、`model_preload_files_missing`、`model_preload_device_unavailable` 或 `model_preload_failed`,`type` 固定为 `engine_error`。 |
## GET `/v1/models`
@@ -63,11 +63,22 @@ GET /v1/models HTTP/1.1
"object": "list",
"data": [
{
- "id": "pipeline",
+ "id": "MinerU-Flash",
"object": "model",
"created": 1700000000,
- "owned_by": "mineru",
- "description": "Pipeline-based parsing model."
+ "owned_by": "mineru"
+ },
+ {
+ "id": "Hybrid-Basic",
+ "object": "model",
+ "created": 1700000000,
+ "owned_by": "mineru"
+ },
+ {
+ "id": "MinerU-HTML",
+ "object": "model",
+ "created": 1700000000,
+ "owned_by": "mineru"
},
{
"id": "MinerU2.5-Pro-2605-1.2B",
@@ -80,6 +91,8 @@ GET /v1/models HTTP/1.1
}
```
+Local Parse Server 默认(`--tier standard`)按上述顺序返回 `MinerU-Flash`、`Hybrid-Basic`、`MinerU-HTML`、`MinerU2.5-Pro-2605-1.2B`;实际模型列表由启动 `--tier`(与 `--no-flash`)决定。
+
模型对象字段:
| 字段 | 类型 | 必带 | 说明 |
diff --git a/docs/next/api/responses.md b/docs/next/api/responses.md
index aeb4c962..4825b5a3 100644
--- a/docs/next/api/responses.md
+++ b/docs/next/api/responses.md
@@ -93,7 +93,9 @@ Idempotency-Key: 7f5b7f7c-5c5a-4b2f-bb89-0c901c9a2d6a
| `permission_error` | 权限不足、配额耗尽或功能需要更高 access level。 |
| `rate_limit_error` | 请求触发限流。 |
| `engine_error` | 解析引擎不可用、崩溃或解析失败。 |
-| `api_error` | 服务端内部错误。 |
+| `timeout_error` | 请求等待或处理超时。 |
+| `internal_error` | 服务端内部错误(未归类异常)。 |
+| `api_error` | 服务端 API 层错误(存储、元数据、远端依赖等副作用失败)。 |
## 常用错误码
diff --git a/docs/next/api/webhooks.md b/docs/next/api/webhooks.md
index c141b9da..c9756725 100644
--- a/docs/next/api/webhooks.md
+++ b/docs/next/api/webhooks.md
@@ -29,7 +29,7 @@ Webhook 只面向 registered 请求。anonymous 请求传入 `callback` 时,
| 字段 | 类型 | 必填 | 说明 |
|------|------|:--:|------|
| `url` | string | 是 | 接收回调的 HTTP 或 HTTPS URL,必须支持 POST。 |
-| `secret` | string | 是 | 当前 job 的签名密钥,由英文字母、数字、下划线组成,不超过 64 字符。 |
+| `secret` | string | 否 | 当前 job 的签名密钥,由英文字母、数字、下划线组成,不超过 64 字符。本地实现中可省略;官方 API 可能要求必填。 |
`secret` 与 job 生命周期绑定,不会在 `GET /v1/parse/jobs/{job_id}` 响应中返回。