feat(onboard): add provider model refresh command with TTL cache (#323)

This commit is contained in:
Chummy 2026-02-16 23:40:33 +08:00 committed by GitHub
parent 80da3e64e9
commit a403b5f5b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<String>,
/// Force live refresh and ignore fresh cache
#[arg(long)]
force: bool,
},
}
#[derive(Subcommand, Debug)] #[derive(Subcommand, Debug)]
enum ChannelCommands { enum ChannelCommands {
/// List configured channels /// List configured channels