dropdown for models seems to reset and not persist #40
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
when opening the model dropdown, it is not showing the last list of models. if update models is clicked, then the dropdown shows more models. but the model availability must persist in the database for both the online and offline endpoint and be used for dropdowns and only overwritten when a new model list update is triggered.
Fixed in
c80b5d6. Discovered models are now persisted in a new ai_endpoint_models table, keyed per endpoint (online/airplane). The settings and chat model dropdowns hydrate from the persisted list on load, and the list is only replaced when a model refresh for that endpoint succeeds — so it survives tab switches and app restarts. Covered by a unit test for per-endpoint persistence and overwrite-on-refresh; spec updated with an EndpointModelPersistence invariant.