force models.dev refresh on auth login

This commit is contained in:
Dax Raad
2025-08-01 17:48:01 -04:00
parent cbd7db5a73
commit f75fc5af22
5 changed files with 16 additions and 33 deletions
+1
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,