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/compile.d.ts2 3type TemplateFunction = (this: Eta$1, data?: object, options?: Partial<Options>) => string;4/**5 * Takes a template string and returns a template function that can be called with (data, config)6 *7 * @param str - The template string8 * @param config - A custom configuration object (optional)9 */10declare function compile(this: Eta$1, str: string, options?: Partial<Options>): TemplateFunction;11//#endregion12//#region src/compile-string.d.ts13/**14 * Compiles a template string to a function string. Most often users just use `compile()`, which calls `compileToString` and creates a new function using the result15 */16declare function compileToString(this: Eta$1, str: string, options?: Partial<Options>): string;17/**18 * Loops through the AST generated by `parse` and transform each item into JS calls19 *20 * **Example**21 *22 * ```js23 * let templateAST = ['Hi ', { val: 'it.name', t: 'i' }]24 * compileBody.call(Eta, templateAST)25 * // => "__eta.res+='Hi '\n__eta.res+=__eta.e(it.name)\n"26 * ```27 */28declare function compileBody(this: Eta$1, buff: Array<AstObject>): string;29//#endregion30//#region src/err.d.ts31declare class EtaError extends Error {32 constructor(message: string);33}34declare class EtaParseError extends EtaError {35 constructor(message: string);36}37declare class EtaRuntimeError extends EtaError {38 constructor(message: string);39}40declare class EtaFileResolutionError extends EtaError {41 constructor(message: string);42}43declare class EtaNameResolutionError extends EtaError {44 constructor(message: string);45}46declare function RuntimeErr(originalError: Error, str: string, lineNo: number, path: string): never;47//#endregion48//#region src/render.d.ts49declare function render<T extends object>(this: Eta$1, template: string | TemplateFunction,50// template name or template function51data: T, meta?: {52 filepath: string;53}): string;54declare function renderAsync<T extends object>(this: Eta$1, template: string | TemplateFunction,55// template name or template function56data: T, meta?: {57 filepath: string;58}): Promise<string>;59declare function renderString<T extends object>(this: Eta$1, template: string, data: T): string;60declare function renderStringAsync<T extends object>(this: Eta$1, template: string, data: T): Promise<string>;61//#endregion62//#region src/storage.d.ts63/**64 * Handles storage and accessing of values65 *66 * In this case, we use it to store compiled template functions67 * Indexed by their `name` or `filename`68 */69declare class Cacher<T> {70 private cache;71 constructor(cache: Record<string, T>);72 define(key: string, val: T): void;73 get(key: string): T;74 remove(key: string): void;75 reset(): void;76 load(cacheObj: Record<string, T>): void;77}78//#endregion79//#region src/internal.d.ts80declare class Eta$1 {81 constructor(customConfig?: Partial<EtaConfig>);82 config: EtaConfig;83 RuntimeErr: typeof RuntimeErr;84 compile: typeof compile;85 compileToString: typeof compileToString;86 compileBody: typeof compileBody;87 parse: typeof parse;88 render: typeof render;89 renderAsync: typeof renderAsync;90 renderString: typeof renderString;91 renderStringAsync: typeof renderStringAsync;92 filepathCache: Record<string, string>;93 templatesSync: Cacher<TemplateFunction>;94 templatesAsync: Cacher<TemplateFunction>;95 resolvePath: null | ((this: Eta$1, template: string, options?: Partial<Options>) => string);96 readFile: null | ((this: Eta$1, path: string) => string);97 configure(customConfig: Partial<EtaConfig>): void;98 withConfig(customConfig: Partial<EtaConfig>): this & {99 config: EtaConfig;100 };101 loadTemplate(name: string, template: string | TemplateFunction,102 // template string or template function103 options?: {104 async: boolean;105 }): void;106}107//#endregion108//#region src/parse.d.ts109interface TemplateObject {110 t: string;111 val: string;112 lineNo?: number;113}114type AstObject = string | TemplateObject;115declare function parse(this: Eta$1, str: string): Array<AstObject>;116//#endregion117//#region src/config.d.ts118type trimConfig = "nl" | "slurp" | false;119interface Options {120 /** Compile to async function */121 async?: boolean;122 /** Absolute path to template file */123 filepath?: string;124}125interface EtaConfig {126 /** Whether or not to automatically XML-escape interpolations. Default true */127 autoEscape: boolean;128 /** Apply a filter function defined on the class to every interpolation or raw interpolation */129 autoFilter: boolean;130 /** Configure automatic whitespace trimming. Default `[false, 'nl']` */131 autoTrim: trimConfig | [trimConfig, trimConfig];132 /** Whether or not to cache templates if `name` or `filename` is passed */133 cache: boolean;134 /** Holds cache of resolved filepaths. Set to `false` to disable. */135 cacheFilepaths: boolean;136 /** Object specifying custom tags. Keys are tag prefixes, values are functions which take tag content and return a string. */137 customTags: Record<string, (content: string, data: unknown) => string>;138 /** Whether to pretty-format error messages (introduces runtime penalties) */139 debug: boolean;140 /** Function to XML-sanitize interpolations */141 escapeFunction: (str: unknown) => string;142 /** Function applied to all interpolations when autoFilter is true */143 filterFunction: (val: unknown) => string;144 /** Name of the function that can be used in template code to output text to the result (like EJS's `outputFunctionName`). */145 outputFunctionName: string;146 /** Raw JS code inserted in the template function. Useful for declaring global variables for user templates */147 functionHeader: string;148 /** Parsing options */149 parse: {150 /** Which prefix to use for evaluation. Default `""`, does not support `"-"` or `"_"` */151 exec: string;152 /** Which prefix to use for interpolation. Default `"="`, does not support `"-"` or `"_"` */153 interpolate: string;154 /** Which prefix to use for raw interpolation. Default `"~"`, does not support `"-"` or `"_"` */155 raw: string;156 };157 /** Array of plugins */158 plugins: Array<{159 processFnString?: (fnString: string, env?: EtaConfig) => string;160 processAST?: (ast: AstObject[], env?: EtaConfig) => AstObject[];161 processTemplate?: (fnString: string, env?: EtaConfig) => string;162 }>;163 /** Remove empty lines and whitespace between lines */164 rmWhitespace: boolean;165 /** Delimiters: by default `['<%', '%>']` */166 tags: [string, string];167 /** Make data available on the global object instead of varName */168 useWith: boolean;169 /** Name of the data object. Default `it` */170 varName: string;171 /** Directory that contains templates */172 views?: string;173 /** Control template file extension defaults. Default `.eta` */174 defaultExtension?: string;175}176//#endregion177//#region src/file-handling.d.ts178declare function readFile(this: Eta$1, path: string): string;179declare function resolvePath(this: Eta$1, templatePath: string, options?: Partial<Options>): string;180//#endregion181//#region src/index.d.ts182declare class Eta extends Eta$1 {183 readFile: typeof readFile;184 resolvePath: typeof resolvePath;185}186//#endregion187export { Eta, type EtaConfig, EtaError, EtaFileResolutionError, EtaNameResolutionError, EtaParseError, EtaRuntimeError, type Options, type TemplateFunction };188//# sourceMappingURL=index.d.cts.map