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
+14
-1
@@ -79,13 +79,26 @@ send(b"/usage\r")
|
||||
check("usage report", "58% left, resets in 2h1")
|
||||
check("1M window", "of 900k")
|
||||
send(b"/model claude-opus-5-5\r")
|
||||
check("model switch", "opus-5-5 (Claude) · context 1000k")
|
||||
check("model switch", "model → claude-opus-5-5 (Claude)")
|
||||
send(b"/model gpt-5.6-sol\r")
|
||||
check("gpt model needs codex login", "not logged in to Codex")
|
||||
send(b"/model claude-sonnet-5-6-preview\r")
|
||||
check("live catalog window", "2000k")
|
||||
check("live catalog cached", "") if os.path.exists(f"{tmp}/home/.hx/models-claude.json") else (print("FAIL no model cache"), globals().update(ok=False))
|
||||
buf = b""
|
||||
# auto mode: per-prompt choice, one-turn @override, pinning turns it off
|
||||
send(b"/model auto\r")
|
||||
check("auto on", "model: auto")
|
||||
send(b"fix the typo in notes.md\r", 3)
|
||||
check("auto picks the cheap tier for a typo", "auto claude-haiku-4-5")
|
||||
check("footer marks auto", "auto→")
|
||||
send(b"@opus say hi\r", 4)
|
||||
check("override forces one turn", "forced")
|
||||
send(b"/model claude-sonnet-5-5\r")
|
||||
send(b"fix the typo again\r", 3)
|
||||
check("pinned model: no routing", "")
|
||||
ok &= "auto claude-haiku-4-5 (Claude, think off): fast (score -2: typo)\n" not in plain().split("fix the typo again")[-1]
|
||||
buf = b""
|
||||
send(b"/provider ")
|
||||
check("only logged-in providers offered", "claude")
|
||||
ok &= "codex" not in plain(); print("PASS no codex without login" if "codex" not in plain() else "FAIL codex offered")
|
||||
|
||||
Reference in new issue
Block a user