firstDifference method

String? firstDifference(
  1. ActiveEmbedderParams other
)

Name of the first field that differs from other, or null when the cached embedder can be reused. No normalisation step to forget: the constructor already did it.

Implementation

String? firstDifference(ActiveEmbedderParams other) {
  if (modelPath != other.modelPath) return 'modelPath';
  if (tokenizerPath != other.tokenizerPath) return 'tokenizerPath';
  if (activeBackend != other.activeBackend) return 'activeBackend';
  return null;
}