MCPcopy Create free account
hub / github.com/aetherstate/GODMOD3.AI / getConfig

Function getConfig

api/lib/hf-reader.ts:22–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20const HF_API = 'https://huggingface.co/api'
21
22function getConfig() {
23 return {
24 token: process.env.HF_TOKEN || '',
25 repo: process.env.HF_DATASET_REPO || 'pliny-the-prompter/g0dm0d3',
26 branch: process.env.HF_DATASET_BRANCH || 'main',
27 }
28}
29
30export function isReaderEnabled(): boolean {
31 const { token, repo } = getConfig()

Callers 4

isReaderEnabledFunction · 0.70
fetchFileListFunction · 0.70
readBatchFunction · 0.70
getCorpusStatsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected