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
1import { trimSVG } from "../svg/trim.js";2import { mergeIconProps } from "./utils.js";3/**4* Get custom icon from inline collection or using loader5*/6async function getCustomIcon(custom, collection, icon, options) {7 let result;8 try {9 if (typeof custom === "function") result = await custom(icon);10 else {11 const inline = custom[icon];12 result = typeof inline === "function" ? await inline() : inline;13 }14 } catch (err) {15 console.warn(`Failed to load custom icon "${icon}" in "${collection}":`, err);16 return;17 }18 if (result) {19 const cleanupIdx = result.indexOf("<svg");20 if (cleanupIdx > 0) result = result.slice(cleanupIdx);21 const { transform } = options?.customizations ?? {};22 result = typeof transform === "function" ? await transform(result, collection, icon) : result;23 if (!result.startsWith("<svg")) {24 console.warn(`Custom icon "${icon}" in "${collection}" is not a valid SVG`);25 return result;26 }27 return await mergeIconProps(options?.customizations?.trimCustomSvg === true ? trimSVG(result) : result, collection, icon, options, void 0);28 }29}30export { getCustomIcon };31 