@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const agnosticStorage: Storage;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Sources } from '../../../../../src/lib/liipgpt-client';
|
|
2
2
|
export type ChatMessageBot = {
|
|
3
3
|
type: 'bot';
|
|
4
4
|
/**
|
|
@@ -10,7 +10,7 @@ export type ChatMessageBot = {
|
|
|
10
10
|
html: string;
|
|
11
11
|
};
|
|
12
12
|
partial: boolean;
|
|
13
|
-
sources:
|
|
13
|
+
sources: Sources;
|
|
14
14
|
};
|
|
15
15
|
type ChatMessageLoading = {
|
|
16
16
|
type: 'bot-loading';
|
package/lib/liipgpt-client.d.ts
CHANGED
|
@@ -8,10 +8,11 @@ export type PredefinedQuestion = {
|
|
|
8
8
|
label: string | null;
|
|
9
9
|
question: string;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type ReferenceData = {
|
|
12
12
|
url: string;
|
|
13
13
|
title?: string;
|
|
14
|
-
|
|
14
|
+
referenceNumber: number;
|
|
15
|
+
usedNumber?: number;
|
|
15
16
|
domainName: string;
|
|
16
17
|
breadcrumb: [];
|
|
17
18
|
generated: {
|
|
@@ -19,6 +20,10 @@ export type Source = {
|
|
|
19
20
|
summary?: string;
|
|
20
21
|
};
|
|
21
22
|
};
|
|
23
|
+
export type Sources = {
|
|
24
|
+
all: ReferenceData[];
|
|
25
|
+
used: ReferenceData[];
|
|
26
|
+
};
|
|
22
27
|
type PredefinedQuestionsParams = {
|
|
23
28
|
url: string;
|
|
24
29
|
language: string;
|