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

13 lines 431 B
export const allSegmentTypes = ["thought", "comment"]; void null; export function isChatModelResponseFunctionCall(item) { if (item == null || typeof item === "string") return false; return item.type === "functionCall"; } export function isChatModelResponseSegment(item) { if (item == null || typeof item === "string") return false; return item.type === "segment"; } //# sourceMappingURL=types.js.map