Repository navigation
v0.1.11
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 /
oxlint0 error。
提交
2aa04defix: preserve a caller's Content-Type in the GUI's auth headers5bae2c8fix: review corrections for the context-window and answer-guard pathsb1639f5docs: document the context fields and the reasoning field namescaa7b03test: drop the unused local in the context-overflow harness