listModelGenerator top-level property

FigGenerator listModelGenerator
final

Implementation

final FigGenerator listModelGenerator = FigGenerator(
  script: ['bash', '-c', "ollama ls | awk '!/NAME/ { print \$1 }'"],
  postProcess: (String out, [List<String>? tokens]) {
    return out
        .trim()
        .split('\n')
        .map((model) => FigSuggestion(name: model))
        .toList();
  },
);