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 { boxWith } from "svelte-toolbelt";2import { getBitsConfig } from "./bits-config.js";3/**4 * Creates a generic prop resolver that follows a standard priority chain:5 * 1. The getter's prop value (if defined)6 * 2. The config default value (if no getter prop value is defined)7 * 3. The fallback value (if no config value found)8 */9function createPropResolver(configOption, fallback) {10 return (getProp) => {11 const config = getBitsConfig();12 return boxWith(() => {13 // 1. return the prop's value, if provided14 const propValue = getProp();15 if (propValue !== undefined)16 return propValue;17 // 2. return the resolved config option value, if available18 const option = configOption(config).current;19 if (option !== undefined)20 return option;21 // 3. return the fallback if no other value is found22 return fallback;23 });24 };25}26/**27 * Resolves a locale value using the prop, the config default, or a fallback.28 *29 * Default value: `"en"`30 */31export const resolveLocaleProp = createPropResolver((config) => config.defaultLocale, "en");32/**33 * Resolves a portal's `to` value using the prop, the config default, or a fallback.34 *35 * Default value: `"body"`36 */37export const resolvePortalToProp = createPropResolver((config) => config.defaultPortalTo, "body");38 