LiteRtLmWebEmbedderConfig constructor

const LiteRtLmWebEmbedderConfig({
  1. required String modelPath,
  2. required String fileName,
  3. required LiteRtLmWebRuntime runtime,
  4. required Future<String> resolveUrl(
    1. String path
    ),
  5. required void revokeUrl(
    1. String url
    ),
  6. Set<EmbedderModality> declaredMedia = const {},
  7. int visionTokensPerImage = liteRtLmDefaultVisionTokensPerImage,
  8. LiteRtLmWebBackend backend = LiteRtLmWebBackend.gpu,
  9. LiteRtLmWebBackend audioBackend = liteRtLmWebAudioBackend,
  10. @visibleForTesting int? minInputLength,
})

Implementation

const LiteRtLmWebEmbedderConfig({
  required this.modelPath,
  required this.fileName,
  required this.runtime,
  required this.resolveUrl,
  required this.revokeUrl,
  this.declaredMedia = const {},
  this.visionTokensPerImage = liteRtLmDefaultVisionTokensPerImage,
  this.backend = LiteRtLmWebBackend.gpu,
  this.audioBackend = liteRtLmWebAudioBackend,
  @visibleForTesting this.minInputLength,
});