readLlmModelFamily function

Future<LlmModelFamily?> readLlmModelFamily(
  1. String modelPath
)

llmModelFamilyFrom of the bundle at modelPath; null when it has no LlmMetadata or no model type.

Implementation

Future<LlmModelFamily?> readLlmModelFamily(String modelPath) async {
  final metadata = await _readLlmMetadata(modelPath);
  return metadata == null ? null : llmModelFamilyFrom(metadata);
}