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/*2 Copyright 2018 Google LLC3 4 Use of this source code is governed by an MIT-style5 license that can be found in the LICENSE file or at6 https://opensource.org/licenses/MIT.7*/8import '../../_version.js';9export const messages = {10 'invalid-value': ({ paramName, validValueDescription, value }) => {11 if (!paramName || !validValueDescription) {12 throw new Error(`Unexpected input to 'invalid-value' error.`);13 }14 return (`The '${paramName}' parameter was given a value with an ` +15 `unexpected value. ${validValueDescription} Received a value of ` +16 `${JSON.stringify(value)}.`);17 },18 'not-an-array': ({ moduleName, className, funcName, paramName }) => {19 if (!moduleName || !className || !funcName || !paramName) {20 throw new Error(`Unexpected input to 'not-an-array' error.`);21 }22 return (`The parameter '${paramName}' passed into ` +23 `'${moduleName}.${className}.${funcName}()' must be an array.`);24 },25 'incorrect-type': ({ expectedType, paramName, moduleName, className, funcName, }) => {26 if (!expectedType || !paramName || !moduleName || !funcName) {27 throw new Error(`Unexpected input to 'incorrect-type' error.`);28 }29 const classNameStr = className ? `${className}.` : '';30 return (`The parameter '${paramName}' passed into ` +31 `'${moduleName}.${classNameStr}` +32 `${funcName}()' must be of type ${expectedType}.`);33 },34 'incorrect-class': ({ expectedClassName, paramName, moduleName, className, funcName, isReturnValueProblem, }) => {35 if (!expectedClassName || !moduleName || !funcName) {36 throw new Error(`Unexpected input to 'incorrect-class' error.`);37 }38 const classNameStr = className ? `${className}.` : '';39 if (isReturnValueProblem) {40 return (`The return value from ` +41 `'${moduleName}.${classNameStr}${funcName}()' ` +42 `must be an instance of class ${expectedClassName}.`);43 }44 return (`The parameter '${paramName}' passed into ` +45 `'${moduleName}.${classNameStr}${funcName}()' ` +46 `must be an instance of class ${expectedClassName}.`);47 },48 'missing-a-method': ({ expectedMethod, paramName, moduleName, className, funcName, }) => {49 if (!expectedMethod ||50 !paramName ||51 !moduleName ||52 !className ||53 !funcName) {54 throw new Error(`Unexpected input to 'missing-a-method' error.`);55 }56 return (`${moduleName}.${className}.${funcName}() expected the ` +57 `'${paramName}' parameter to expose a '${expectedMethod}' method.`);58 },59 'add-to-cache-list-unexpected-type': ({ entry }) => {60 return (`An unexpected entry was passed to ` +61 `'workbox-precaching.PrecacheController.addToCacheList()' The entry ` +62 `'${JSON.stringify(entry)}' isn't supported. You must supply an array of ` +63 `strings with one or more characters, objects with a url property or ` +64 `Request objects.`);65 },66 'add-to-cache-list-conflicting-entries': ({ firstEntry, secondEntry }) => {67 if (!firstEntry || !secondEntry) {68 throw new Error(`Unexpected input to ` + `'add-to-cache-list-duplicate-entries' error.`);69 }70 return (`Two of the entries passed to ` +71 `'workbox-precaching.PrecacheController.addToCacheList()' had the URL ` +72 `${firstEntry} but different revision details. Workbox is ` +73 `unable to cache and version the asset correctly. Please remove one ` +74 `of the entries.`);75 },76 'plugin-error-request-will-fetch': ({ thrownErrorMessage }) => {77 if (!thrownErrorMessage) {78 throw new Error(`Unexpected input to ` + `'plugin-error-request-will-fetch', error.`);79 }80 return (`An error was thrown by a plugins 'requestWillFetch()' method. ` +81 `The thrown error message was: '${thrownErrorMessage}'.`);82 },83 'invalid-cache-name': ({ cacheNameId, value }) => {84 if (!cacheNameId) {85 throw new Error(`Expected a 'cacheNameId' for error 'invalid-cache-name'`);86 }87 return (`You must provide a name containing at least one character for ` +88 `setCacheDetails({${cacheNameId}: '...'}). Received a value of ` +89 `'${JSON.stringify(value)}'`);90 },91 'unregister-route-but-not-found-with-method': ({ method }) => {92 if (!method) {93 throw new Error(`Unexpected input to ` +94 `'unregister-route-but-not-found-with-method' error.`);95 }96 return (`The route you're trying to unregister was not previously ` +97 `registered for the method type '${method}'.`);98 },99 'unregister-route-route-not-registered': () => {100 return (`The route you're trying to unregister was not previously ` +101 `registered.`);102 },103 'queue-replay-failed': ({ name }) => {104 return `Replaying the background sync queue '${name}' failed.`;105 },106 'duplicate-queue-name': ({ name }) => {107 return (`The Queue name '${name}' is already being used. ` +108 `All instances of backgroundSync.Queue must be given unique names.`);109 },110 'expired-test-without-max-age': ({ methodName, paramName }) => {111 return (`The '${methodName}()' method can only be used when the ` +112 `'${paramName}' is used in the constructor.`);113 },114 'unsupported-route-type': ({ moduleName, className, funcName, paramName }) => {115 return (`The supplied '${paramName}' parameter was an unsupported type. ` +116 `Please check the docs for ${moduleName}.${className}.${funcName} for ` +117 `valid input types.`);118 },119 'not-array-of-class': ({ value, expectedClass, moduleName, className, funcName, paramName, }) => {120 return (`The supplied '${paramName}' parameter must be an array of ` +121 `'${expectedClass}' objects. Received '${JSON.stringify(value)},'. ` +122 `Please check the call to ${moduleName}.${className}.${funcName}() ` +123 `to fix the issue.`);124 },125 'max-entries-or-age-required': ({ moduleName, className, funcName }) => {126 return (`You must define either config.maxEntries or config.maxAgeSeconds` +127 `in ${moduleName}.${className}.${funcName}`);128 },129 'statuses-or-headers-required': ({ moduleName, className, funcName }) => {130 return (`You must define either config.statuses or config.headers` +131 `in ${moduleName}.${className}.${funcName}`);132 },133 'invalid-string': ({ moduleName, funcName, paramName }) => {134 if (!paramName || !moduleName || !funcName) {135 throw new Error(`Unexpected input to 'invalid-string' error.`);136 }137 return (`When using strings, the '${paramName}' parameter must start with ` +138 `'http' (for cross-origin matches) or '/' (for same-origin matches). ` +139 `Please see the docs for ${moduleName}.${funcName}() for ` +140 `more info.`);141 },142 'channel-name-required': () => {143 return (`You must provide a channelName to construct a ` +144 `BroadcastCacheUpdate instance.`);145 },146 'invalid-responses-are-same-args': () => {147 return (`The arguments passed into responsesAreSame() appear to be ` +148 `invalid. Please ensure valid Responses are used.`);149 },150 'expire-custom-caches-only': () => {151 return (`You must provide a 'cacheName' property when using the ` +152 `expiration plugin with a runtime caching strategy.`);153 },154 'unit-must-be-bytes': ({ normalizedRangeHeader }) => {155 if (!normalizedRangeHeader) {156 throw new Error(`Unexpected input to 'unit-must-be-bytes' error.`);157 }158 return (`The 'unit' portion of the Range header must be set to 'bytes'. ` +159 `The Range header provided was "${normalizedRangeHeader}"`);160 },161 'single-range-only': ({ normalizedRangeHeader }) => {162 if (!normalizedRangeHeader) {163 throw new Error(`Unexpected input to 'single-range-only' error.`);164 }165 return (`Multiple ranges are not supported. Please use a single start ` +166 `value, and optional end value. The Range header provided was ` +167 `"${normalizedRangeHeader}"`);168 },169 'invalid-range-values': ({ normalizedRangeHeader }) => {170 if (!normalizedRangeHeader) {171 throw new Error(`Unexpected input to 'invalid-range-values' error.`);172 }173 return (`The Range header is missing both start and end values. At least ` +174 `one of those values is needed. The Range header provided was ` +175 `"${normalizedRangeHeader}"`);176 },177 'no-range-header': () => {178 return `No Range header was found in the Request provided.`;179 },180 'range-not-satisfiable': ({ size, start, end }) => {181 return (`The start (${start}) and end (${end}) values in the Range are ` +182 `not satisfiable by the cached response, which is ${size} bytes.`);183 },184 'attempt-to-cache-non-get-request': ({ url, method }) => {185 return (`Unable to cache '${url}' because it is a '${method}' request and ` +186 `only 'GET' requests can be cached.`);187 },188 'cache-put-with-no-response': ({ url }) => {189 return (`There was an attempt to cache '${url}' but the response was not ` +190 `defined.`);191 },192 'no-response': ({ url, error }) => {193 let message = `The strategy could not generate a response for '${url}'.`;194 if (error) {195 message += ` The underlying error is ${error}.`;196 }197 return message;198 },199 'bad-precaching-response': ({ url, status }) => {200 return (`The precaching request for '${url}' failed` +201 (status ? ` with an HTTP status of ${status}.` : `.`));202 },203 'non-precached-url': ({ url }) => {204 return (`createHandlerBoundToURL('${url}') was called, but that URL is ` +205 `not precached. Please pass in a URL that is precached instead.`);206 },207 'add-to-cache-list-conflicting-integrities': ({ url }) => {208 return (`Two of the entries passed to ` +209 `'workbox-precaching.PrecacheController.addToCacheList()' had the URL ` +210 `${url} with different integrity values. Please remove one of them.`);211 },212 'missing-precache-entry': ({ cacheName, url }) => {213 return `Unable to find a precached response in ${cacheName} for ${url}.`;214 },215 'cross-origin-copy-response': ({ origin }) => {216 return (`workbox-core.copyResponse() can only be used with same-origin ` +217 `responses. It was passed a response with origin ${origin}.`);218 },219 'opaque-streams-source': ({ type }) => {220 const message = `One of the workbox-streams sources resulted in an ` +221 `'${type}' response.`;222 if (type === 'opaqueredirect') {223 return (`${message} Please do not use a navigation request that results ` +224 `in a redirect as a source.`);225 }226 return `${message} Please ensure your sources are CORS-enabled.`;227 },228};229 