canHandle abstract method

bool canHandle(
  1. EmbeddingModelSpec spec
)

Whether this provider can tokenize for spec. Probed by the registry.

Coarse on purpose: the fine-grained choice between tokenizer families is made from the tokenizer file's own bytes, inside the worker isolate, by the factory below — not here, where the file has not been read yet.

Implementation

bool canHandle(EmbeddingModelSpec spec);