This commit is contained in:
hcl 2026-01-30 20:53:27 +08:00 committed by GitHub
commit b651ae9924
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -276,8 +276,12 @@ export function createCommandHandlers(context: CommandHandlerContext) {
await openSessionSelector();
break;
case "model":
if (!args) {
if (!args || args === "list") {
await openModelSelector();
} else if (args === "status") {
const provider = state.sessionInfo?.modelProvider || "unknown";
const model = state.sessionInfo?.model || "unknown";
chatLog.addSystem(`Current model: ${provider}/${model}`);
} else {
try {
await client.patchSession({