Skip to content

v0.1.11

Choose a tag to compare

@github-actions github-actions released this 18 Oct 15:50
· 11 commits to main since this release

cell 0.1.11

本次为 0.1.9 / 0.1.10 的复审修正。

修正

  • /context 支持 4096 / 8k / 1m(十进制 K/M,对齐设置面的容量写法);非法输入直接拒绝,不再让 stoll 把 8k 静默解析成 8。
  • /context auto 会清掉探测缓存重新询问;缓存 key 改为归一化 base,.../v1 与 .../v1/ 不再重复探测。
  • reasoning 流中 reasoning_content: "" 的占位不再挡住同一 delta 里后面的 reasoning 字段。
  • 纯空白文本不再算答案/内容:模型只吐一个换行时不会再把空回合当成功。
  • reasoning-only 的快速失败改用显式 no_retry 标志,错误不再谎报「5 attempts」;压缩后的重试恢复常规重试策略。
  • 状态栏在 usage 的 context_window 为 0(未知)时回退到 /v1/health 的已知窗口。
  • authHeaders 保留调用方传入的 Content-Type:上传的 application/octet-stream 不再被覆盖成 JSON。

文档

  • docs/RESTful.md:usage 增加 context_window / context_tokens / context_pct;/v1/health 增加 context_window;reasoning 事件标明三种字段名(reasoning_content / reasoning / thinking)。

测试

  • selftest 新增:parse_token_count(4096 / 8k / 1m / 大小写 / 空白 / 小数 / 垃圾 / 0 / 空串)、纯空白 answer/content 拒绝。
  • 全量 ctest 5/5、前端 228 pass / oxlint 0 error。

提交

  • 2aa04de fix: preserve a caller's Content-Type in the GUI's auth headers
  • 5bae2c8 fix: review corrections for the context-window and answer-guard paths
  • b1639f5 docs: document the context fields and the reasoning field names
  • caa7b03 test: drop the unused local in the context-overflow harness