[Docs] Add RunLLM chat widget (#6857)

This commit is contained in:
Chenggang Wu
2024-07-27 09:24:46 -07:00
committed by GitHub
parent 1ad86acf17
commit f954d0715c
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
document.addEventListener("DOMContentLoaded", function () {
var script = document.createElement("script");
script.type = "module";
script.id = "runllm-widget-script"
script.src = "https://widget.runllm.com";
script.setAttribute("version", "stable");
script.setAttribute("runllm-keyboard-shortcut", "Mod+j"); // cmd-j or ctrl-j to open the widget.
script.setAttribute("runllm-name", "vLLM");
script.setAttribute("runllm-position", "BOTTOM_RIGHT");
script.setAttribute("runllm-assistant-id", "207");
script.async = true;
document.head.appendChild(script);
});