main
js 19 lines 743 Bytes
Raw
1 // Add RunLLM widget
2 document.addEventListener("DOMContentLoaded", function () {
3 var script = document.createElement("script");
4 script.type = "module";
5 script.id = "runllm-widget-script"
6
7 script.src = "https://widget.runllm.com";
8
9 script.setAttribute("version", "stable");
10 script.setAttribute("runllm-keyboard-shortcut", "Mod+j"); // cmd-j or ctrl-j to open the widget.
11 script.setAttribute("runllm-name", "vLLM");
12 script.setAttribute("runllm-position", "BOTTOM_RIGHT");
13 script.setAttribute("runllm-position-y", "120px");
14 script.setAttribute("runllm-position-x", "20px");
15 script.setAttribute("runllm-assistant-id", "207");
16
17 script.async = true;
18 document.head.appendChild(script);
19 });