@liip/liipgpt 0.0.13 → 0.0.15
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 +34 -1
- package/chat/liipgpt-chat.iife.js +213 -79
- package/lib/liipgpt-client.d.ts +10 -10
- package/lib/liipgpt-client.js +151 -124
- package/lib/liipgpt-client.umd.cjs +17 -17
- package/lib/tooltip.d.ts +12 -0
- package/package.json +1 -1
package/lib/liipgpt-client.d.ts
CHANGED
|
@@ -14,16 +14,16 @@ export type MenuItem = {
|
|
|
14
14
|
url: string;
|
|
15
15
|
target: string;
|
|
16
16
|
};
|
|
17
|
+
export type Language = 'en' | 'de' | 'fr' | 'it';
|
|
17
18
|
export type ReferenceData = {
|
|
18
19
|
url: string;
|
|
19
20
|
title?: string;
|
|
20
21
|
referenceNumber: number;
|
|
21
22
|
usedNumber?: number;
|
|
22
23
|
domainName: string;
|
|
23
|
-
breadcrumb: [];
|
|
24
|
+
breadcrumb: string[];
|
|
24
25
|
generated: {
|
|
25
|
-
|
|
26
|
-
summary?: string;
|
|
26
|
+
summary: string;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
export type Sources = {
|
|
@@ -34,10 +34,6 @@ type PredefinedQuestionsParams = {
|
|
|
34
34
|
url: string;
|
|
35
35
|
language: string;
|
|
36
36
|
};
|
|
37
|
-
type ClassificationParams = {
|
|
38
|
-
url: string;
|
|
39
|
-
language?: string;
|
|
40
|
-
};
|
|
41
37
|
type MenuParams = {
|
|
42
38
|
url: string;
|
|
43
39
|
language: string;
|
|
@@ -85,8 +81,10 @@ export type ClassificationConfig = {
|
|
|
85
81
|
};
|
|
86
82
|
};
|
|
87
83
|
type Classification = {
|
|
88
|
-
impact
|
|
89
|
-
quality
|
|
84
|
+
impact?: number;
|
|
85
|
+
quality?: number;
|
|
86
|
+
query?: string;
|
|
87
|
+
email?: string;
|
|
90
88
|
};
|
|
91
89
|
type ClientMetadata = {
|
|
92
90
|
mode: 'ready';
|
|
@@ -108,10 +106,12 @@ export declare class LiipGPTClient {
|
|
|
108
106
|
private fetchSSE;
|
|
109
107
|
quickFeedback(feedback: QuickFeedback): Promise<Response>;
|
|
110
108
|
feedback(feedback: Feedback): Promise<Response>;
|
|
111
|
-
getClassification(params
|
|
109
|
+
getClassification(params?: Record<string, string | undefined>): Promise<ClassificationConfig>;
|
|
112
110
|
classification(classification: Classification): Promise<Response>;
|
|
113
111
|
getPredefinedQuestions(params: PredefinedQuestionsParams): Promise<PredefinedQuestion[]>;
|
|
112
|
+
private getChatConfig;
|
|
114
113
|
getMenu(params: MenuParams): Promise<MenuItem[]>;
|
|
114
|
+
getUsedLanguages(): Promise<Language[]>;
|
|
115
115
|
private chatInternal;
|
|
116
116
|
chat(message: string, options?: ChatOptions): Readable<ChatResponse>;
|
|
117
117
|
search(query: string, options?: ChatOptions): Readable<ChatResponse>;
|