localLlmProvider top-level property

  1. @ProviderFor.new(localLlm)
Provider<LocalLlmDatasource?> localLlmProvider
final

On-device LLM inference (llama.cpp via llama_cpp_dart). null on web — there's no isolate / dart:io / GGUF runtime in the browser. Also null when the feature flag EnvConfig.enableLocalLlm is off, which hides the provider from users while keeping the implementation in the tree. On native with the flag on, isConfigured() returns false until the user downloads + activates a model in AI settings, so chat sessions cleanly skip the local provider when nothing is installed.

Copied from localLlm.

Implementation

@ProviderFor(localLlm)
final localLlmProvider = Provider<LocalLlmDatasource?>.internal(
  localLlm,
  name: r'localLlmProvider',
  debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
      ? null
      : _$localLlmHash,
  dependencies: null,
  allTransitiveDependencies: null,
);