MCPcopy
hub / github.com/CodebuffAI/codebuff / shouldHardBlockFreeModeAccess

Function shouldHardBlockFreeModeAccess

web/src/server/free-mode-country.ts:141–148  ·  view source on GitHub ↗
(
  countryAccess: Pick<
    FreeModeCountryAccess,
    'cfCountry'
  >,
)

Source from the content-addressed store, hash-verified

139}
140
141export function shouldHardBlockFreeModeAccess(
142 countryAccess: Pick<
143 FreeModeCountryAccess,
144 'cfCountry'
145 >,
146): boolean {
147 return countryAccess.cfCountry === CLOUDFLARE_TOR_COUNTRY
148}
149
150export function getFreeModePrivacyDecision(
151 countryAccess: Pick<

Callers 6

logCountryAccessFunction · 0.90
postFreebuffSessionFunction · 0.90
getFreebuffSessionFunction · 0.90
postChatCompletionsFunction · 0.90
shouldCacheCountryAccessFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected