/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45// These values are used as input for computing sha256 hashes for caching.6// Bump them to regenerate new cache entries or when the cache object shape changes.78/**9* Used for all ChatML requests (all models).10*/11export const CHAT_ML_CACHE_SALT_PER_MODEL: Record<string, string> = {12'DEFAULT': '2024-07-04T07:37:00Z',13'copilot-nes-oct': '2026-02-10T12:14:18.526Z',14};1516/**17* Used for all NES requests.18*/19export const OPENAI_FETCHER_CACHE_SALT: { getByUrl: (url: string) => string } = new class {20private readonly _cacheSaltByUrl: Record<string, string> = Object.freeze({21// Other endpoints22'DEFAULT': '2024-09-25T11:25:00Z',23});2425getByUrl(url: string): string {26if (url in this._cacheSaltByUrl) {27return this._cacheSaltByUrl[url];28} else {29return this._cacheSaltByUrl['DEFAULT'];30}31}32};3334/**35* Used for all Code Search requests.36*/37export const CODE_SEARCH_CACHE_SALT = '';3839/**40* Used for all diagnostics providers.41*/42export const CACHING_DIAGNOSTICS_PROVIDER_CACHE_SALT = 4;4344/**45* Used by the clang diagnostics provider.46*/47export const CLANG_DIAGNOSTICS_PROVIDER_CACHE_SALT = 5;4849/**50* Used by the TS diagnostics provider.51*/52export const TS_SERVER_DIAGNOSTICS_PROVIDER_CACHE_SALT = 5;5354/**55* Used by `isValidPythonFile`.56*/57export const PYTHON_VALID_SYNTAX_CACHE_SALT = 2;5859/**60* Used by `canExecutePythonCodeWithoutErrors`.61*/62export const PYTHON_EXECUTES_WITHOUT_ERRORS = 2;6364/**65* Used by `isValidNotebookCell`.66*/67export const NOTEBOOK_CELL_VALID_CACHE_SALT = 1;686970/**71* Used for all Chunking Endpoint requests.72*/73export const CHUNKING_ENDPOINT_CACHE_SALT = '';747576