ensureModelReadyFromSpec method
Modern API: Ensures a model spec is ready for use
Implementation
@override
Future<void> ensureModelReadyFromSpec(ModelSpec spec) async {
if (spec is InferenceModelSpec && spec.fileType == ModelFileType.builtIn) {
await _ensureInitialized();
await _activateModel(spec);
return;
}
await _ensureModelReadySpec(spec);
// Set as active model (automatically routes by type)
await _activateModel(spec);
}