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

Function getFreeModeAccessTier

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

Source from the content-addressed store, hash-verified

79) => Promise<FreeModeIpPrivacy | null>
80
81export function getFreeModeAccessTier(
82 countryAccess: Pick<FreeModeCountryAccess, 'allowed'>,
83): FreebuffAccessTier {
84 return countryAccess.allowed ? 'full' : 'limited'
85}
86
87export type FreeModeCountryAccessOptions = {
88 lookupIpPrivacy?: LookupIpPrivacyFn

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected