From a403b5f5b132c19ecd3d430963771445275ea1df Mon Sep 17 00:00:00 2001 From: Chummy Date: Mon, 16 Feb 2026 23:40:33 +0800 Subject: [PATCH] feat(onboard): add provider model refresh command with TTL cache (#323) --- src/main.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main.rs b/src/main.rs index 3253594..a5c17f4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -272,6 +272,20 @@ enum ModelCommands { }, } +#[derive(Subcommand, Debug)] +enum ModelCommands { + /// Refresh and cache provider models + Refresh { + /// Provider name (defaults to configured default provider) + #[arg(long)] + provider: Option, + + /// Force live refresh and ignore fresh cache + #[arg(long)] + force: bool, + }, +} + #[derive(Subcommand, Debug)] enum ChannelCommands { /// List configured channels