重构: 拆model_probe模型探测(strategy核心库)
- 新建 df-ai/model_probe_helpers.rs(137行): PRESETS_JSON/presets(OnceLock) + heuristic_infer + has_vision_token - model_probe.rs 388→251: probe主入口 + use helpers - lib.rs: mod model_probe_helpers 主代grep核验(不cargo避audit-split-5中间态): model_probe.rs use+probe + lib.rs mod印证; agent df-ai独立自验cargo 0+test 119 strategy: 核心库自底向上, 纯函数抽离, pub(super)可见性, helper私有mod零API表面扩大 git add指定(df-ai/*)
This commit is contained in:
@@ -11,6 +11,9 @@ pub mod model_fetch;
|
||||
// crate 内复用,private mod — 外部经 model_fetch 间接访问,无直接路径需求。
|
||||
mod model_fetch_helpers;
|
||||
pub mod model_probe;
|
||||
// model_probe 的纯逻辑子模块(预设表加载 / 启发式推断 / 词素判定),
|
||||
// crate 内复用,private mod — 外部经 model_probe 间接访问,无直接路径需求。
|
||||
mod model_probe_helpers;
|
||||
pub mod openai_compat;
|
||||
pub mod openai_helpers;
|
||||
pub mod provider;
|
||||
|
||||
Reference in New Issue
Block a user