LiteRtLmWebEmbedderConfig constructor
const
LiteRtLmWebEmbedderConfig({
- required String modelPath,
- required String fileName,
- required LiteRtLmWebRuntime runtime,
- required Future<
String> resolveUrl(- String path
- required void revokeUrl(
- String url
- Set<
EmbedderModality> declaredMedia = const {}, - int visionTokensPerImage = liteRtLmDefaultVisionTokensPerImage,
- LiteRtLmWebBackend backend = LiteRtLmWebBackend.gpu,
- LiteRtLmWebBackend audioBackend = liteRtLmWebAudioBackend,
- @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,
});