dsh-pdf-mineru 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +142 -0
- package/cordis.patch.yml +26 -0
- package/lib/client.js +1994 -0
- package/lib/client.js.map +1 -0
- package/lib/index.d.ts +725 -0
- package/lib/index.js +15565 -0
- package/package.json +131 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,1994 @@
|
|
|
1
|
+
window.__ModuleLoader__.load({
|
|
2
|
+
id: "dsh-pdf-mineru",
|
|
3
|
+
factory: (require) => {
|
|
4
|
+
var module = { exports: {} };
|
|
5
|
+
var exports = module.exports;
|
|
6
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
7
|
+
let react = require("react");
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
//#region \0dsh-css:/mnt/data/yurzi/Workspaces/dsh/dsh-pdf-mineru/src/client/SettingsPage.module.css.mjs
|
|
10
|
+
const css = ".61pybv_section {\n display: flex;\n flex-direction: column;\n gap: 16px;\n max-width: 800px;\n color: var(--dsw-alias-label-primary);\n padding-bottom: 32px;\n}\n\n.61pybv_title {\n margin: 0;\n font-size: 18px;\n line-height: 26px;\n font-weight: 600;\n color: var(--dsw-alias-label-primary);\n}\n\n.61pybv_intro {\n margin: 0;\n font-size: 13px;\n line-height: 20px;\n color: var(--dsw-alias-label-tertiary);\n}\n\n.61pybv_error {\n margin: 0;\n padding: 8px 12px;\n border: 1px solid var(--dsw-alias-state-error-primary);\n border-radius: 6px;\n background: var(--dsw-alias-interactive-bg-hover-danger);\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-state-error-primary);\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n\n.61pybv_errorDismiss {\n flex: none;\n border: none;\n background: transparent;\n color: inherit;\n font-size: 16px;\n line-height: 1;\n cursor: pointer;\n padding: 0 4px;\n}\n\n.61pybv_loading {\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-tertiary);\n}\n\n.61pybv_editorGroup {\n border: 0;\n border-top: 1px solid var(--dsw-alias-border-l2);\n padding: 16px 0 0;\n display: flex;\n flex-direction: column;\n gap: 12px;\n background: transparent;\n}\n\n.61pybv_groupTitle {\n margin: 0 0 4px 0;\n font-size: 14px;\n line-height: 20px;\n font-weight: 600;\n color: var(--dsw-alias-label-primary);\n border-bottom: 1px solid var(--dsw-alias-border-l3);\n padding-bottom: 6px;\n}\n\n.61pybv_row {\n display: flex;\n gap: 12px;\n flex-wrap: wrap;\n}\n\n.61pybv_row > .61pybv_field {\n flex: 1 1 220px;\n}\n\n.61pybv_field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.61pybv_checkboxField {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n user-select: none;\n}\n\n.61pybv_fieldLabel {\n font-size: 12px;\n line-height: 18px;\n font-weight: 500;\n color: var(--dsw-alias-label-secondary);\n}\n\n.61pybv_checkboxLabel {\n font-size: 13px;\n line-height: 18px;\n color: var(--dsw-alias-label-primary);\n}\n\n.61pybv_input,\n.61pybv_select {\n height: 32px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 6px;\n padding: 0 10px;\n font-size: 13px;\n line-height: 20px;\n color: var(--dsw-alias-label-primary);\n background: var(--dsw-alias-bg-layer-1);\n outline: none;\n}\n\n.61pybv_input:focus,\n.61pybv_select:focus {\n border-color: var(--dsw-alias-brand-primary);\n}\n\n.61pybv_checkboxGroup {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n margin-top: 4px;\n}\n\n.61pybv_checkboxOption {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n color: var(--dsw-alias-label-primary);\n cursor: pointer;\n}\n\n.61pybv_actionBar {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 12px;\n padding-top: 8px;\n}\n\n.61pybv_primaryButton {\n height: 34px;\n padding: 0 16px;\n border: none;\n border-radius: 6px;\n background: var(--dsw-alias-brand-primary);\n color: #fff;\n font-size: 13px;\n font-weight: 500;\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.61pybv_primaryButton:hover:not(:disabled) {\n opacity: 0.9;\n}\n\n.61pybv_primaryButton:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.61pybv_secondaryButton {\n height: 34px;\n padding: 0 14px;\n border: 1px solid var(--dsw-alias-border-l2);\n border-radius: 6px;\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font-size: 13px;\n font-weight: 500;\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.61pybv_secondaryButton:hover:not(:disabled) {\n background: var(--dsw-alias-bg-layer-2);\n}\n\n.61pybv_secondaryButton:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.61pybv_testResult {\n padding: 10px 12px;\n border-radius: 6px;\n font-size: 12px;\n line-height: 18px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.61pybv_testResultHealthy {\n background: var(--dsw-alias-state-success-bg, rgba(46, 160, 67, 0.1));\n border: 1px solid var(--dsw-alias-state-success-primary, #2ea043);\n color: var(--dsw-alias-state-success-primary, #2ea043);\n}\n\n.61pybv_testResultError {\n background: var(--dsw-alias-state-error-bg, rgba(248, 81, 73, 0.1));\n border: 1px solid var(--dsw-alias-state-error-primary, #f85149);\n color: var(--dsw-alias-state-error-primary, #f85149);\n}\n\n.61pybv_testResultTesting {\n background: var(--dsw-alias-bg-layer-2);\n border: 1px solid var(--dsw-alias-border-l2);\n color: var(--dsw-alias-label-secondary);\n}\n\n.61pybv_testHeader {\n font-weight: 600;\n}\n\n.61pybv_testDetails {\n font-family: monospace;\n font-size: 11px;\n color: var(--dsw-alias-label-secondary);\n}\n";
|
|
11
|
+
const classMap = {
|
|
12
|
+
"section": "61pybv_section",
|
|
13
|
+
"title": "61pybv_title",
|
|
14
|
+
"intro": "61pybv_intro",
|
|
15
|
+
"error": "61pybv_error",
|
|
16
|
+
"errorDismiss": "61pybv_errorDismiss",
|
|
17
|
+
"loading": "61pybv_loading",
|
|
18
|
+
"editorGroup": "61pybv_editorGroup",
|
|
19
|
+
"groupTitle": "61pybv_groupTitle",
|
|
20
|
+
"row": "61pybv_row",
|
|
21
|
+
"field": "61pybv_field",
|
|
22
|
+
"checkboxField": "61pybv_checkboxField",
|
|
23
|
+
"fieldLabel": "61pybv_fieldLabel",
|
|
24
|
+
"checkboxLabel": "61pybv_checkboxLabel",
|
|
25
|
+
"input": "61pybv_input",
|
|
26
|
+
"select": "61pybv_select",
|
|
27
|
+
"checkboxGroup": "61pybv_checkboxGroup",
|
|
28
|
+
"checkboxOption": "61pybv_checkboxOption",
|
|
29
|
+
"actionBar": "61pybv_actionBar",
|
|
30
|
+
"primaryButton": "61pybv_primaryButton",
|
|
31
|
+
"secondaryButton": "61pybv_secondaryButton",
|
|
32
|
+
"testResult": "61pybv_testResult",
|
|
33
|
+
"testResultHealthy": "61pybv_testResultHealthy",
|
|
34
|
+
"testResultError": "61pybv_testResultError",
|
|
35
|
+
"testResultTesting": "61pybv_testResultTesting",
|
|
36
|
+
"testHeader": "61pybv_testHeader",
|
|
37
|
+
"testDetails": "61pybv_testDetails"
|
|
38
|
+
};
|
|
39
|
+
const tagId = "dsh-pdf-mineru/SettingsPage.module.css";
|
|
40
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
41
|
+
const tag = document.createElement("style");
|
|
42
|
+
tag.dataset.plugin = "dsh-pdf-mineru";
|
|
43
|
+
tag.dataset.pluginCss = tagId;
|
|
44
|
+
tag.textContent = css;
|
|
45
|
+
document.head.appendChild(tag);
|
|
46
|
+
} else if (typeof document !== "undefined") {
|
|
47
|
+
const existing = document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]");
|
|
48
|
+
if (existing) existing.textContent = css;
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/client/SettingsPage.tsx
|
|
52
|
+
const ALL_ARTIFACT_KINDS = [
|
|
53
|
+
"markdown",
|
|
54
|
+
"layout",
|
|
55
|
+
"model-output",
|
|
56
|
+
"content-list",
|
|
57
|
+
"images"
|
|
58
|
+
];
|
|
59
|
+
function switchProviderType(provider, nextType) {
|
|
60
|
+
if (provider.type === nextType) return provider;
|
|
61
|
+
if (nextType === "self-hosted-v2") {
|
|
62
|
+
const isMineruCloud = provider.baseURL.includes("mineru.net");
|
|
63
|
+
return {
|
|
64
|
+
id: provider.id,
|
|
65
|
+
type: "self-hosted-v2",
|
|
66
|
+
baseURL: isMineruCloud ? "http://localhost:18000" : provider.baseURL,
|
|
67
|
+
apiKeyEnv: provider.apiKeyEnv,
|
|
68
|
+
modelMap: {
|
|
69
|
+
pipeline: "pipeline",
|
|
70
|
+
vlm: "vlm-engine"
|
|
71
|
+
},
|
|
72
|
+
allowInsecureHttp: true
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
id: provider.id,
|
|
77
|
+
type: "official-v4",
|
|
78
|
+
baseURL: "https://mineru.net/api/v4",
|
|
79
|
+
apiKeyEnv: provider.apiKeyEnv || "MINERU_API_KEY",
|
|
80
|
+
models: ["pipeline", "vlm"],
|
|
81
|
+
configuredVersion: "v4"
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function patchActiveProvider(config, patch) {
|
|
85
|
+
const activeId = config.activeProvider;
|
|
86
|
+
const providers = config.providers.map((p) => {
|
|
87
|
+
if (p.id !== activeId) return p;
|
|
88
|
+
return {
|
|
89
|
+
...p,
|
|
90
|
+
...patch
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
return {
|
|
94
|
+
...config,
|
|
95
|
+
providers
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function updateConfigSection(config, section, patch) {
|
|
99
|
+
const current = config[section];
|
|
100
|
+
if (typeof current === "object" && current !== null && !Array.isArray(current)) return {
|
|
101
|
+
...config,
|
|
102
|
+
[section]: {
|
|
103
|
+
...current,
|
|
104
|
+
...patch
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
return {
|
|
108
|
+
...config,
|
|
109
|
+
[section]: patch
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
async function callRpc(rpc, endpoint, payload) {
|
|
113
|
+
return rpc.call("/dsh-pdf-mineru-api", endpoint, payload);
|
|
114
|
+
}
|
|
115
|
+
function SettingsPage({ rpc, t }) {
|
|
116
|
+
const [config, setConfig] = (0, react.useState)(null);
|
|
117
|
+
const [draft, setDraft] = (0, react.useState)(null);
|
|
118
|
+
const [loading, setLoading] = (0, react.useState)(true);
|
|
119
|
+
const [saving, setSaving] = (0, react.useState)(false);
|
|
120
|
+
const [saved, setSaved] = (0, react.useState)(false);
|
|
121
|
+
const [error, setError] = (0, react.useState)(void 0);
|
|
122
|
+
const [testState, setTestState] = (0, react.useState)({ status: "idle" });
|
|
123
|
+
const refresh = (0, react.useCallback)(async () => {
|
|
124
|
+
setLoading(true);
|
|
125
|
+
setError(void 0);
|
|
126
|
+
try {
|
|
127
|
+
const result = await callRpc(rpc, "mineru/config.get", {});
|
|
128
|
+
if (result.ok) {
|
|
129
|
+
setConfig(result.value.config);
|
|
130
|
+
setDraft(result.value.config);
|
|
131
|
+
} else setError(result.error.message);
|
|
132
|
+
} catch (err) {
|
|
133
|
+
setError(err instanceof Error ? err.message : String(err));
|
|
134
|
+
} finally {
|
|
135
|
+
setLoading(false);
|
|
136
|
+
}
|
|
137
|
+
}, [rpc]);
|
|
138
|
+
(0, react.useEffect)(() => {
|
|
139
|
+
refresh();
|
|
140
|
+
}, [refresh]);
|
|
141
|
+
const save = (0, react.useCallback)(async () => {
|
|
142
|
+
if (draft === null) return;
|
|
143
|
+
setSaving(true);
|
|
144
|
+
setError(void 0);
|
|
145
|
+
setSaved(false);
|
|
146
|
+
try {
|
|
147
|
+
const result = await callRpc(rpc, "mineru/config.set", { config: draft });
|
|
148
|
+
if (result.ok) {
|
|
149
|
+
setConfig(result.value.config);
|
|
150
|
+
setDraft(result.value.config);
|
|
151
|
+
setSaved(true);
|
|
152
|
+
setTimeout(() => setSaved(false), 2e3);
|
|
153
|
+
} else setError(result.error.message);
|
|
154
|
+
} catch (err) {
|
|
155
|
+
setError(err instanceof Error ? err.message : String(err));
|
|
156
|
+
} finally {
|
|
157
|
+
setSaving(false);
|
|
158
|
+
}
|
|
159
|
+
}, [draft, rpc]);
|
|
160
|
+
const testActiveProvider = (0, react.useCallback)(async () => {
|
|
161
|
+
if (draft === null) return;
|
|
162
|
+
const active = draft.providers.find((p) => p.id === draft.activeProvider);
|
|
163
|
+
if (active === void 0) return;
|
|
164
|
+
setTestState({ status: "testing" });
|
|
165
|
+
try {
|
|
166
|
+
const result = await callRpc(rpc, "mineru/probe", { provider: active });
|
|
167
|
+
if (result.ok) setTestState({
|
|
168
|
+
status: result.value.available ? "healthy" : "unhealthy",
|
|
169
|
+
view: result.value
|
|
170
|
+
});
|
|
171
|
+
else setTestState({
|
|
172
|
+
status: "error",
|
|
173
|
+
error: result.error.message
|
|
174
|
+
});
|
|
175
|
+
} catch (err) {
|
|
176
|
+
setTestState({
|
|
177
|
+
status: "error",
|
|
178
|
+
error: err instanceof Error ? err.message : String(err)
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}, [draft, rpc]);
|
|
182
|
+
if (loading || draft === null) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
183
|
+
className: classMap.section,
|
|
184
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
185
|
+
className: classMap.title,
|
|
186
|
+
children: t("page.title")
|
|
187
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
188
|
+
className: classMap.loading,
|
|
189
|
+
children: "…"
|
|
190
|
+
})]
|
|
191
|
+
});
|
|
192
|
+
const activeProvider = draft.providers.find((p) => p.id === draft.activeProvider) ?? draft.providers[0];
|
|
193
|
+
const normalizeOfficialDefaults = (config, provider) => {
|
|
194
|
+
if (provider.type !== "official-v4" || config.defaults.parseMethod !== "txt") return config;
|
|
195
|
+
return updateConfigSection(config, "defaults", {
|
|
196
|
+
parseMethod: "auto",
|
|
197
|
+
ocr: false
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
const handleActiveTypeChange = (newType) => {
|
|
201
|
+
const updated = switchProviderType(activeProvider, newType);
|
|
202
|
+
setDraft((prev) => {
|
|
203
|
+
if (prev === null) return prev;
|
|
204
|
+
return normalizeOfficialDefaults(patchActiveProvider(prev, updated), updated);
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
const toggleArtifact = (kind) => {
|
|
208
|
+
const current = draft.defaults.artifacts;
|
|
209
|
+
let next;
|
|
210
|
+
if (current.includes(kind)) {
|
|
211
|
+
if (kind === "markdown") return;
|
|
212
|
+
next = current.filter((k) => k !== kind);
|
|
213
|
+
} else next = [...current, kind];
|
|
214
|
+
setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "defaults", { artifacts: next }));
|
|
215
|
+
};
|
|
216
|
+
const toggleOfficialModel = (model) => {
|
|
217
|
+
if (activeProvider.type !== "official-v4") return;
|
|
218
|
+
const current = activeProvider.models;
|
|
219
|
+
let next;
|
|
220
|
+
if (current.includes(model)) {
|
|
221
|
+
if (current.length <= 1) return;
|
|
222
|
+
next = current.filter((m) => m !== model);
|
|
223
|
+
} else next = [...current, model];
|
|
224
|
+
setDraft((prev) => prev === null ? prev : patchActiveProvider(prev, { models: next }));
|
|
225
|
+
};
|
|
226
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
227
|
+
className: classMap.section,
|
|
228
|
+
children: [
|
|
229
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
230
|
+
className: classMap.title,
|
|
231
|
+
children: t("page.title")
|
|
232
|
+
}),
|
|
233
|
+
error !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
234
|
+
className: classMap.error,
|
|
235
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: error }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
236
|
+
type: "button",
|
|
237
|
+
className: classMap.errorDismiss,
|
|
238
|
+
onClick: () => setError(void 0),
|
|
239
|
+
children: "×"
|
|
240
|
+
})]
|
|
241
|
+
}),
|
|
242
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
243
|
+
className: classMap.actionBar,
|
|
244
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
245
|
+
type: "button",
|
|
246
|
+
className: classMap.primaryButton,
|
|
247
|
+
disabled: saving,
|
|
248
|
+
onClick: () => void save(),
|
|
249
|
+
children: saving ? "…" : saved ? t("action.saved") : t("action.save")
|
|
250
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
251
|
+
type: "button",
|
|
252
|
+
className: classMap.secondaryButton,
|
|
253
|
+
disabled: testState.status === "testing",
|
|
254
|
+
onClick: () => void testActiveProvider(),
|
|
255
|
+
children: testState.status === "testing" ? t("action.testing") : t("action.test")
|
|
256
|
+
})]
|
|
257
|
+
}),
|
|
258
|
+
testState.status !== "idle" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
259
|
+
className: `${classMap.testResult} ${testState.status === "healthy" ? classMap.testResultHealthy : testState.status === "unhealthy" || testState.status === "error" ? classMap.testResultError : classMap.testResultTesting}`,
|
|
260
|
+
children: [
|
|
261
|
+
testState.status === "testing" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("action.testing") }),
|
|
262
|
+
testState.status === "error" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
263
|
+
className: classMap.testHeader,
|
|
264
|
+
children: t("test.error")
|
|
265
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: testState.error })] }),
|
|
266
|
+
(testState.status === "healthy" || testState.status === "unhealthy") && testState.view && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
267
|
+
className: classMap.testHeader,
|
|
268
|
+
children: [
|
|
269
|
+
testState.status === "healthy" ? t("test.healthy") : t("test.unhealthy"),
|
|
270
|
+
" — ",
|
|
271
|
+
testState.view.provider
|
|
272
|
+
]
|
|
273
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
274
|
+
className: classMap.testDetails,
|
|
275
|
+
children: [
|
|
276
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
|
|
277
|
+
"Auth: ",
|
|
278
|
+
testState.view.authentication,
|
|
279
|
+
" | Protocol: ",
|
|
280
|
+
testState.view.protocol_version,
|
|
281
|
+
testState.view.server_version ? ` | Server: v${testState.view.server_version}` : ""
|
|
282
|
+
] }),
|
|
283
|
+
testState.view.queue && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
|
|
284
|
+
"Queue: ",
|
|
285
|
+
testState.view.queue.processing ?? 0,
|
|
286
|
+
" active, ",
|
|
287
|
+
testState.view.queue.queued ?? 0,
|
|
288
|
+
" queued (max concurrent: ",
|
|
289
|
+
testState.view.queue.max_concurrent ?? "N/A",
|
|
290
|
+
")"
|
|
291
|
+
] }),
|
|
292
|
+
testState.view.diagnostics && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: ["Diagnostics: ", testState.view.diagnostics] })
|
|
293
|
+
]
|
|
294
|
+
})] })
|
|
295
|
+
]
|
|
296
|
+
}),
|
|
297
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
298
|
+
className: classMap.editorGroup,
|
|
299
|
+
children: [
|
|
300
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
301
|
+
className: classMap.groupTitle,
|
|
302
|
+
children: t("section.provider")
|
|
303
|
+
}),
|
|
304
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
305
|
+
className: classMap.row,
|
|
306
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
307
|
+
className: classMap.field,
|
|
308
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
309
|
+
className: classMap.fieldLabel,
|
|
310
|
+
children: t("field.activeProvider")
|
|
311
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("select", {
|
|
312
|
+
className: classMap.select,
|
|
313
|
+
value: draft.activeProvider,
|
|
314
|
+
onChange: (event) => setDraft((prev) => {
|
|
315
|
+
if (prev === null) return prev;
|
|
316
|
+
const provider = prev.providers.find((candidate) => candidate.id === event.target.value);
|
|
317
|
+
if (provider === void 0) return prev;
|
|
318
|
+
return normalizeOfficialDefaults({
|
|
319
|
+
...prev,
|
|
320
|
+
activeProvider: provider.id
|
|
321
|
+
}, provider);
|
|
322
|
+
}),
|
|
323
|
+
children: draft.providers.map((provider) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("option", {
|
|
324
|
+
value: provider.id,
|
|
325
|
+
children: [
|
|
326
|
+
provider.id,
|
|
327
|
+
" (",
|
|
328
|
+
provider.type,
|
|
329
|
+
")"
|
|
330
|
+
]
|
|
331
|
+
}, provider.id))
|
|
332
|
+
})]
|
|
333
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
334
|
+
className: classMap.field,
|
|
335
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
336
|
+
className: classMap.fieldLabel,
|
|
337
|
+
children: t("field.providerType")
|
|
338
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
339
|
+
className: classMap.select,
|
|
340
|
+
value: activeProvider.type,
|
|
341
|
+
onChange: (e) => handleActiveTypeChange(e.target.value),
|
|
342
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
343
|
+
value: "self-hosted-v2",
|
|
344
|
+
children: t("provider.type.selfHosted")
|
|
345
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
346
|
+
value: "official-v4",
|
|
347
|
+
children: t("provider.type.official")
|
|
348
|
+
})]
|
|
349
|
+
})]
|
|
350
|
+
})]
|
|
351
|
+
}),
|
|
352
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
353
|
+
className: classMap.row,
|
|
354
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
355
|
+
className: classMap.field,
|
|
356
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
357
|
+
className: classMap.fieldLabel,
|
|
358
|
+
children: t("field.baseURL")
|
|
359
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
360
|
+
className: classMap.input,
|
|
361
|
+
value: activeProvider.baseURL,
|
|
362
|
+
placeholder: t("field.baseURL.placeholder"),
|
|
363
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : patchActiveProvider(prev, { baseURL: e.target.value }))
|
|
364
|
+
})]
|
|
365
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
366
|
+
className: classMap.field,
|
|
367
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
368
|
+
className: classMap.fieldLabel,
|
|
369
|
+
children: t("field.apiKeyEnv")
|
|
370
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
371
|
+
className: classMap.input,
|
|
372
|
+
value: activeProvider.apiKeyEnv ?? "",
|
|
373
|
+
placeholder: t("field.apiKeyEnv.placeholder"),
|
|
374
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : patchActiveProvider(prev, { apiKeyEnv: e.target.value || void 0 }))
|
|
375
|
+
})]
|
|
376
|
+
})]
|
|
377
|
+
}),
|
|
378
|
+
activeProvider.type === "self-hosted-v2" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
379
|
+
className: classMap.row,
|
|
380
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
381
|
+
className: classMap.checkboxField,
|
|
382
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
383
|
+
type: "checkbox",
|
|
384
|
+
checked: activeProvider.allowInsecureHttp,
|
|
385
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : patchActiveProvider(prev, { allowInsecureHttp: e.target.checked }))
|
|
386
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
387
|
+
className: classMap.checkboxLabel,
|
|
388
|
+
children: t("field.allowInsecureHttp")
|
|
389
|
+
})]
|
|
390
|
+
})
|
|
391
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
392
|
+
className: classMap.row,
|
|
393
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
394
|
+
className: classMap.field,
|
|
395
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
396
|
+
className: classMap.fieldLabel,
|
|
397
|
+
children: t("field.modelMap.pipeline")
|
|
398
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
399
|
+
className: classMap.input,
|
|
400
|
+
value: activeProvider.modelMap.pipeline,
|
|
401
|
+
onChange: (e) => {
|
|
402
|
+
const currentMap = activeProvider.modelMap;
|
|
403
|
+
setDraft((prev) => prev === null ? prev : patchActiveProvider(prev, { modelMap: {
|
|
404
|
+
...currentMap,
|
|
405
|
+
pipeline: e.target.value
|
|
406
|
+
} }));
|
|
407
|
+
}
|
|
408
|
+
})]
|
|
409
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
410
|
+
className: classMap.field,
|
|
411
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
412
|
+
className: classMap.fieldLabel,
|
|
413
|
+
children: t("field.modelMap.vlm")
|
|
414
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
415
|
+
className: classMap.input,
|
|
416
|
+
value: activeProvider.modelMap.vlm,
|
|
417
|
+
onChange: (e) => {
|
|
418
|
+
const currentMap = activeProvider.modelMap;
|
|
419
|
+
setDraft((prev) => prev === null ? prev : patchActiveProvider(prev, { modelMap: {
|
|
420
|
+
...currentMap,
|
|
421
|
+
vlm: e.target.value
|
|
422
|
+
} }));
|
|
423
|
+
}
|
|
424
|
+
})]
|
|
425
|
+
})]
|
|
426
|
+
})] }),
|
|
427
|
+
activeProvider.type === "official-v4" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
428
|
+
className: classMap.field,
|
|
429
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
430
|
+
className: classMap.fieldLabel,
|
|
431
|
+
children: t("field.officialModels")
|
|
432
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
433
|
+
className: classMap.checkboxGroup,
|
|
434
|
+
children: ["pipeline", "vlm"].map((m) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
435
|
+
className: classMap.checkboxOption,
|
|
436
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
437
|
+
type: "checkbox",
|
|
438
|
+
checked: activeProvider.models.includes(m),
|
|
439
|
+
onChange: () => toggleOfficialModel(m)
|
|
440
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(m === "pipeline" ? "model.pipeline" : "model.vlm") })]
|
|
441
|
+
}, m))
|
|
442
|
+
})]
|
|
443
|
+
})
|
|
444
|
+
]
|
|
445
|
+
}),
|
|
446
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
447
|
+
className: classMap.editorGroup,
|
|
448
|
+
children: [
|
|
449
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
450
|
+
className: classMap.groupTitle,
|
|
451
|
+
children: t("section.defaults")
|
|
452
|
+
}),
|
|
453
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
454
|
+
className: classMap.row,
|
|
455
|
+
children: [
|
|
456
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
457
|
+
className: classMap.field,
|
|
458
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
459
|
+
className: classMap.fieldLabel,
|
|
460
|
+
children: t("field.defaultModel")
|
|
461
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
462
|
+
className: classMap.select,
|
|
463
|
+
value: draft.defaults.model,
|
|
464
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "defaults", { model: e.target.value })),
|
|
465
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
466
|
+
value: "pipeline",
|
|
467
|
+
children: t("model.pipeline")
|
|
468
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
469
|
+
value: "vlm",
|
|
470
|
+
children: t("model.vlm")
|
|
471
|
+
})]
|
|
472
|
+
})]
|
|
473
|
+
}),
|
|
474
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
475
|
+
className: classMap.field,
|
|
476
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
477
|
+
className: classMap.fieldLabel,
|
|
478
|
+
children: t("field.defaultParseMethod")
|
|
479
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
480
|
+
className: classMap.select,
|
|
481
|
+
value: draft.defaults.parseMethod,
|
|
482
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "defaults", {
|
|
483
|
+
parseMethod: e.target.value,
|
|
484
|
+
ocr: e.target.value === "ocr"
|
|
485
|
+
})),
|
|
486
|
+
children: [
|
|
487
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
488
|
+
value: "auto",
|
|
489
|
+
children: t("parse.auto")
|
|
490
|
+
}),
|
|
491
|
+
activeProvider.type === "self-hosted-v2" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
492
|
+
value: "txt",
|
|
493
|
+
children: t("parse.txt")
|
|
494
|
+
}),
|
|
495
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
496
|
+
value: "ocr",
|
|
497
|
+
children: t("parse.ocr")
|
|
498
|
+
})
|
|
499
|
+
]
|
|
500
|
+
})]
|
|
501
|
+
}),
|
|
502
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
503
|
+
className: classMap.field,
|
|
504
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
505
|
+
className: classMap.fieldLabel,
|
|
506
|
+
children: t("field.defaultLang")
|
|
507
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
508
|
+
className: classMap.input,
|
|
509
|
+
value: draft.defaults.language,
|
|
510
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "defaults", { language: e.target.value }))
|
|
511
|
+
})]
|
|
512
|
+
})
|
|
513
|
+
]
|
|
514
|
+
}),
|
|
515
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
516
|
+
className: classMap.row,
|
|
517
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
518
|
+
className: classMap.checkboxField,
|
|
519
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
520
|
+
type: "checkbox",
|
|
521
|
+
checked: draft.defaults.formula,
|
|
522
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "defaults", { formula: e.target.checked }))
|
|
523
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
524
|
+
className: classMap.checkboxLabel,
|
|
525
|
+
children: t("field.defaultFormula")
|
|
526
|
+
})]
|
|
527
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
528
|
+
className: classMap.checkboxField,
|
|
529
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
530
|
+
type: "checkbox",
|
|
531
|
+
checked: draft.defaults.table,
|
|
532
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "defaults", { table: e.target.checked }))
|
|
533
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
534
|
+
className: classMap.checkboxLabel,
|
|
535
|
+
children: t("field.defaultTable")
|
|
536
|
+
})]
|
|
537
|
+
})]
|
|
538
|
+
}),
|
|
539
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
540
|
+
className: classMap.field,
|
|
541
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
542
|
+
className: classMap.fieldLabel,
|
|
543
|
+
children: t("field.defaultArtifacts")
|
|
544
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
545
|
+
className: classMap.checkboxGroup,
|
|
546
|
+
children: ALL_ARTIFACT_KINDS.map((kind) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
547
|
+
className: classMap.checkboxOption,
|
|
548
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
549
|
+
type: "checkbox",
|
|
550
|
+
checked: draft.defaults.artifacts.includes(kind),
|
|
551
|
+
disabled: kind === "markdown",
|
|
552
|
+
onChange: () => toggleArtifact(kind)
|
|
553
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(`artifact.${kind}`) })]
|
|
554
|
+
}, kind))
|
|
555
|
+
})]
|
|
556
|
+
})
|
|
557
|
+
]
|
|
558
|
+
}),
|
|
559
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
560
|
+
className: classMap.editorGroup,
|
|
561
|
+
children: [
|
|
562
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
563
|
+
className: classMap.groupTitle,
|
|
564
|
+
children: t("section.storage")
|
|
565
|
+
}),
|
|
566
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
567
|
+
className: classMap.row,
|
|
568
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
569
|
+
className: classMap.field,
|
|
570
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
571
|
+
className: classMap.fieldLabel,
|
|
572
|
+
children: t("field.storageRoot")
|
|
573
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
574
|
+
className: classMap.input,
|
|
575
|
+
value: draft.storage.storageRoot,
|
|
576
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "storage", { storageRoot: e.target.value }))
|
|
577
|
+
})]
|
|
578
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
579
|
+
className: classMap.field,
|
|
580
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
581
|
+
className: classMap.fieldLabel,
|
|
582
|
+
children: t("field.stagingTtlMs")
|
|
583
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
584
|
+
className: classMap.input,
|
|
585
|
+
type: "number",
|
|
586
|
+
value: draft.storage.stagingTtlMs,
|
|
587
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "storage", { stagingTtlMs: Number(e.target.value) }))
|
|
588
|
+
})]
|
|
589
|
+
})]
|
|
590
|
+
}),
|
|
591
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
592
|
+
className: classMap.row,
|
|
593
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
594
|
+
className: classMap.checkboxField,
|
|
595
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
596
|
+
type: "checkbox",
|
|
597
|
+
checked: draft.storage.cacheEnabled,
|
|
598
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "storage", { cacheEnabled: e.target.checked }))
|
|
599
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
600
|
+
className: classMap.checkboxLabel,
|
|
601
|
+
children: t("field.cacheEnabled")
|
|
602
|
+
})]
|
|
603
|
+
})
|
|
604
|
+
})
|
|
605
|
+
]
|
|
606
|
+
}),
|
|
607
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
608
|
+
className: classMap.editorGroup,
|
|
609
|
+
children: [
|
|
610
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
611
|
+
className: classMap.groupTitle,
|
|
612
|
+
children: t("section.polling")
|
|
613
|
+
}),
|
|
614
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
615
|
+
className: classMap.row,
|
|
616
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
617
|
+
className: classMap.field,
|
|
618
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
619
|
+
className: classMap.fieldLabel,
|
|
620
|
+
children: t("field.pollIntervalMs")
|
|
621
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
622
|
+
className: classMap.input,
|
|
623
|
+
type: "number",
|
|
624
|
+
value: draft.polling.pollIntervalMs,
|
|
625
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "polling", { pollIntervalMs: Number(e.target.value) }))
|
|
626
|
+
})]
|
|
627
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
628
|
+
className: classMap.field,
|
|
629
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
630
|
+
className: classMap.fieldLabel,
|
|
631
|
+
children: t("field.pollTimeoutMs")
|
|
632
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
633
|
+
className: classMap.input,
|
|
634
|
+
type: "number",
|
|
635
|
+
value: draft.polling.pollTimeoutMs,
|
|
636
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "polling", { pollTimeoutMs: Number(e.target.value) }))
|
|
637
|
+
})]
|
|
638
|
+
})]
|
|
639
|
+
}),
|
|
640
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
641
|
+
className: classMap.row,
|
|
642
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
643
|
+
className: classMap.field,
|
|
644
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
645
|
+
className: classMap.fieldLabel,
|
|
646
|
+
children: t("field.requestTimeoutMs")
|
|
647
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
648
|
+
className: classMap.input,
|
|
649
|
+
type: "number",
|
|
650
|
+
value: draft.polling.requestTimeoutMs,
|
|
651
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "polling", { requestTimeoutMs: Number(e.target.value) }))
|
|
652
|
+
})]
|
|
653
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
654
|
+
className: classMap.field,
|
|
655
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
656
|
+
className: classMap.fieldLabel,
|
|
657
|
+
children: t("field.operationTimeoutMs")
|
|
658
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
659
|
+
className: classMap.input,
|
|
660
|
+
type: "number",
|
|
661
|
+
value: draft.polling.operationTimeoutMs,
|
|
662
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "polling", { operationTimeoutMs: Number(e.target.value) }))
|
|
663
|
+
})]
|
|
664
|
+
})]
|
|
665
|
+
})
|
|
666
|
+
]
|
|
667
|
+
}),
|
|
668
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
669
|
+
className: classMap.editorGroup,
|
|
670
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
671
|
+
className: classMap.groupTitle,
|
|
672
|
+
children: t("section.output")
|
|
673
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
674
|
+
className: classMap.row,
|
|
675
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
676
|
+
className: classMap.field,
|
|
677
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
678
|
+
className: classMap.fieldLabel,
|
|
679
|
+
children: t("field.maxInlineChars")
|
|
680
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
681
|
+
className: classMap.input,
|
|
682
|
+
type: "number",
|
|
683
|
+
value: draft.output.maxInlineChars,
|
|
684
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "output", { maxInlineChars: Number(e.target.value) }))
|
|
685
|
+
})]
|
|
686
|
+
})
|
|
687
|
+
})]
|
|
688
|
+
}),
|
|
689
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
690
|
+
className: classMap.editorGroup,
|
|
691
|
+
children: [
|
|
692
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
693
|
+
className: classMap.groupTitle,
|
|
694
|
+
children: t("section.limits")
|
|
695
|
+
}),
|
|
696
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
697
|
+
className: classMap.row,
|
|
698
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
699
|
+
className: classMap.field,
|
|
700
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
701
|
+
className: classMap.fieldLabel,
|
|
702
|
+
children: t("field.maxFilesPerRequest")
|
|
703
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
704
|
+
className: classMap.input,
|
|
705
|
+
type: "number",
|
|
706
|
+
value: draft.limits.maxFilesPerRequest,
|
|
707
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "limits", { maxFilesPerRequest: Number(e.target.value) }))
|
|
708
|
+
})]
|
|
709
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
710
|
+
className: classMap.field,
|
|
711
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
712
|
+
className: classMap.fieldLabel,
|
|
713
|
+
children: t("field.maxFileBytes")
|
|
714
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
715
|
+
className: classMap.input,
|
|
716
|
+
type: "number",
|
|
717
|
+
value: draft.limits.maxFileBytes,
|
|
718
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "limits", { maxFileBytes: Number(e.target.value) }))
|
|
719
|
+
})]
|
|
720
|
+
})]
|
|
721
|
+
}),
|
|
722
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
723
|
+
className: classMap.row,
|
|
724
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
725
|
+
className: classMap.field,
|
|
726
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
727
|
+
className: classMap.fieldLabel,
|
|
728
|
+
children: t("field.maxApiResponseBytes")
|
|
729
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
730
|
+
className: classMap.input,
|
|
731
|
+
type: "number",
|
|
732
|
+
value: draft.limits.maxApiResponseBytes,
|
|
733
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "limits", { maxApiResponseBytes: Number(e.target.value) }))
|
|
734
|
+
})]
|
|
735
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
736
|
+
className: classMap.field,
|
|
737
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
738
|
+
className: classMap.fieldLabel,
|
|
739
|
+
children: t("field.maxZipDownloadBytes")
|
|
740
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
741
|
+
className: classMap.input,
|
|
742
|
+
type: "number",
|
|
743
|
+
value: draft.limits.maxZipDownloadBytes,
|
|
744
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "limits", { maxZipDownloadBytes: Number(e.target.value) }))
|
|
745
|
+
})]
|
|
746
|
+
})]
|
|
747
|
+
}),
|
|
748
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
749
|
+
className: classMap.row,
|
|
750
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
751
|
+
className: classMap.field,
|
|
752
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
753
|
+
className: classMap.fieldLabel,
|
|
754
|
+
children: t("field.maxZipEntries")
|
|
755
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
756
|
+
className: classMap.input,
|
|
757
|
+
type: "number",
|
|
758
|
+
value: draft.limits.maxZipEntries,
|
|
759
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "limits", { maxZipEntries: Number(e.target.value) }))
|
|
760
|
+
})]
|
|
761
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
762
|
+
className: classMap.field,
|
|
763
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
764
|
+
className: classMap.fieldLabel,
|
|
765
|
+
children: t("field.maxZipEntryBytes")
|
|
766
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
767
|
+
className: classMap.input,
|
|
768
|
+
type: "number",
|
|
769
|
+
value: draft.limits.maxZipEntryBytes,
|
|
770
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "limits", { maxZipEntryBytes: Number(e.target.value) }))
|
|
771
|
+
})]
|
|
772
|
+
})]
|
|
773
|
+
}),
|
|
774
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
775
|
+
className: classMap.row,
|
|
776
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
777
|
+
className: classMap.field,
|
|
778
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
779
|
+
className: classMap.fieldLabel,
|
|
780
|
+
children: t("field.maxZipTotalBytes")
|
|
781
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
782
|
+
className: classMap.input,
|
|
783
|
+
type: "number",
|
|
784
|
+
value: draft.limits.maxZipTotalBytes,
|
|
785
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "limits", { maxZipTotalBytes: Number(e.target.value) }))
|
|
786
|
+
})]
|
|
787
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
788
|
+
className: classMap.field,
|
|
789
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
790
|
+
className: classMap.fieldLabel,
|
|
791
|
+
children: t("field.maxZipCompressionRatio")
|
|
792
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
793
|
+
className: classMap.input,
|
|
794
|
+
type: "number",
|
|
795
|
+
value: draft.limits.maxZipCompressionRatio,
|
|
796
|
+
onChange: (e) => setDraft((prev) => prev === null ? prev : updateConfigSection(prev, "limits", { maxZipCompressionRatio: Number(e.target.value) }))
|
|
797
|
+
})]
|
|
798
|
+
})]
|
|
799
|
+
})
|
|
800
|
+
]
|
|
801
|
+
})
|
|
802
|
+
]
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
//#endregion
|
|
806
|
+
//#region src/client/locales.ts
|
|
807
|
+
const NS = "dsh-pdf-mineru";
|
|
808
|
+
const en = {
|
|
809
|
+
"nav": "MinerU",
|
|
810
|
+
"page.title": "MinerU Configuration",
|
|
811
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
812
|
+
"section.provider": "Provider Settings",
|
|
813
|
+
"section.defaults": "Parsing Defaults",
|
|
814
|
+
"section.storage": "Storage & Cache",
|
|
815
|
+
"section.polling": "Polling & Timeouts",
|
|
816
|
+
"section.output": "Output Limits",
|
|
817
|
+
"section.limits": "Security & Payload Limits",
|
|
818
|
+
"field.activeProvider": "Active Provider",
|
|
819
|
+
"field.providerType": "Provider Type",
|
|
820
|
+
"field.baseURL": "API Base URL",
|
|
821
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
822
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
823
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
824
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
825
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
826
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
827
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
828
|
+
"field.officialModels": "Supported Cloud Models",
|
|
829
|
+
"field.defaultModel": "Default Model",
|
|
830
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
831
|
+
"field.defaultLang": "Default Language",
|
|
832
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
833
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
834
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
835
|
+
"field.storageRoot": "Storage Root Directory",
|
|
836
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
837
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
838
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
839
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
840
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
841
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
842
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
843
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
844
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
845
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
846
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
847
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
848
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
849
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
850
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
851
|
+
"action.save": "Save Configuration",
|
|
852
|
+
"action.saved": "Saved",
|
|
853
|
+
"action.test": "Test Active Provider",
|
|
854
|
+
"action.testing": "Testing…",
|
|
855
|
+
"test.healthy": "Connection Healthy",
|
|
856
|
+
"test.unhealthy": "Service Unhealthy",
|
|
857
|
+
"test.error": "Test Failed",
|
|
858
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
859
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
860
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
861
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
862
|
+
"parse.auto": "auto (Automatic detection)",
|
|
863
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
864
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
865
|
+
"artifact.markdown": "Markdown (.md)",
|
|
866
|
+
"artifact.layout": "Layout (.json)",
|
|
867
|
+
"artifact.model-output": "Model Output (.json)",
|
|
868
|
+
"artifact.content-list": "Content List (.json)",
|
|
869
|
+
"artifact.images": "Extracted Images"
|
|
870
|
+
};
|
|
871
|
+
const zh = {
|
|
872
|
+
"nav": "MinerU",
|
|
873
|
+
"page.title": "MinerU 配置",
|
|
874
|
+
"page.intro": "配置 MinerU 文档解析 Provider、全局内容寻址缓存及执行资源上限。",
|
|
875
|
+
"section.provider": "Provider 适配与鉴权",
|
|
876
|
+
"section.defaults": "统一解析默认值",
|
|
877
|
+
"section.storage": "存储与全局缓存",
|
|
878
|
+
"section.polling": "轮询与超时控制",
|
|
879
|
+
"section.output": "模型输出限制",
|
|
880
|
+
"section.limits": "安全与资源上限",
|
|
881
|
+
"field.activeProvider": "当前激活的 Provider",
|
|
882
|
+
"field.providerType": "Provider 类型",
|
|
883
|
+
"field.baseURL": "API 服务地址",
|
|
884
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 或 http://localhost:18000",
|
|
885
|
+
"field.apiKeyEnv": "API Key 环境变量名",
|
|
886
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
887
|
+
"field.allowInsecureHttp": "允许非加密 HTTP 连接",
|
|
888
|
+
"field.configuredVersion": "服务端协议版本标识",
|
|
889
|
+
"field.modelMap.pipeline": "Pipeline 模型后端映射",
|
|
890
|
+
"field.modelMap.vlm": "VLM 模型后端映射",
|
|
891
|
+
"field.officialModels": "云服务支持模型",
|
|
892
|
+
"field.defaultModel": "默认解析模型",
|
|
893
|
+
"field.defaultParseMethod": "默认解析方式",
|
|
894
|
+
"field.defaultLang": "默认语言",
|
|
895
|
+
"field.defaultFormula": "开启公式解析",
|
|
896
|
+
"field.defaultTable": "开启表格解析",
|
|
897
|
+
"field.defaultArtifacts": "默认必要产物",
|
|
898
|
+
"field.storageRoot": "持久存储根目录",
|
|
899
|
+
"field.cacheEnabled": "启用全局内容寻址缓存",
|
|
900
|
+
"field.stagingTtlMs": "Staging 暂存清理 TTL (ms)",
|
|
901
|
+
"field.pollIntervalMs": "状态轮询间隔 (ms)",
|
|
902
|
+
"field.pollTimeoutMs": "同步等待解析超时 (ms)",
|
|
903
|
+
"field.requestTimeoutMs": "单次网络请求超时 (ms)",
|
|
904
|
+
"field.operationTimeoutMs": "单进程共享操作超时 (ms)",
|
|
905
|
+
"field.maxInlineChars": "Markdown 预览字符上限",
|
|
906
|
+
"field.maxFilesPerRequest": "单次请求最大文件数",
|
|
907
|
+
"field.maxFileBytes": "单个源文件大小上限 (bytes)",
|
|
908
|
+
"field.maxApiResponseBytes": "API 响应体大小上限 (bytes)",
|
|
909
|
+
"field.maxZipDownloadBytes": "ZIP 下载包大小上限 (bytes)",
|
|
910
|
+
"field.maxZipEntries": "ZIP 最大解压条目数",
|
|
911
|
+
"field.maxZipEntryBytes": "ZIP 单条目解压字节上限 (bytes)",
|
|
912
|
+
"field.maxZipTotalBytes": "ZIP 总解压字节上限 (bytes)",
|
|
913
|
+
"field.maxZipCompressionRatio": "ZIP 最大解压压缩比",
|
|
914
|
+
"action.save": "保存配置",
|
|
915
|
+
"action.saved": "已保存",
|
|
916
|
+
"action.test": "测试当前 Provider 连接",
|
|
917
|
+
"action.testing": "测试中…",
|
|
918
|
+
"test.healthy": "连接正常",
|
|
919
|
+
"test.unhealthy": "服务状态异常",
|
|
920
|
+
"test.error": "连接测试失败",
|
|
921
|
+
"provider.type.selfHosted": "自托管 MinerU (v2 API)",
|
|
922
|
+
"provider.type.official": "官方云服务 MinerU (v4 API)",
|
|
923
|
+
"model.pipeline": "Pipeline(无幻觉,支持多语言 OCR)",
|
|
924
|
+
"model.vlm": "VLM(视觉大模型)",
|
|
925
|
+
"parse.auto": "auto(自动检测)",
|
|
926
|
+
"parse.txt": "txt(纯文本提取,速度快)",
|
|
927
|
+
"parse.ocr": "ocr(强制文字 OCR)",
|
|
928
|
+
"artifact.markdown": "Markdown 文本 (.md)",
|
|
929
|
+
"artifact.layout": "版面分析 (.json)",
|
|
930
|
+
"artifact.model-output": "模型输出 (.json)",
|
|
931
|
+
"artifact.content-list": "结构化内容块 (.json)",
|
|
932
|
+
"artifact.images": "提取图片"
|
|
933
|
+
};
|
|
934
|
+
//#endregion
|
|
935
|
+
//#region src/client/dictionaries.ts
|
|
936
|
+
const dicts = {
|
|
937
|
+
"ja": {
|
|
938
|
+
"nav": "MinerU",
|
|
939
|
+
"page.title": "MinerU Configuration",
|
|
940
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
941
|
+
"section.provider": "Provider Settings",
|
|
942
|
+
"section.defaults": "Parsing Defaults",
|
|
943
|
+
"section.storage": "Storage & Cache",
|
|
944
|
+
"section.polling": "Polling & Timeouts",
|
|
945
|
+
"section.output": "Output Limits",
|
|
946
|
+
"section.limits": "Security & Payload Limits",
|
|
947
|
+
"field.activeProvider": "Active Provider",
|
|
948
|
+
"field.providerType": "Provider Type",
|
|
949
|
+
"field.baseURL": "API Base URL",
|
|
950
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
951
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
952
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
953
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
954
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
955
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
956
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
957
|
+
"field.officialModels": "Supported Cloud Models",
|
|
958
|
+
"field.defaultModel": "Default Model",
|
|
959
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
960
|
+
"field.defaultLang": "Default Language",
|
|
961
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
962
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
963
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
964
|
+
"field.storageRoot": "Storage Root Directory",
|
|
965
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
966
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
967
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
968
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
969
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
970
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
971
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
972
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
973
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
974
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
975
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
976
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
977
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
978
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
979
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
980
|
+
"action.save": "Save Configuration",
|
|
981
|
+
"action.saved": "Saved",
|
|
982
|
+
"action.test": "Test Active Provider",
|
|
983
|
+
"action.testing": "Testing…",
|
|
984
|
+
"test.healthy": "Connection Healthy",
|
|
985
|
+
"test.unhealthy": "Service Unhealthy",
|
|
986
|
+
"test.error": "Test Failed",
|
|
987
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
988
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
989
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
990
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
991
|
+
"parse.auto": "auto (Automatic detection)",
|
|
992
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
993
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
994
|
+
"artifact.markdown": "Markdown (.md)",
|
|
995
|
+
"artifact.layout": "Layout (.json)",
|
|
996
|
+
"artifact.model-output": "Model Output (.json)",
|
|
997
|
+
"artifact.content-list": "Content List (.json)",
|
|
998
|
+
"artifact.images": "Extracted Images"
|
|
999
|
+
},
|
|
1000
|
+
"de": {
|
|
1001
|
+
"nav": "MinerU",
|
|
1002
|
+
"page.title": "MinerU Configuration",
|
|
1003
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1004
|
+
"section.provider": "Provider Settings",
|
|
1005
|
+
"section.defaults": "Parsing Defaults",
|
|
1006
|
+
"section.storage": "Storage & Cache",
|
|
1007
|
+
"section.polling": "Polling & Timeouts",
|
|
1008
|
+
"section.output": "Output Limits",
|
|
1009
|
+
"section.limits": "Security & Payload Limits",
|
|
1010
|
+
"field.activeProvider": "Active Provider",
|
|
1011
|
+
"field.providerType": "Provider Type",
|
|
1012
|
+
"field.baseURL": "API Base URL",
|
|
1013
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1014
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1015
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1016
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1017
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1018
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1019
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1020
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1021
|
+
"field.defaultModel": "Default Model",
|
|
1022
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1023
|
+
"field.defaultLang": "Default Language",
|
|
1024
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1025
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1026
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1027
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1028
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1029
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1030
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1031
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1032
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1033
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1034
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1035
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1036
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1037
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1038
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1039
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1040
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1041
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1042
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1043
|
+
"action.save": "Save Configuration",
|
|
1044
|
+
"action.saved": "Saved",
|
|
1045
|
+
"action.test": "Test Active Provider",
|
|
1046
|
+
"action.testing": "Testing…",
|
|
1047
|
+
"test.healthy": "Connection Healthy",
|
|
1048
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1049
|
+
"test.error": "Test Failed",
|
|
1050
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1051
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1052
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1053
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1054
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1055
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1056
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1057
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1058
|
+
"artifact.layout": "Layout (.json)",
|
|
1059
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1060
|
+
"artifact.content-list": "Content List (.json)",
|
|
1061
|
+
"artifact.images": "Extracted Images"
|
|
1062
|
+
},
|
|
1063
|
+
"fr": {
|
|
1064
|
+
"nav": "MinerU",
|
|
1065
|
+
"page.title": "MinerU Configuration",
|
|
1066
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1067
|
+
"section.provider": "Provider Settings",
|
|
1068
|
+
"section.defaults": "Parsing Defaults",
|
|
1069
|
+
"section.storage": "Storage & Cache",
|
|
1070
|
+
"section.polling": "Polling & Timeouts",
|
|
1071
|
+
"section.output": "Output Limits",
|
|
1072
|
+
"section.limits": "Security & Payload Limits",
|
|
1073
|
+
"field.activeProvider": "Active Provider",
|
|
1074
|
+
"field.providerType": "Provider Type",
|
|
1075
|
+
"field.baseURL": "API Base URL",
|
|
1076
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1077
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1078
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1079
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1080
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1081
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1082
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1083
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1084
|
+
"field.defaultModel": "Default Model",
|
|
1085
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1086
|
+
"field.defaultLang": "Default Language",
|
|
1087
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1088
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1089
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1090
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1091
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1092
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1093
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1094
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1095
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1096
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1097
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1098
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1099
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1100
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1101
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1102
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1103
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1104
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1105
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1106
|
+
"action.save": "Save Configuration",
|
|
1107
|
+
"action.saved": "Saved",
|
|
1108
|
+
"action.test": "Test Active Provider",
|
|
1109
|
+
"action.testing": "Testing…",
|
|
1110
|
+
"test.healthy": "Connection Healthy",
|
|
1111
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1112
|
+
"test.error": "Test Failed",
|
|
1113
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1114
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1115
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1116
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1117
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1118
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1119
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1120
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1121
|
+
"artifact.layout": "Layout (.json)",
|
|
1122
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1123
|
+
"artifact.content-list": "Content List (.json)",
|
|
1124
|
+
"artifact.images": "Extracted Images"
|
|
1125
|
+
},
|
|
1126
|
+
"pt": {
|
|
1127
|
+
"nav": "MinerU",
|
|
1128
|
+
"page.title": "MinerU Configuration",
|
|
1129
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1130
|
+
"section.provider": "Provider Settings",
|
|
1131
|
+
"section.defaults": "Parsing Defaults",
|
|
1132
|
+
"section.storage": "Storage & Cache",
|
|
1133
|
+
"section.polling": "Polling & Timeouts",
|
|
1134
|
+
"section.output": "Output Limits",
|
|
1135
|
+
"section.limits": "Security & Payload Limits",
|
|
1136
|
+
"field.activeProvider": "Active Provider",
|
|
1137
|
+
"field.providerType": "Provider Type",
|
|
1138
|
+
"field.baseURL": "API Base URL",
|
|
1139
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1140
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1141
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1142
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1143
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1144
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1145
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1146
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1147
|
+
"field.defaultModel": "Default Model",
|
|
1148
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1149
|
+
"field.defaultLang": "Default Language",
|
|
1150
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1151
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1152
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1153
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1154
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1155
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1156
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1157
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1158
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1159
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1160
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1161
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1162
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1163
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1164
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1165
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1166
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1167
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1168
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1169
|
+
"action.save": "Save Configuration",
|
|
1170
|
+
"action.saved": "Saved",
|
|
1171
|
+
"action.test": "Test Active Provider",
|
|
1172
|
+
"action.testing": "Testing…",
|
|
1173
|
+
"test.healthy": "Connection Healthy",
|
|
1174
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1175
|
+
"test.error": "Test Failed",
|
|
1176
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1177
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1178
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1179
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1180
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1181
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1182
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1183
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1184
|
+
"artifact.layout": "Layout (.json)",
|
|
1185
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1186
|
+
"artifact.content-list": "Content List (.json)",
|
|
1187
|
+
"artifact.images": "Extracted Images"
|
|
1188
|
+
},
|
|
1189
|
+
"ko": {
|
|
1190
|
+
"nav": "MinerU",
|
|
1191
|
+
"page.title": "MinerU Configuration",
|
|
1192
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1193
|
+
"section.provider": "Provider Settings",
|
|
1194
|
+
"section.defaults": "Parsing Defaults",
|
|
1195
|
+
"section.storage": "Storage & Cache",
|
|
1196
|
+
"section.polling": "Polling & Timeouts",
|
|
1197
|
+
"section.output": "Output Limits",
|
|
1198
|
+
"section.limits": "Security & Payload Limits",
|
|
1199
|
+
"field.activeProvider": "Active Provider",
|
|
1200
|
+
"field.providerType": "Provider Type",
|
|
1201
|
+
"field.baseURL": "API Base URL",
|
|
1202
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1203
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1204
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1205
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1206
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1207
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1208
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1209
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1210
|
+
"field.defaultModel": "Default Model",
|
|
1211
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1212
|
+
"field.defaultLang": "Default Language",
|
|
1213
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1214
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1215
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1216
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1217
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1218
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1219
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1220
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1221
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1222
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1223
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1224
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1225
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1226
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1227
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1228
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1229
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1230
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1231
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1232
|
+
"action.save": "Save Configuration",
|
|
1233
|
+
"action.saved": "Saved",
|
|
1234
|
+
"action.test": "Test Active Provider",
|
|
1235
|
+
"action.testing": "Testing…",
|
|
1236
|
+
"test.healthy": "Connection Healthy",
|
|
1237
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1238
|
+
"test.error": "Test Failed",
|
|
1239
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1240
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1241
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1242
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1243
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1244
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1245
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1246
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1247
|
+
"artifact.layout": "Layout (.json)",
|
|
1248
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1249
|
+
"artifact.content-list": "Content List (.json)",
|
|
1250
|
+
"artifact.images": "Extracted Images"
|
|
1251
|
+
},
|
|
1252
|
+
"ar": {
|
|
1253
|
+
"nav": "MinerU",
|
|
1254
|
+
"page.title": "MinerU Configuration",
|
|
1255
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1256
|
+
"section.provider": "Provider Settings",
|
|
1257
|
+
"section.defaults": "Parsing Defaults",
|
|
1258
|
+
"section.storage": "Storage & Cache",
|
|
1259
|
+
"section.polling": "Polling & Timeouts",
|
|
1260
|
+
"section.output": "Output Limits",
|
|
1261
|
+
"section.limits": "Security & Payload Limits",
|
|
1262
|
+
"field.activeProvider": "Active Provider",
|
|
1263
|
+
"field.providerType": "Provider Type",
|
|
1264
|
+
"field.baseURL": "API Base URL",
|
|
1265
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1266
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1267
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1268
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1269
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1270
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1271
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1272
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1273
|
+
"field.defaultModel": "Default Model",
|
|
1274
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1275
|
+
"field.defaultLang": "Default Language",
|
|
1276
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1277
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1278
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1279
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1280
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1281
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1282
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1283
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1284
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1285
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1286
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1287
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1288
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1289
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1290
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1291
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1292
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1293
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1294
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1295
|
+
"action.save": "Save Configuration",
|
|
1296
|
+
"action.saved": "Saved",
|
|
1297
|
+
"action.test": "Test Active Provider",
|
|
1298
|
+
"action.testing": "Testing…",
|
|
1299
|
+
"test.healthy": "Connection Healthy",
|
|
1300
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1301
|
+
"test.error": "Test Failed",
|
|
1302
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1303
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1304
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1305
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1306
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1307
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1308
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1309
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1310
|
+
"artifact.layout": "Layout (.json)",
|
|
1311
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1312
|
+
"artifact.content-list": "Content List (.json)",
|
|
1313
|
+
"artifact.images": "Extracted Images"
|
|
1314
|
+
},
|
|
1315
|
+
"hi": {
|
|
1316
|
+
"nav": "MinerU",
|
|
1317
|
+
"page.title": "MinerU Configuration",
|
|
1318
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1319
|
+
"section.provider": "Provider Settings",
|
|
1320
|
+
"section.defaults": "Parsing Defaults",
|
|
1321
|
+
"section.storage": "Storage & Cache",
|
|
1322
|
+
"section.polling": "Polling & Timeouts",
|
|
1323
|
+
"section.output": "Output Limits",
|
|
1324
|
+
"section.limits": "Security & Payload Limits",
|
|
1325
|
+
"field.activeProvider": "Active Provider",
|
|
1326
|
+
"field.providerType": "Provider Type",
|
|
1327
|
+
"field.baseURL": "API Base URL",
|
|
1328
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1329
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1330
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1331
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1332
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1333
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1334
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1335
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1336
|
+
"field.defaultModel": "Default Model",
|
|
1337
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1338
|
+
"field.defaultLang": "Default Language",
|
|
1339
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1340
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1341
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1342
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1343
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1344
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1345
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1346
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1347
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1348
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1349
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1350
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1351
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1352
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1353
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1354
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1355
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1356
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1357
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1358
|
+
"action.save": "Save Configuration",
|
|
1359
|
+
"action.saved": "Saved",
|
|
1360
|
+
"action.test": "Test Active Provider",
|
|
1361
|
+
"action.testing": "Testing…",
|
|
1362
|
+
"test.healthy": "Connection Healthy",
|
|
1363
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1364
|
+
"test.error": "Test Failed",
|
|
1365
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1366
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1367
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1368
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1369
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1370
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1371
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1372
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1373
|
+
"artifact.layout": "Layout (.json)",
|
|
1374
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1375
|
+
"artifact.content-list": "Content List (.json)",
|
|
1376
|
+
"artifact.images": "Extracted Images"
|
|
1377
|
+
},
|
|
1378
|
+
"id": {
|
|
1379
|
+
"nav": "MinerU",
|
|
1380
|
+
"page.title": "MinerU Configuration",
|
|
1381
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1382
|
+
"section.provider": "Provider Settings",
|
|
1383
|
+
"section.defaults": "Parsing Defaults",
|
|
1384
|
+
"section.storage": "Storage & Cache",
|
|
1385
|
+
"section.polling": "Polling & Timeouts",
|
|
1386
|
+
"section.output": "Output Limits",
|
|
1387
|
+
"section.limits": "Security & Payload Limits",
|
|
1388
|
+
"field.activeProvider": "Active Provider",
|
|
1389
|
+
"field.providerType": "Provider Type",
|
|
1390
|
+
"field.baseURL": "API Base URL",
|
|
1391
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1392
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1393
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1394
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1395
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1396
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1397
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1398
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1399
|
+
"field.defaultModel": "Default Model",
|
|
1400
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1401
|
+
"field.defaultLang": "Default Language",
|
|
1402
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1403
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1404
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1405
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1406
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1407
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1408
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1409
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1410
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1411
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1412
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1413
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1414
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1415
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1416
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1417
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1418
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1419
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1420
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1421
|
+
"action.save": "Save Configuration",
|
|
1422
|
+
"action.saved": "Saved",
|
|
1423
|
+
"action.test": "Test Active Provider",
|
|
1424
|
+
"action.testing": "Testing…",
|
|
1425
|
+
"test.healthy": "Connection Healthy",
|
|
1426
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1427
|
+
"test.error": "Test Failed",
|
|
1428
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1429
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1430
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1431
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1432
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1433
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1434
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1435
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1436
|
+
"artifact.layout": "Layout (.json)",
|
|
1437
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1438
|
+
"artifact.content-list": "Content List (.json)",
|
|
1439
|
+
"artifact.images": "Extracted Images"
|
|
1440
|
+
},
|
|
1441
|
+
"tr": {
|
|
1442
|
+
"nav": "MinerU",
|
|
1443
|
+
"page.title": "MinerU Configuration",
|
|
1444
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1445
|
+
"section.provider": "Provider Settings",
|
|
1446
|
+
"section.defaults": "Parsing Defaults",
|
|
1447
|
+
"section.storage": "Storage & Cache",
|
|
1448
|
+
"section.polling": "Polling & Timeouts",
|
|
1449
|
+
"section.output": "Output Limits",
|
|
1450
|
+
"section.limits": "Security & Payload Limits",
|
|
1451
|
+
"field.activeProvider": "Active Provider",
|
|
1452
|
+
"field.providerType": "Provider Type",
|
|
1453
|
+
"field.baseURL": "API Base URL",
|
|
1454
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1455
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1456
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1457
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1458
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1459
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1460
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1461
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1462
|
+
"field.defaultModel": "Default Model",
|
|
1463
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1464
|
+
"field.defaultLang": "Default Language",
|
|
1465
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1466
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1467
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1468
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1469
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1470
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1471
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1472
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1473
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1474
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1475
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1476
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1477
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1478
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1479
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1480
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1481
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1482
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1483
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1484
|
+
"action.save": "Save Configuration",
|
|
1485
|
+
"action.saved": "Saved",
|
|
1486
|
+
"action.test": "Test Active Provider",
|
|
1487
|
+
"action.testing": "Testing…",
|
|
1488
|
+
"test.healthy": "Connection Healthy",
|
|
1489
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1490
|
+
"test.error": "Test Failed",
|
|
1491
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1492
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1493
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1494
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1495
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1496
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1497
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1498
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1499
|
+
"artifact.layout": "Layout (.json)",
|
|
1500
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1501
|
+
"artifact.content-list": "Content List (.json)",
|
|
1502
|
+
"artifact.images": "Extracted Images"
|
|
1503
|
+
},
|
|
1504
|
+
"vi": {
|
|
1505
|
+
"nav": "MinerU",
|
|
1506
|
+
"page.title": "MinerU Configuration",
|
|
1507
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1508
|
+
"section.provider": "Provider Settings",
|
|
1509
|
+
"section.defaults": "Parsing Defaults",
|
|
1510
|
+
"section.storage": "Storage & Cache",
|
|
1511
|
+
"section.polling": "Polling & Timeouts",
|
|
1512
|
+
"section.output": "Output Limits",
|
|
1513
|
+
"section.limits": "Security & Payload Limits",
|
|
1514
|
+
"field.activeProvider": "Active Provider",
|
|
1515
|
+
"field.providerType": "Provider Type",
|
|
1516
|
+
"field.baseURL": "API Base URL",
|
|
1517
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1518
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1519
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1520
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1521
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1522
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1523
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1524
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1525
|
+
"field.defaultModel": "Default Model",
|
|
1526
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1527
|
+
"field.defaultLang": "Default Language",
|
|
1528
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1529
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1530
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1531
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1532
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1533
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1534
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1535
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1536
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1537
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1538
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1539
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1540
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1541
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1542
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1543
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1544
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1545
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1546
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1547
|
+
"action.save": "Save Configuration",
|
|
1548
|
+
"action.saved": "Saved",
|
|
1549
|
+
"action.test": "Test Active Provider",
|
|
1550
|
+
"action.testing": "Testing…",
|
|
1551
|
+
"test.healthy": "Connection Healthy",
|
|
1552
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1553
|
+
"test.error": "Test Failed",
|
|
1554
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1555
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1556
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1557
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1558
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1559
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1560
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1561
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1562
|
+
"artifact.layout": "Layout (.json)",
|
|
1563
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1564
|
+
"artifact.content-list": "Content List (.json)",
|
|
1565
|
+
"artifact.images": "Extracted Images"
|
|
1566
|
+
},
|
|
1567
|
+
"th": {
|
|
1568
|
+
"nav": "MinerU",
|
|
1569
|
+
"page.title": "MinerU Configuration",
|
|
1570
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1571
|
+
"section.provider": "Provider Settings",
|
|
1572
|
+
"section.defaults": "Parsing Defaults",
|
|
1573
|
+
"section.storage": "Storage & Cache",
|
|
1574
|
+
"section.polling": "Polling & Timeouts",
|
|
1575
|
+
"section.output": "Output Limits",
|
|
1576
|
+
"section.limits": "Security & Payload Limits",
|
|
1577
|
+
"field.activeProvider": "Active Provider",
|
|
1578
|
+
"field.providerType": "Provider Type",
|
|
1579
|
+
"field.baseURL": "API Base URL",
|
|
1580
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1581
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1582
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1583
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1584
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1585
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1586
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1587
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1588
|
+
"field.defaultModel": "Default Model",
|
|
1589
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1590
|
+
"field.defaultLang": "Default Language",
|
|
1591
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1592
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1593
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1594
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1595
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1596
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1597
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1598
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1599
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1600
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1601
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1602
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1603
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1604
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1605
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1606
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1607
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1608
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1609
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1610
|
+
"action.save": "Save Configuration",
|
|
1611
|
+
"action.saved": "Saved",
|
|
1612
|
+
"action.test": "Test Active Provider",
|
|
1613
|
+
"action.testing": "Testing…",
|
|
1614
|
+
"test.healthy": "Connection Healthy",
|
|
1615
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1616
|
+
"test.error": "Test Failed",
|
|
1617
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1618
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1619
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1620
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1621
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1622
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1623
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1624
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1625
|
+
"artifact.layout": "Layout (.json)",
|
|
1626
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1627
|
+
"artifact.content-list": "Content List (.json)",
|
|
1628
|
+
"artifact.images": "Extracted Images"
|
|
1629
|
+
},
|
|
1630
|
+
"ru": {
|
|
1631
|
+
"nav": "MinerU",
|
|
1632
|
+
"page.title": "MinerU Configuration",
|
|
1633
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1634
|
+
"section.provider": "Provider Settings",
|
|
1635
|
+
"section.defaults": "Parsing Defaults",
|
|
1636
|
+
"section.storage": "Storage & Cache",
|
|
1637
|
+
"section.polling": "Polling & Timeouts",
|
|
1638
|
+
"section.output": "Output Limits",
|
|
1639
|
+
"section.limits": "Security & Payload Limits",
|
|
1640
|
+
"field.activeProvider": "Active Provider",
|
|
1641
|
+
"field.providerType": "Provider Type",
|
|
1642
|
+
"field.baseURL": "API Base URL",
|
|
1643
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1644
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1645
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1646
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1647
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1648
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1649
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1650
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1651
|
+
"field.defaultModel": "Default Model",
|
|
1652
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1653
|
+
"field.defaultLang": "Default Language",
|
|
1654
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1655
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1656
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1657
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1658
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1659
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1660
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1661
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1662
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1663
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1664
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1665
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1666
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1667
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1668
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1669
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1670
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1671
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1672
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1673
|
+
"action.save": "Save Configuration",
|
|
1674
|
+
"action.saved": "Saved",
|
|
1675
|
+
"action.test": "Test Active Provider",
|
|
1676
|
+
"action.testing": "Testing…",
|
|
1677
|
+
"test.healthy": "Connection Healthy",
|
|
1678
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1679
|
+
"test.error": "Test Failed",
|
|
1680
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1681
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1682
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1683
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1684
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1685
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1686
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1687
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1688
|
+
"artifact.layout": "Layout (.json)",
|
|
1689
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1690
|
+
"artifact.content-list": "Content List (.json)",
|
|
1691
|
+
"artifact.images": "Extracted Images"
|
|
1692
|
+
},
|
|
1693
|
+
"it": {
|
|
1694
|
+
"nav": "MinerU",
|
|
1695
|
+
"page.title": "MinerU Configuration",
|
|
1696
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1697
|
+
"section.provider": "Provider Settings",
|
|
1698
|
+
"section.defaults": "Parsing Defaults",
|
|
1699
|
+
"section.storage": "Storage & Cache",
|
|
1700
|
+
"section.polling": "Polling & Timeouts",
|
|
1701
|
+
"section.output": "Output Limits",
|
|
1702
|
+
"section.limits": "Security & Payload Limits",
|
|
1703
|
+
"field.activeProvider": "Active Provider",
|
|
1704
|
+
"field.providerType": "Provider Type",
|
|
1705
|
+
"field.baseURL": "API Base URL",
|
|
1706
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1707
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1708
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1709
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1710
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1711
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1712
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1713
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1714
|
+
"field.defaultModel": "Default Model",
|
|
1715
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1716
|
+
"field.defaultLang": "Default Language",
|
|
1717
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1718
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1719
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1720
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1721
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1722
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1723
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1724
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1725
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1726
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1727
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1728
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1729
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1730
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1731
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1732
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1733
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1734
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1735
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1736
|
+
"action.save": "Save Configuration",
|
|
1737
|
+
"action.saved": "Saved",
|
|
1738
|
+
"action.test": "Test Active Provider",
|
|
1739
|
+
"action.testing": "Testing…",
|
|
1740
|
+
"test.healthy": "Connection Healthy",
|
|
1741
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1742
|
+
"test.error": "Test Failed",
|
|
1743
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1744
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1745
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1746
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1747
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1748
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1749
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1750
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1751
|
+
"artifact.layout": "Layout (.json)",
|
|
1752
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1753
|
+
"artifact.content-list": "Content List (.json)",
|
|
1754
|
+
"artifact.images": "Extracted Images"
|
|
1755
|
+
},
|
|
1756
|
+
"nl": {
|
|
1757
|
+
"nav": "MinerU",
|
|
1758
|
+
"page.title": "MinerU Configuration",
|
|
1759
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1760
|
+
"section.provider": "Provider Settings",
|
|
1761
|
+
"section.defaults": "Parsing Defaults",
|
|
1762
|
+
"section.storage": "Storage & Cache",
|
|
1763
|
+
"section.polling": "Polling & Timeouts",
|
|
1764
|
+
"section.output": "Output Limits",
|
|
1765
|
+
"section.limits": "Security & Payload Limits",
|
|
1766
|
+
"field.activeProvider": "Active Provider",
|
|
1767
|
+
"field.providerType": "Provider Type",
|
|
1768
|
+
"field.baseURL": "API Base URL",
|
|
1769
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1770
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1771
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1772
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1773
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1774
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1775
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1776
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1777
|
+
"field.defaultModel": "Default Model",
|
|
1778
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1779
|
+
"field.defaultLang": "Default Language",
|
|
1780
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1781
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1782
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1783
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1784
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1785
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1786
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1787
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1788
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1789
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1790
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1791
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1792
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1793
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1794
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1795
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1796
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1797
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1798
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1799
|
+
"action.save": "Save Configuration",
|
|
1800
|
+
"action.saved": "Saved",
|
|
1801
|
+
"action.test": "Test Active Provider",
|
|
1802
|
+
"action.testing": "Testing…",
|
|
1803
|
+
"test.healthy": "Connection Healthy",
|
|
1804
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1805
|
+
"test.error": "Test Failed",
|
|
1806
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1807
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1808
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1809
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1810
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1811
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1812
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1813
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1814
|
+
"artifact.layout": "Layout (.json)",
|
|
1815
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1816
|
+
"artifact.content-list": "Content List (.json)",
|
|
1817
|
+
"artifact.images": "Extracted Images"
|
|
1818
|
+
},
|
|
1819
|
+
"sv": {
|
|
1820
|
+
"nav": "MinerU",
|
|
1821
|
+
"page.title": "MinerU Configuration",
|
|
1822
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1823
|
+
"section.provider": "Provider Settings",
|
|
1824
|
+
"section.defaults": "Parsing Defaults",
|
|
1825
|
+
"section.storage": "Storage & Cache",
|
|
1826
|
+
"section.polling": "Polling & Timeouts",
|
|
1827
|
+
"section.output": "Output Limits",
|
|
1828
|
+
"section.limits": "Security & Payload Limits",
|
|
1829
|
+
"field.activeProvider": "Active Provider",
|
|
1830
|
+
"field.providerType": "Provider Type",
|
|
1831
|
+
"field.baseURL": "API Base URL",
|
|
1832
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1833
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1834
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1835
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1836
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1837
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1838
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1839
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1840
|
+
"field.defaultModel": "Default Model",
|
|
1841
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1842
|
+
"field.defaultLang": "Default Language",
|
|
1843
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1844
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1845
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1846
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1847
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1848
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1849
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1850
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1851
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1852
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1853
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1854
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1855
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1856
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1857
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1858
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1859
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1860
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1861
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1862
|
+
"action.save": "Save Configuration",
|
|
1863
|
+
"action.saved": "Saved",
|
|
1864
|
+
"action.test": "Test Active Provider",
|
|
1865
|
+
"action.testing": "Testing…",
|
|
1866
|
+
"test.healthy": "Connection Healthy",
|
|
1867
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1868
|
+
"test.error": "Test Failed",
|
|
1869
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1870
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1871
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1872
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1873
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1874
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1875
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1876
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1877
|
+
"artifact.layout": "Layout (.json)",
|
|
1878
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1879
|
+
"artifact.content-list": "Content List (.json)",
|
|
1880
|
+
"artifact.images": "Extracted Images"
|
|
1881
|
+
},
|
|
1882
|
+
"pl": {
|
|
1883
|
+
"nav": "MinerU",
|
|
1884
|
+
"page.title": "MinerU Configuration",
|
|
1885
|
+
"page.intro": "Configure MinerU document parsing providers, global content-addressed caching, and execution limits.",
|
|
1886
|
+
"section.provider": "Provider Settings",
|
|
1887
|
+
"section.defaults": "Parsing Defaults",
|
|
1888
|
+
"section.storage": "Storage & Cache",
|
|
1889
|
+
"section.polling": "Polling & Timeouts",
|
|
1890
|
+
"section.output": "Output Limits",
|
|
1891
|
+
"section.limits": "Security & Payload Limits",
|
|
1892
|
+
"field.activeProvider": "Active Provider",
|
|
1893
|
+
"field.providerType": "Provider Type",
|
|
1894
|
+
"field.baseURL": "API Base URL",
|
|
1895
|
+
"field.baseURL.placeholder": "https://mineru.net/api/v4 or http://localhost:18000",
|
|
1896
|
+
"field.apiKeyEnv": "API Key Env Var",
|
|
1897
|
+
"field.apiKeyEnv.placeholder": "MINERU_API_KEY",
|
|
1898
|
+
"field.allowInsecureHttp": "Allow Insecure HTTP (Local Only)",
|
|
1899
|
+
"field.configuredVersion": "Server Protocol / Version",
|
|
1900
|
+
"field.modelMap.pipeline": "Pipeline Backend Map",
|
|
1901
|
+
"field.modelMap.vlm": "VLM Backend Map",
|
|
1902
|
+
"field.officialModels": "Supported Cloud Models",
|
|
1903
|
+
"field.defaultModel": "Default Model",
|
|
1904
|
+
"field.defaultParseMethod": "Default Parse Method",
|
|
1905
|
+
"field.defaultLang": "Default Language",
|
|
1906
|
+
"field.defaultFormula": "Enable Formula Extraction",
|
|
1907
|
+
"field.defaultTable": "Enable Table Extraction",
|
|
1908
|
+
"field.defaultArtifacts": "Default Required Artifacts",
|
|
1909
|
+
"field.storageRoot": "Storage Root Directory",
|
|
1910
|
+
"field.cacheEnabled": "Enable Global Cache",
|
|
1911
|
+
"field.stagingTtlMs": "Staging Cleanup TTL (ms)",
|
|
1912
|
+
"field.pollIntervalMs": "Poll Interval (ms)",
|
|
1913
|
+
"field.pollTimeoutMs": "Sync Tool Timeout (ms)",
|
|
1914
|
+
"field.requestTimeoutMs": "Request Timeout (ms)",
|
|
1915
|
+
"field.operationTimeoutMs": "Shared Operation Timeout (ms)",
|
|
1916
|
+
"field.maxInlineChars": "Max Inline Markdown Chars",
|
|
1917
|
+
"field.maxFilesPerRequest": "Max Files Per Request",
|
|
1918
|
+
"field.maxFileBytes": "Max File Bytes",
|
|
1919
|
+
"field.maxApiResponseBytes": "Max API Response Bytes",
|
|
1920
|
+
"field.maxZipDownloadBytes": "Max ZIP Download Bytes",
|
|
1921
|
+
"field.maxZipEntries": "Max ZIP Entries",
|
|
1922
|
+
"field.maxZipEntryBytes": "Max Single ZIP Entry Bytes",
|
|
1923
|
+
"field.maxZipTotalBytes": "Max ZIP Total Bytes",
|
|
1924
|
+
"field.maxZipCompressionRatio": "Max ZIP Compression Ratio",
|
|
1925
|
+
"action.save": "Save Configuration",
|
|
1926
|
+
"action.saved": "Saved",
|
|
1927
|
+
"action.test": "Test Active Provider",
|
|
1928
|
+
"action.testing": "Testing…",
|
|
1929
|
+
"test.healthy": "Connection Healthy",
|
|
1930
|
+
"test.unhealthy": "Service Unhealthy",
|
|
1931
|
+
"test.error": "Test Failed",
|
|
1932
|
+
"provider.type.selfHosted": "Self-Hosted MinerU (v2 API)",
|
|
1933
|
+
"provider.type.official": "Official MinerU Cloud (v4 API)",
|
|
1934
|
+
"model.pipeline": "Pipeline (Hallucination-free, multi-language)",
|
|
1935
|
+
"model.vlm": "VLM (Visual Language Model)",
|
|
1936
|
+
"parse.auto": "auto (Automatic detection)",
|
|
1937
|
+
"parse.txt": "txt (Fast text only, no OCR)",
|
|
1938
|
+
"parse.ocr": "ocr (Force OCR recognition)",
|
|
1939
|
+
"artifact.markdown": "Markdown (.md)",
|
|
1940
|
+
"artifact.layout": "Layout (.json)",
|
|
1941
|
+
"artifact.model-output": "Model Output (.json)",
|
|
1942
|
+
"artifact.content-list": "Content List (.json)",
|
|
1943
|
+
"artifact.images": "Extracted Images"
|
|
1944
|
+
}
|
|
1945
|
+
};
|
|
1946
|
+
//#endregion
|
|
1947
|
+
//#region src/client/index.ts
|
|
1948
|
+
const inject = [
|
|
1949
|
+
"slots",
|
|
1950
|
+
"locale",
|
|
1951
|
+
"connection"
|
|
1952
|
+
];
|
|
1953
|
+
function apply(ctx) {
|
|
1954
|
+
ctx.effect(() => ctx.locale.register(NS, {
|
|
1955
|
+
zh,
|
|
1956
|
+
en
|
|
1957
|
+
}), "dsh-pdf-mineru: dictionaries");
|
|
1958
|
+
ctx.effect(() => {
|
|
1959
|
+
let dispose;
|
|
1960
|
+
const sync = () => {
|
|
1961
|
+
dispose?.();
|
|
1962
|
+
dispose = void 0;
|
|
1963
|
+
const store = ctx.get("betterLocale");
|
|
1964
|
+
if (store !== void 0) dispose = store.register(NS, dicts);
|
|
1965
|
+
};
|
|
1966
|
+
sync();
|
|
1967
|
+
const unsubscribe = ctx.locale.subscribe(sync);
|
|
1968
|
+
return () => {
|
|
1969
|
+
unsubscribe();
|
|
1970
|
+
dispose?.();
|
|
1971
|
+
};
|
|
1972
|
+
}, "dsh-pdf-mineru: better-locale override dicts");
|
|
1973
|
+
const connection = ctx.connection;
|
|
1974
|
+
const t = ctx.locale.bind(NS);
|
|
1975
|
+
const settingsInjected = () => ({
|
|
1976
|
+
rpc: connection.rpc,
|
|
1977
|
+
t
|
|
1978
|
+
});
|
|
1979
|
+
ctx.slots.inject("settings.section", () => ctx.slots.register({
|
|
1980
|
+
name: "settings.section",
|
|
1981
|
+
id: "dsh-pdf-mineru",
|
|
1982
|
+
order: 40,
|
|
1983
|
+
label: () => t("nav"),
|
|
1984
|
+
inject: settingsInjected
|
|
1985
|
+
}, SettingsPage));
|
|
1986
|
+
}
|
|
1987
|
+
//#endregion
|
|
1988
|
+
exports.apply = apply;
|
|
1989
|
+
exports.inject = inject;
|
|
1990
|
+
return module.exports;
|
|
1991
|
+
}
|
|
1992
|
+
});
|
|
1993
|
+
|
|
1994
|
+
//# sourceMappingURL=client.js.map
|