MCPcopy Create free account
hub / github.com/Noumena-Network/code / shouldUseGlobalCacheScope

Function shouldUseGlobalCacheScope

src/utils/betas.ts:232–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230 * treatment data is firstParty-only.
231 */
232export function shouldUseGlobalCacheScope(): boolean {
233 return (
234 getAPIProvider() === 'firstParty' &&
235 hasManagedPrincipalSession() &&
236 !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)
237 )
238}
239
240export const getAllModelBetas = memoize((model: string): string[] => {
241 const betaHeaders = []

Callers 4

splitSysPromptPrefixFunction · 0.85
betas.test.tsFile · 0.85
queryModelFunction · 0.85
getSystemPromptFunction · 0.85

Calls 3

isEnvTruthyFunction · 0.90
getAPIProviderFunction · 0.85

Tested by

no test coverage detected