v0.2.0 — 零配置支持任意 API / Zero-config for any API
中文
分类模型现在默认跟随 DeepSeek Harness Settings → Models 中的默认模型。
- 零配置支持任意 API:无论使用 DeepSeek、自定义 OpenAI 兼容端点还是其他 provider,Auto 档都能直接复用部署默认模型。
provider与model默认均为null,并在每次分类调用时动态读取;用户修改默认模型后无需重启插件。- 两个字段可独立覆盖:只指定
model可在同一 API 下使用更便宜的分类模型;同时指定两者则保持 0.1.0 的显式路由行为。 - 默认模型不可用时安全转人工,日志明确记录
no-default-model;所有异常仍保持next()兜底。 - 原有 39 项测试全部保留,新增 6 项动态路由与失败语义覆盖,共 45 项。
English
The classifier now follows the default model configured under DeepSeek Harness Settings → Models.
- Zero-config support for any API: Auto works with DeepSeek, custom OpenAI-compatible endpoints, and other providers by reusing the deployment's default model.
- Both
providerandmodelnow default tonulland are resolved for every classification call, so changes to the default model are picked up without restarting the plugin. - The fields can be overridden independently: set only
modelto use a cheaper classifier on the same API, or set both fields to preserve the explicit routing behavior from 0.1.0. - If no default model is available, the plugin safely falls back to human review and logs
no-default-model; every exception path still falls through vianext(). - All 39 existing tests remain, with 6 new routing and failure-semantics cases, for 45 tests total.