MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / browser-ai.worker.ts

File browser-ai.worker.ts

graph-ui/src/browser-ai/browser-ai.worker.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { AutoModelForCausalLM, AutoTokenizer, env, InterruptableStoppingCriteria, LogitsProcessorList, NoRepeatNGramLogitsProcessor, TextStreamer } from '@huggingface/transformers';
2import type { PreTrainedModel, PreTrainedTokenizer, Tensor } from '@huggingface/transformers';
3import wasmUrl from '../../node_modules/onnxruntime-web/dist/ort-wasm-simd-threaded.asyncify.wasm?url';
4import wasmLoaderUrl from '../../node_modules/onnxruntime-web/dist/ort-wasm-simd-threaded.asyncify.mjs?url';

Callers

nothing calls this directly

Calls 10

getBrowserModelFunction · 0.90
isPinnedModelRequestFunction · 0.90
isGpuRuntimeFailureFunction · 0.90
runtimeErrorDetailFunction · 0.90
postFunction · 0.85
generateFunction · 0.85
interruptMethod · 0.80
prepareFunction · 0.70
tokenizeFunction · 0.70
invalidateRuntimeFunction · 0.70

Tested by

no test coverage detected