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
0likes3kdownloads
CacheableResponsePlugin.ts59 linesDownload Raw Back to src
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 {WorkboxPlugin} from 'workbox-core/types.js';10import {11  CacheableResponse,12  CacheableResponseOptions,13} from './CacheableResponse.js';14import './_version.js';15 16/**17 * A class implementing the `cacheWillUpdate` lifecycle callback. This makes it18 * easier to add in cacheability checks to requests made via Workbox's built-in19 * strategies.20 *21 * @memberof workbox-cacheable-response22 */23class CacheableResponsePlugin implements WorkboxPlugin {24  private readonly _cacheableResponse: CacheableResponse;25 26  /**27   * To construct a new CacheableResponsePlugin instance you must provide at28   * least one of the `config` properties.29   *30   * If both `statuses` and `headers` are specified, then both conditions must31   * be met for the `Response` to be considered cacheable.32   *33   * @param {Object} config34   * @param {Array<number>} [config.statuses] One or more status codes that a35   * `Response` can have and be considered cacheable.36   * @param {Object<string,string>} [config.headers] A mapping of header names37   * and expected values that a `Response` can have and be considered cacheable.38   * If multiple headers are provided, only one needs to be present.39   */40  constructor(config: CacheableResponseOptions) {41    this._cacheableResponse = new CacheableResponse(config);42  }43 44  /**45   * @param {Object} options46   * @param {Response} options.response47   * @return {Response|null}48   * @private49   */50  cacheWillUpdate: WorkboxPlugin['cacheWillUpdate'] = async ({response}) => {51    if (this._cacheableResponse.isResponseCacheable(response)) {52      return response;53    }54    return null;55  };56}57 58export {CacheableResponsePlugin};59