FetchAndGetArliAiModelsUseCaseImpl

Keeps the selected ArliAI checkpoint valid after model-list refreshes.

If the saved model no longer exists, the first available checkpoint becomes the selected model.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(preferenceManager: PreferenceManager, repository: ArliAiModelsRepository)

Properties

Link copied to clipboard

Exposes the preferenceManager value used by the SDAI domain layer.

Link copied to clipboard

Exposes the repository value used by the SDAI domain layer.

Functions

Link copied to clipboard
open suspend operator override fun invoke(): List<StableDiffusionModel>

Loads ArliAI models and updates the persisted selected checkpoint if needed.