@liip/liipgpt 0.0.22 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -25,7 +25,10 @@ This package provides two main features:
25
25
  <!DOCTYPE html>
26
26
  <html>
27
27
  <head>
28
- <script type="module" src="https://unpkg.com/@liip/liipgpt/chat/liipgpt-chat.iife.js"></script>
28
+ <script
29
+ async
30
+ src="https://cdn.jsdelivr.net/npm/@liip/liipgpt@0.0.23/chat/liipgpt-chat.iife.js"
31
+ ></script>
29
32
  </head>
30
33
  <body>
31
34
  <liipgpt-chat org="..." api-url="..." api-key="..."></liipgpt-chat>
@@ -33,9 +36,11 @@ This package provides two main features:
33
36
  </html>
34
37
  ```
35
38
 
39
+ We recommend using `async` to load the script. If you are concerned that the script could slow down the site `defer` can also be used.
40
+
36
41
  ## Web Component Attributes
37
42
 
38
- - `org`: Is used to select theme and translation based on the organization. All available orgs are previewed here: [Preview](https://liipgpt.pages.liip.ch/liipgpt-chat/?org=liipgpt)
43
+ - `org`: Is used to select theme and translation based on the organization. All available orgs are previewed [here](https://liipgpt.pages.liip.ch/liipgpt-chat/?org=liipgpt).
39
44
  - `api-url`: URL to the chat backend
40
45
  - `api-key`: API key that can be configured in the admin ui
41
46
  - `lang` (optional): this can be used to control the chat ui language by the parent
package/chat/index.html CHANGED
@@ -23,7 +23,7 @@
23
23
 
24
24
  <script src="./liipgpt-chat.iife.js"></script>
25
25
  <script>
26
- const orgs = ["alva","default","liipgpt"];
26
+ const orgs = ["alva","default","luzern","liipgpt"];
27
27
 
28
28
  const sidebarTop = document.getElementById('sidebar__top');
29
29
  const sidebarCenter = document.getElementById('sidebar__center');