UNPKG

node-llama-cpp

Version:

Run AI models locally on your machine with node.js bindings for llama.cpp. Enforce a JSON schema on the model output on the generation level

5 lines (4 loc) 162 B
export declare function findBestOption<const O>({ generator, score }: { generator: () => Generator<O>; score: (option: O) => number | null; }): O | null;