MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / isDictDownloaded

Function isDictDownloaded

packages/node-runtime/src/nlp/dict-manager.ts:29–31  ·  view source on GitHub ↗
(nlpDir: string, dictId: string)

Source from the content-addressed store, hash-verified

27}
28
29export function isDictDownloaded(nlpDir: string, dictId: string): boolean {
30 return fs.existsSync(getDictFilePath(nlpDir, dictId))
31}
32
33export function getDictList(nlpDir: string): DictInfo[] {
34 return AVAILABLE_DICTS.map((d) => {

Callers 2

registerNlpRoutesFunction · 0.90
ensureDefaultDictFunction · 0.70

Calls 1

getDictFilePathFunction · 0.85

Tested by

no test coverage detected