mirror of
https://github.com/Routstr/routstrd.git
synced 2026-08-11 20:47:58 +00:00
merge
This commit is contained in:
+5
-2
@@ -273,10 +273,13 @@ program
|
||||
program
|
||||
.command("models")
|
||||
.description("List available routstr21 models")
|
||||
.action(async () => {
|
||||
.option("-r, --refresh", "Force refresh routstr21 models from Nostr", false)
|
||||
.action(async (options: { refresh: boolean }) => {
|
||||
await ensureDaemonRunning();
|
||||
|
||||
const result = await callDaemon("/models");
|
||||
const result = await callDaemon(
|
||||
options.refresh ? "/models?refresh=true" : "/models",
|
||||
);
|
||||
if (result.error) {
|
||||
console.log(result.error);
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user