@liip/liipgpt 0.0.4 → 0.0.7
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/chat/index.html +6 -2
- package/chat/liipgpt-chat.iife.js +562 -56
- package/lib/agnostic-storage.d.ts +1 -0
- package/lib/chat-message-types.d.ts +2 -2
- package/lib/liipgpt-client.d.ts +7 -2
- package/lib/liipgpt-client.js +1189 -707
- package/lib/liipgpt-client.umd.cjs +49 -43
- package/lib/sse-types.d.ts +0 -1
- package/lib/utils.d.ts +4 -2
- package/package.json +1 -1
package/chat/index.html
CHANGED
|
@@ -31,11 +31,13 @@
|
|
|
31
31
|
chat = document.createElement('liipgpt-chat');
|
|
32
32
|
chat.id = 'chat';
|
|
33
33
|
chat.setAttribute('org', org);
|
|
34
|
-
chat.setAttribute('apiUrl', 'https://liipgpt
|
|
34
|
+
chat.setAttribute('apiUrl', 'https://liipgpt.api.dev.genai.liip.ch/liipgpt');
|
|
35
35
|
chat.setAttribute('apiKey', 'X9hL4Gp5W2D7eRtF');
|
|
36
36
|
document.getElementById('body').appendChild(chat);
|
|
37
37
|
|
|
38
|
-
window.
|
|
38
|
+
const url = new URL(window.location.href);
|
|
39
|
+
url.searchParams.set('org', org);
|
|
40
|
+
window.history.pushState({}, '', url.toString());
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
const params = new URLSearchParams(window.location.search);
|
|
@@ -51,6 +53,7 @@
|
|
|
51
53
|
height: 100%;
|
|
52
54
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
|
|
53
55
|
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
56
|
+
color: black;
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
#body {
|
|
@@ -79,6 +82,7 @@
|
|
|
79
82
|
border: 1px solid #ddd;
|
|
80
83
|
border-radius: 4px;
|
|
81
84
|
background-color: white;
|
|
85
|
+
color: black;
|
|
82
86
|
cursor: pointer;
|
|
83
87
|
transition: background-color 0.2s;
|
|
84
88
|
}
|