Package com.axelor.ai.provider.sync
Class ProviderSyncService
java.lang.Object
com.axelor.ai.provider.sync.ProviderSyncService
Brings a provider's models into line with what it actually offers: fetch, apply the admin's
rules, resolve capabilities, match what already exists, write.
There is no preview step, so what gets written is the whole safety story. A model is created from the family's rules, and afterwards only values the provider itself reports are refreshed. A rule set is a guess; re-applying it on every sync would silently undo an administrator who corrected it.
-
Constructor Summary
ConstructorsConstructorDescriptionProviderSyncService(AiModelRepository modelRepo, AdapterRegistry registry, ModelListFetcher http) -
Method Summary
-
Constructor Details
-
ProviderSyncService
@Inject public ProviderSyncService(AiModelRepository modelRepo, AdapterRegistry registry, ModelListFetcher http)
-
-
Method Details
-
sync
- Throws:
SyncException- with a message fit to show an administrator; nothing is written when it throws, because every failure happens before the first save
-