Repository navigation
Releases
Releases · jasonxu114514/aws-quickwork-2api
v0.4.3
Highlights
- Add an embedded English / Simplified Chinese WebUI with account status and management, remote OAuth callback login, settings, and a non-streaming Playground. No Node.js or npm is required.
- Add a multi-stage Docker image and hardened Compose configuration with non-root execution, health checks, and persistent storage.
- Persist per-account calls, successful/failed attempts, cumulative call duration, tokens, reported USD costs, and ACP credits. Credits are grouped by unit and assistant-message snapshots are deduplicated.
- Add manual and scheduled official monthly-minute quota synchronization, including remaining allowance, reset time, and retained snapshots on sync failure. Automatic sync defaults to five minutes.
- Improve bounded automatic retries with exponential backoff, account failover, one explicit authentication refresh per account, and reused-session recovery. Requests never retry after SSE output starts.
- Add account statistics to the CLI, retain legacy account-selection counts, and provide separate English and Chinese documentation.
Upgrade Notes
- Back up
config.jsonand the SQLite database before upgrading. New statistics tables are initialized automatically; historical statistics are not reconstructed. - WebUI administrator authentication is independent of inference API keys. Configure the administrator password in the server environment before signing in; use TLS and access controls for remote access.
- Saved settings require a service restart.
server -addroverrides the listener without modifying the configuration file. - Local cumulative duration measures upstream-attempt wall time, excluding token refresh and retry backoff. It is not official billed time and does not reset monthly; monthly usage and reset dates come from the official quota snapshot.
- Missing ACP credit or USD reports remain unknown or partial, not zero. Credits, USD, tokens, and monthly minutes are never converted into one another. Retries may incur additional upstream consumption.
- The official quota transport follows confirmed desktop-client source behavior, but availability across providers and subscription plans has not been validated with live accounts in this change.
- Tool-marker / frame-trimming issues #4 and #5, and the idle-frame issue #8, remain open and are not claimed as fixed by this release.
Downloads
Windows and Linux binaries are available for amd64 and arm64, together with SHA256SUMS. The WebUI is embedded in each binary. Docker and Compose files are included in the source repository; this release does not publish a registry image.
中文摘要
新增中英 WebUI、Docker/Compose、每账号真实调用与累计耗时统计、官方 ACP 积分和月度分钟额度同步,以及限次退避和换号重试。升级前请备份配置与数据库;管理密码与推理 API Key 独立,配置保存后需重启。本地调用耗时不等同官方计费时间,未上报的消耗不伪造为零,额度接口的各账号/方案可用性尚未实测。工具解析、裁剪与 95 秒空闲问题继续在 #4、#5、#8 跟进。
Full Changelog: v0.4.2...v0.4.3
v0.4.2
更新日誌
提示詞與工具(重要)
- 修正呼叫方系統提示詞未生效:QuickWork 會忽略
user_message.payload.system_prompt,並把custom_prompt當成低信任偏好。現在將system/developer指令與工具定義放在本輪 user 文字開頭的[System instructions from the API caller]區塊,模型能穩定遵循並發起工具呼叫。 - 工具橋接改寫:支援多種模型輸出格式(
<client_tool_call>、<tool_call>、整段 JSON、Markdown 圍欄、tool_calls包裝、不同參數欄位與命名前綴),同一輪可回傳多個平行呼叫。 - 明確告知模型工具由呼叫方提供與執行,避免模型以「沒有內建此工具」為由拒絕呼叫。
- 修正串流模式下有工具時回覆內容被丟棄、只剩
finish_reason=stop與 usage 的問題。
64 KB 與附件
- 單輪
user_message超過上游 64 KB 限制時,使用者內容改走 out-of-band 附件(upload-attachment→ DLP →files/upload),WebSocket 只送短引用;附件只包含使用者內容,指令留在文字中,避免被當成注入。 - 附件流程對齊桌面端:DLP 每 1.5 秒輪詢、最多 60 次;修正
qbs-event的body必須是 JSON 物件而非字串。 - 附件不可用時才裁剪,保留開頭與結尾;並修正同一個 WebSocket 幀內多條 event-stream 訊息只讀第一條的問題。
會話與穩定性
- 新增上游會話重用:同一段對話固定 thread 與帳號,每輪只送新增訊息;可用
X-Conversation-Id/X-Thread-Id指定。 - 空回覆防護:上游只回空白或零寬字元時回傳明確錯誤(含
completion_tokens),不再回空的finish_reason=stop。 - 完整輸出上游錯誤 frame,便於排查。
- 新增
server子命令與每個請求的完成日誌(帳號、模型、耗時、token、finish、工具數)。
Full Changelog: v0.4.1...v0.4.2