Skip to content

CLI2API v0.8.6

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 17:16
2cd9b44

English

  • Account check-in records and models modals now declare their data-loader effect dependencies explicitly via useCallback, eliminating stale-closure risk when the loader later gains inputs. Pagination size stays stable across account switches, with no duplicate refetch on page-size change.
  • Kiro usage again reports estimated prompt-cache reads and writes. Kiro still does not send cache figures, so the gateway tracks prompt prefixes per account for five minutes and reports the repeated part as a cache read.
  • Move the SQLite busy_timeout setting into the connection DSN so it is applied on every connection opened after an idle recycle or connection-level error, instead of only on the first pooled connection. Lock contention now waits up to 5 seconds before returning SQLITE_BUSY, matching the existing foreign_keys DSN fix.
  • Add browser hardening headers to the operator console and its static assets: X-Content-Type-Options: nosniff, X-Frame-Options: DENY, and Referrer-Policy: no-referrer. The public OpenAI/Anthropic gateway endpoints keep their protocol-only response surface unchanged.

中文

  • 打卡记录与账号模型弹窗的数据加载 effect 现在通过 useCallback 显式声明依赖,避免加载函数后续新增入参时产生陈旧闭包;切换账号时分页尺寸保持稳定,调整分页尺寸时不会重复拉取。
  • Kiro 用量再次附带估算的提示缓存读写。Kiro 本身仍不返回缓存数字,网关按账号把 prompt 前缀记五分钟,把重复部分报成缓存读取。
  • 将 SQLite busy_timeout 设置下沉到连接 DSN,使其在空闲连接回收或连接级错误后新开的每一条连接上都生效,而不再只作用于首个池内连接。锁竞争时会先等待最多 5 秒再返回 SQLITE_BUSY,与既有的 foreign_keys DSN 修复保持一致。
  • 为运维控制台及其静态资源增加浏览器加固响应头:X-Content-Type-Options: nosniff、X-Frame-Options: DENY、Referrer-Policy: no-referrer。对外的 OpenAI / Anthropic 网关端点保持原有协议响应面不变。