feat(onboard): add provider model refresh command with TTL cache (#323)
This commit is contained in:
parent
80da3e64e9
commit
a403b5f5b1
1 changed files with 14 additions and 0 deletions
14
src/main.rs
14
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<String>,
|
||||
|
||||
/// Force live refresh and ignore fresh cache
|
||||
#[arg(long)]
|
||||
force: bool,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Subcommand, Debug)]
|
||||
enum ChannelCommands {
|
||||
/// List configured channels
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue