local_model_registry_refresh - MadBomber/aia GitHub Wiki
The Local Model Registry Refresh
The ruby_llm
gem maintains a registry of providers and models integrated with a new website that allows users to download the latest information about each model. This capability is scheduled for release in version 1.3.0 of the gem.
In anticipation of this new feature, the AIA tool has introduced the --refresh
option, which specifies the number of days between updates to the centralized model registry. Here’s how the --refresh
option works:
- A value of
0
(zero) updates the local model registry every time AIA is executed. - A value of
1
(one) updates the local model registry once per day. - etc.
The date of the last successful refresh is stored in the configuration file under the key last_refresh
. The default configuration file is located at ~/.aia/config.yml
. When a refresh is successful, the last_refresh
value is updated to the current date, and the updated configuration is saved in AIA.config.config_file
.
Important Note
This approach to saving the last_refresh
date can become cumbersome, particularly if you maintain multiple configuration files for different projects. The last_refresh
date is only updated in the currently active configuration file. If you switch to a different project with a different configuration file, you may inadvertently hit the central model registry again, even if your local registry is already up to date.