ework-web 0.10.125 → 0.10.126

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/translate.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-web",
3
- "version": "0.10.125",
3
+ "version": "0.10.126",
4
4
  "type": "module",
5
5
  "description": "ework-web — standalone multi-project issue tracker. Local SQLite-backed, no external API dependency. Bun + TypeScript + SSR HTML.",
6
6
  "license": "MIT",
package/src/translate.ts CHANGED
@@ -12,7 +12,11 @@ export class TranslateError extends Error {
12
12
  const SYSTEM_PROMPT =
13
13
  "Translate the following English text to Simplified Chinese. Preserve ALL markdown formatting (bullet lists with - or *, **bold**, `code`, # headings). Output ONLY the translation, nothing else.";
14
14
  const MAX_CHARS = 16_000;
15
- const TIMEOUT_MS = 60_000;
15
+ // Per-request ceiling (covers connect + queue + prefill + generation for one
16
+ // chunk). The shared self-hosted server also serves agent traffic; time-to-
17
+ // first-token can reach minutes when long-context prefills are queued ahead,
18
+ // so this must tolerate far more than an interactive RTT.
19
+ const TIMEOUT_MS = 180_000;
16
20
 
17
21
  // OpenAI-compatible chat-completion shapes (vLLM serves /v1/chat/completions).
18
22
  interface ChatChoice {