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 (12 loc) 551 B
import { ChatWrapper } from "../ChatWrapper.js"; import { ChatWrapperGenerateContextStateOptions, ChatWrapperGeneratedContextState } from "../types.js"; export declare class Llama2ChatWrapper extends ChatWrapper { readonly wrapperName: string; constructor({ addSpaceBeforeEos }?: { /** * Default to `true` */ addSpaceBeforeEos?: boolean; }); generateContextState({ chatHistory, availableFunctions, documentFunctionParams }: ChatWrapperGenerateContextStateOptions): ChatWrapperGeneratedContextState; }