force models.dev refresh on auth login

This commit is contained in:
Dax Raad
2025-08-01 17:48:01 -04:00
parent e1b7e25f4d
commit 71cd84dbbb
5 changed files with 16 additions and 33 deletions

View File

@@ -100,6 +100,7 @@ export const AuthLoginCommand = cmd({
prompts.outro("Done")
return
}
await ModelsDev.refresh().catch(() => {})
const providers = await ModelsDev.get()
const priority: Record<string, number> = {
anthropic: 0,