refresh_models
Fetch current model lists from providers with API keys and update the database. Optionally run a ping test to identify fast models.
Instructions
Fetch latest model lists from configured providers (openrouter, nvidia, groq) and replace them in the database.
Only providers with API keys are fetched; their previous model list is discarded and replaced with the live API list. Other providers keep their existing list. Use this to get the current catalog, then call scan() or get_fastest() for discovery. Optionally run a quick ping test after refresh.
Args: provider: Optional provider to refresh only (openrouter, nvidia, groq) run_ping: If true, run a ping test on up to ping_limit models after refreshing ping_limit: Max models to ping when run_ping is true (default 20)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | ||
| run_ping | No | ||
| ping_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |