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*/8 9import {assert} from 'workbox-core/_private/assert.js';10import {HTTPMethod, defaultMethod, validMethods} from './utils/constants.js';11import {normalizeHandler} from './utils/normalizeHandler.js';12import {13 RouteHandler,14 RouteHandlerObject,15 RouteMatchCallback,16} from 'workbox-core/types.js';17import './_version.js';18 19/**20 * A `Route` consists of a pair of callback functions, "match" and "handler".21 * The "match" callback determine if a route should be used to "handle" a22 * request by returning a non-falsy value if it can. The "handler" callback23 * is called when there is a match and should return a Promise that resolves24 * to a `Response`.25 *26 * @memberof workbox-routing27 */28class Route {29 handler: RouteHandlerObject;30 match: RouteMatchCallback;31 method: HTTPMethod;32 catchHandler?: RouteHandlerObject;33 34 /**35 * Constructor for Route class.36 *37 * @param {workbox-routing~matchCallback} match38 * A callback function that determines whether the route matches a given39 * `fetch` event by returning a non-falsy value.40 * @param {workbox-routing~handlerCallback} handler A callback41 * function that returns a Promise resolving to a Response.42 * @param {string} [method='GET'] The HTTP method to match the Route43 * against.44 */45 constructor(46 match: RouteMatchCallback,47 handler: RouteHandler,48 method: HTTPMethod = defaultMethod,49 ) {50 if (process.env.NODE_ENV !== 'production') {51 assert!.isType(match, 'function', {52 moduleName: 'workbox-routing',53 className: 'Route',54 funcName: 'constructor',55 paramName: 'match',56 });57 58 if (method) {59 assert!.isOneOf(method, validMethods, {paramName: 'method'});60 }61 }62 63 // These values are referenced directly by Router so cannot be64 // altered by minificaton.65 this.handler = normalizeHandler(handler);66 this.match = match;67 this.method = method;68 }69 70 /**71 *72 * @param {workbox-routing-handlerCallback} handler A callback73 * function that returns a Promise resolving to a Response74 */75 setCatchHandler(handler: RouteHandler): void {76 this.catchHandler = normalizeHandler(handler);77 }78}79 80export {Route};81 