Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1//#region src/parse.d.ts2interface TemplateObject {3 t: string;4 val: string;5 lineNo?: number;6}7type AstObject = string | TemplateObject;8declare function parse(this: Eta$1, str: string): Array<AstObject>;9//#endregion10//#region src/config.d.ts11type trimConfig = "nl" | "slurp" | false;12interface Options {13 /** Compile to async function */14 async?: boolean;15 /** Absolute path to template file */16 filepath?: string;17}18interface EtaConfig {19 /** Whether or not to automatically XML-escape interpolations. Default true */20 autoEscape: boolean;21 /** Apply a filter function defined on the class to every interpolation or raw interpolation */22 autoFilter: boolean;23 /** Configure automatic whitespace trimming. Default `[false, 'nl']` */24 autoTrim: trimConfig | [trimConfig, trimConfig];25 /** Whether or not to cache templates if `name` or `filename` is passed */26 cache: boolean;27 /** Holds cache of resolved filepaths. Set to `false` to disable. */28 cacheFilepaths: boolean;29 /** Object specifying custom tags. Keys are tag prefixes, values are functions which take tag content and return a string. */30 customTags: Record<string, (content: string, data: unknown) => string>;31 /** Whether to pretty-format error messages (introduces runtime penalties) */32 debug: boolean;33 /** Function to XML-sanitize interpolations */34 escapeFunction: (str: unknown) => string;35 /** Function applied to all interpolations when autoFilter is true */36 filterFunction: (val: unknown) => string;37 /** Name of the function that can be used in template code to output text to the result (like EJS's `outputFunctionName`). */38 outputFunctionName: string;39 /** Raw JS code inserted in the template function. Useful for declaring global variables for user templates */40 functionHeader: string;41 /** Parsing options */42 parse: {43 /** Which prefix to use for evaluation. Default `""`, does not support `"-"` or `"_"` */44 exec: string;45 /** Which prefix to use for interpolation. Default `"="`, does not support `"-"` or `"_"` */46 interpolate: string;47 /** Which prefix to use for raw interpolation. Default `"~"`, does not support `"-"` or `"_"` */48 raw: string;49 };50 /** Array of plugins */51 plugins: Array<{52 processFnString?: (fnString: string, env?: EtaConfig) => string;53 processAST?: (ast: AstObject[], env?: EtaConfig) => AstObject[];54 processTemplate?: (fnString: string, env?: EtaConfig) => string;55 }>;56 /** Remove empty lines and whitespace between lines */57 rmWhitespace: boolean;58 /** Delimiters: by default `['<%', '%>']` */59 tags: [string, string];60 /** Make data available on the global object instead of varName */61 useWith: boolean;62 /** Name of the data object. Default `it` */63 varName: string;64 /** Directory that contains templates */65 views?: string;66 /** Control template file extension defaults. Default `.eta` */67 defaultExtension?: string;68}69//#endregion70//#region src/compile.d.ts71type TemplateFunction = (this: Eta$1, data?: object, options?: Partial<Options>) => string;72/**73 * Takes a template string and returns a template function that can be called with (data, config)74 *75 * @param str - The template string76 * @param config - A custom configuration object (optional)77 */78declare function compile(this: Eta$1, str: string, options?: Partial<Options>): TemplateFunction;79//#endregion80//#region src/compile-string.d.ts81/**82 * Compiles a template string to a function string. Most often users just use `compile()`, which calls `compileToString` and creates a new function using the result83 */84declare function compileToString(this: Eta$1, str: string, options?: Partial<Options>): string;85/**86 * Loops through the AST generated by `parse` and transform each item into JS calls87 *88 * **Example**89 *90 * ```js91 * let templateAST = ['Hi ', { val: 'it.name', t: 'i' }]92 * compileBody.call(Eta, templateAST)93 * // => "__eta.res+='Hi '\n__eta.res+=__eta.e(it.name)\n"94 * ```95 */96declare function compileBody(this: Eta$1, buff: Array<AstObject>): string;97//#endregion98//#region src/err.d.ts99declare class EtaError extends Error {100 constructor(message: string);101}102declare class EtaParseError extends EtaError {103 constructor(message: string);104}105declare class EtaRuntimeError extends EtaError {106 constructor(message: string);107}108declare class EtaFileResolutionError extends EtaError {109 constructor(message: string);110}111declare class EtaNameResolutionError extends EtaError {112 constructor(message: string);113}114declare function RuntimeErr(originalError: Error, str: string, lineNo: number, path: string): never;115//#endregion116//#region src/render.d.ts117declare function render<T extends object>(this: Eta$1, template: string | TemplateFunction,118// template name or template function119data: T, meta?: {120 filepath: string;121}): string;122declare function renderAsync<T extends object>(this: Eta$1, template: string | TemplateFunction,123// template name or template function124data: T, meta?: {125 filepath: string;126}): Promise<string>;127declare function renderString<T extends object>(this: Eta$1, template: string, data: T): string;128declare function renderStringAsync<T extends object>(this: Eta$1, template: string, data: T): Promise<string>;129//#endregion130//#region src/storage.d.ts131/**132 * Handles storage and accessing of values133 *134 * In this case, we use it to store compiled template functions135 * Indexed by their `name` or `filename`136 */137declare class Cacher<T> {138 private cache;139 constructor(cache: Record<string, T>);140 define(key: string, val: T): void;141 get(key: string): T;142 remove(key: string): void;143 reset(): void;144 load(cacheObj: Record<string, T>): void;145}146//#endregion147//#region src/internal.d.ts148declare class Eta$1 {149 constructor(customConfig?: Partial<EtaConfig>);150 config: EtaConfig;151 RuntimeErr: typeof RuntimeErr;152 compile: typeof compile;153 compileToString: typeof compileToString;154 compileBody: typeof compileBody;155 parse: typeof parse;156 render: typeof render;157 renderAsync: typeof renderAsync;158 renderString: typeof renderString;159 renderStringAsync: typeof renderStringAsync;160 filepathCache: Record<string, string>;161 templatesSync: Cacher<TemplateFunction>;162 templatesAsync: Cacher<TemplateFunction>;163 resolvePath: null | ((this: Eta$1, template: string, options?: Partial<Options>) => string);164 readFile: null | ((this: Eta$1, path: string) => string);165 configure(customConfig: Partial<EtaConfig>): void;166 withConfig(customConfig: Partial<EtaConfig>): this & {167 config: EtaConfig;168 };169 loadTemplate(name: string, template: string | TemplateFunction,170 // template string or template function171 options?: {172 async: boolean;173 }): void;174}175//#endregion176//#region src/core.d.ts177declare class Eta extends Eta$1 {}178//#endregion179export { Eta, type EtaConfig, EtaError, EtaFileResolutionError, EtaNameResolutionError, EtaParseError, EtaRuntimeError, type Options, type TemplateFunction };180//# sourceMappingURL=core.d.ts.map