auto model: per-prompt model/effort routing across providers, @override per turn

This commit is contained in:
hermes committed 2026-10-26 21:52:50 +00:00
1 parent f1343295d4
commit b8fc96a3d2
13 files changed
+1201 -17

No files matched your search

+6 -2
View File
@@ -52,7 +52,11 @@ pub fn builtins(models: &[&str]) -> Vec<CmdSpec> {
b(
"model",
"show or switch model",
Enum(models.iter().map(|m| m.to_string()).collect()),
Enum(
std::iter::once("auto".to_string())
.chain(models.iter().map(|m| m.to_string()))
.collect(),
),
),
b(
"provider",
@@ -331,7 +335,7 @@ mod tests {
assert_eq!(r.items[0].detail, "skill · code review");
let m = c("/model op");
assert_eq!((m.start, labels(&m)), (7, vec!["claude-opus-5-5"]));
assert_eq!(c("/model ").items.len(), 3);
assert_eq!(c("/model ").items.len(), 4, "auto + 3 models");
assert_eq!(labels(&c("/provider c")), ["codex", "claude"]);
assert_eq!(labels(&c("/fs:grep lib")), ["src/lib.rs"]);
assert!(