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 {dontWaitFor} from 'workbox-core/_private/dontWaitFor.js';10import {WorkboxPlugin} from 'workbox-core/types.js';11 12import {13 BroadcastCacheUpdate,14 BroadcastCacheUpdateOptions,15} from './BroadcastCacheUpdate.js';16 17import './_version.js';18 19/**20 * This plugin will automatically broadcast a message whenever a cached response21 * is updated.22 *23 * @memberof workbox-broadcast-update24 */25class BroadcastUpdatePlugin implements WorkboxPlugin {26 private readonly _broadcastUpdate: BroadcastCacheUpdate;27 28 /**29 * Construct a {@link workbox-broadcast-update.BroadcastUpdate} instance with30 * the passed options and calls its `notifyIfUpdated` method whenever the31 * plugin's `cacheDidUpdate` callback is invoked.32 *33 * @param {Object} [options]34 * @param {Array<string>} [options.headersToCheck=['content-length', 'etag', 'last-modified']]35 * A list of headers that will be used to determine whether the responses36 * differ.37 * @param {string} [options.generatePayload] A function whose return value38 * will be used as the `payload` field in any cache update messages sent39 * to the window clients.40 */41 constructor(options?: BroadcastCacheUpdateOptions) {42 this._broadcastUpdate = new BroadcastCacheUpdate(options);43 }44 45 /**46 * A "lifecycle" callback that will be triggered automatically by the47 * `workbox-sw` and `workbox-runtime-caching` handlers when an entry is48 * added to a cache.49 *50 * @private51 * @param {Object} options The input object to this function.52 * @param {string} options.cacheName Name of the cache being updated.53 * @param {Response} [options.oldResponse] The previous cached value, if any.54 * @param {Response} options.newResponse The new value in the cache.55 * @param {Request} options.request The request that triggered the update.56 * @param {Request} options.event The event that triggered the update.57 */58 cacheDidUpdate: WorkboxPlugin['cacheDidUpdate'] = async (options) => {59 dontWaitFor(this._broadcastUpdate.notifyIfUpdated(options));60 };61}62 63export {BroadcastUpdatePlugin};64 