fix: call models.dev once instead of twice on start (#20765)

This commit is contained in:
Luke Parker
2026-04-03 11:26:53 +10:00
committed by GitHub
parent 8e9e79d276
commit eb6f1dada8
3 changed files with 45 additions and 15 deletions

View File

@@ -28,7 +28,7 @@ export const ModelsCommand = cmd({
},
handler: async (args) => {
if (args.refresh) {
await ModelsDev.refresh()
await ModelsDev.refresh(true)
UI.println(UI.Style.TEXT_SUCCESS_BOLD + "Models cache refreshed" + UI.Style.TEXT_NORMAL)
}