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
parent d7cca4b150
commit e9fa267c84

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)]
enum ChannelCommands {
/// List configured channels