Skip to content

CLI2API v0.7.27

Choose a tag to compare

@github-actions github-actions released this 03 Nov 11:13
a78a0f8

English

  • Accounts batch-import confirm dialog is wider (md / ~32rem) with slightly roomier padding so the provider card, region toggle, and actions are less cramped.
  • CodeArts (码道) console credential import works again: the adapter exposes its importer where the console looks for it, so pasting a codearts-oauth-v1 credential no longer answers unsupported_format.
  • CodeArts chat now sends WorkBuddy tip 28527f4 / hub #723 session headers after signing: account-stable x-ot-session-id and user-session-id, plus a fresh x-ot-trace-id per request (kept out of SignedHeaders), so Huawei no longer treats every call as a new concurrent session.
  • Codex model catalog adds gpt-6.1-terra (GPT-6.1 Terra) from the upstream client / CLIProxyAPI list, with the same slim fields as sibling gpt-6.1-sol.
  • Request-log retention no longer leaves orphan rows in request_attempts, request_usage_details, and request_stream_diagnostics: the purge deletes child rows in the same transaction instead of relying on ON DELETE CASCADE, which was inert on any connection opened without PRAGMA foreign_keys.
  • PRAGMA foreign_keys now travels in the SQLite DSN, so every connection the pool opens enforces the declared cascades instead of only the one that ran the startup Exec.
  • The Usage Cost tab window follows CLI2API_LOG_RETENTION_DAYS instead of a hard-coded 7 days, so raising retention makes the older cost history readable.

中文

  • 账号批量导入确认弹窗加宽(md / 约 32rem),内边距略增,提供商卡片、区域切换与操作按钮不再显得挤。
  • 码道(CodeArts)控制台「导入凭证」恢复正常:适配器按控制台查找的位置暴露导入器,粘贴 codearts-oauth-v1 凭证不再返回 unsupported_format。
  • 码道(CodeArts)聊天在签名之后补发 WorkBuddy tip 28527f4 / hub #723 会话头:账号级稳定的 x-ot-session-id 与 user-session-id,以及每请求新的 x-ot-trace-id(不进入 SignedHeaders),避免华为云把每次请求都当成新建并发会话。
  • Codex 模型目录新增上游客户端 / CLIProxyAPI 列表中的 gpt-6.1-terra(GPT-6.1 Terra),字段结构与同代 gpt-6.1-sol 一致。
  • 请求日志清理不再在 request_attempts、request_usage_details、request_stream_diagnostics 里留下孤儿行:清理改为在同一事务里显式删除子表行,不再依赖 ON DELETE CASCADE——该级联在任何未设置 PRAGMA foreign_keys 的连接上都不生效。
  • PRAGMA foreign_keys 改为写进 SQLite DSN,连接池新开的每条连接都遵守已声明的级联,而不只是启动时执行过 Exec 的那一条。
  • 用量页「费用」选项卡的时间范围跟随 CLI2API_LOG_RETENTION_DAYS,不再写死 7 天;调大保留期后能看到更早的费用历史。