auto model: per-prompt model/effort routing across providers, @override per turn
This commit is contained in:
1 parent
f1343295d4
commit
b8fc96a3d2
13 files changed
+1201
-17
No files matched your search
@@ -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!(
|
||||
|
||||
Reference in new issue
Block a user