MiniCPM5-2B-WebGPU-Pi-HTTP / app /src /pi /browser-host.mjs
Mike0021's picture
Enable browser HTTP commands with CORS-aware errors and bounded requests
39371ea verified
Raw History Blame Contribute Delete
329 Bytes
// Only Pi's terminal modules import this host adapter. No global Node shim.
export { Buffer } from 'buffer';
export const performance = globalThis.performance;
export const browserProcess = {
env: { TERM: 'xterm-256color', TERM_PROGRAM: 'xtermjs' },
platform: 'browser',
nextTick: callback => queueMicrotask(callback),
};