Team Ai
Datasetpublic

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.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
Strategy.d.ts108 linesDownload Raw Back to workbox-strategies
1import { HandlerCallbackOptions, RouteHandlerObject, WorkboxPlugin } from 'workbox-core/types.js';2import { StrategyHandler } from './StrategyHandler.js';3import './_version.js';4export interface StrategyOptions {5    cacheName?: string;6    plugins?: WorkboxPlugin[];7    fetchOptions?: RequestInit;8    matchOptions?: CacheQueryOptions;9}10/**11 * An abstract base class that all other strategy classes must extend from:12 *13 * @memberof workbox-strategies14 */15declare abstract class Strategy implements RouteHandlerObject {16    cacheName: string;17    plugins: WorkboxPlugin[];18    fetchOptions?: RequestInit;19    matchOptions?: CacheQueryOptions;20    protected abstract _handle(request: Request, handler: StrategyHandler): Promise<Response | undefined>;21    /**22     * Creates a new instance of the strategy and sets all documented option23     * properties as public instance properties.24     *25     * Note: if a custom strategy class extends the base Strategy class and does26     * not need more than these properties, it does not need to define its own27     * constructor.28     *29     * @param {Object} [options]30     * @param {string} [options.cacheName] Cache name to store and retrieve31     * requests. Defaults to the cache names provided by32     * {@link workbox-core.cacheNames}.33     * @param {Array<Object>} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins}34     * to use in conjunction with this caching strategy.35     * @param {Object} [options.fetchOptions] Values passed along to the36     * [`init`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters)37     * of [non-navigation](https://github.com/GoogleChrome/workbox/issues/1796)38     * `fetch()` requests made by this strategy.39     * @param {Object} [options.matchOptions] The40     * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions}41     * for any `cache.match()` or `cache.put()` calls made by this strategy.42     */43    constructor(options?: StrategyOptions);44    /**45     * Perform a request strategy and returns a `Promise` that will resolve with46     * a `Response`, invoking all relevant plugin callbacks.47     *48     * When a strategy instance is registered with a Workbox49     * {@link workbox-routing.Route}, this method is automatically50     * called when the route matches.51     *52     * Alternatively, this method can be used in a standalone `FetchEvent`53     * listener by passing it to `event.respondWith()`.54     *55     * @param {FetchEvent|Object} options A `FetchEvent` or an object with the56     *     properties listed below.57     * @param {Request|string} options.request A request to run this strategy for.58     * @param {ExtendableEvent} options.event The event associated with the59     *     request.60     * @param {URL} [options.url]61     * @param {*} [options.params]62     */63    handle(options: FetchEvent | HandlerCallbackOptions): Promise<Response>;64    /**65     * Similar to {@link workbox-strategies.Strategy~handle}, but66     * instead of just returning a `Promise` that resolves to a `Response` it67     * it will return an tuple of `[response, done]` promises, where the former68     * (`response`) is equivalent to what `handle()` returns, and the latter is a69     * Promise that will resolve once any promises that were added to70     * `event.waitUntil()` as part of performing the strategy have completed.71     *72     * You can await the `done` promise to ensure any extra work performed by73     * the strategy (usually caching responses) completes successfully.74     *75     * @param {FetchEvent|Object} options A `FetchEvent` or an object with the76     *     properties listed below.77     * @param {Request|string} options.request A request to run this strategy for.78     * @param {ExtendableEvent} options.event The event associated with the79     *     request.80     * @param {URL} [options.url]81     * @param {*} [options.params]82     * @return {Array<Promise>} A tuple of [response, done]83     *     promises that can be used to determine when the response resolves as84     *     well as when the handler has completed all its work.85     */86    handleAll(options: FetchEvent | HandlerCallbackOptions): [Promise<Response>, Promise<void>];87    _getResponse(handler: StrategyHandler, request: Request, event: ExtendableEvent): Promise<Response>;88    _awaitComplete(responseDone: Promise<Response>, handler: StrategyHandler, request: Request, event: ExtendableEvent): Promise<void>;89}90export { Strategy };91/**92 * Classes extending the `Strategy` based class should implement this method,93 * and leverage the {@link workbox-strategies.StrategyHandler}94 * arg to perform all fetching and cache logic, which will ensure all relevant95 * cache, cache options, fetch options and plugins are used (per the current96 * strategy instance).97 *98 * @name _handle99 * @instance100 * @abstract101 * @function102 * @param {Request} request103 * @param {workbox-strategies.StrategyHandler} handler104 * @return {Promise<Response>}105 *106 * @memberof workbox-strategies.Strategy107 */108 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai