UNPKG

web-llm-window

Version:

Window wrapper for web-llm library to access its API globally

16 lines (15 loc) 415 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const web_llm_1 = require("@mlc-ai/web-llm"); // export default class WebLLMClass { // constructor() { // console.log('initializing'); // } // } if (!window.WebLLM) { console.log('added new'); window.WebLLM = new web_llm_1.ChatModule(); } console.log('added'); console.log(window.WebLLM); // module.exports = WebLLMClass;