@sinequa/assistant 3.7.7 → 3.9.0
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/charts/chart/chart.component.d.ts +13 -13
- package/chat/chat-message/chat-message.component.d.ts +85 -81
- package/chat/chat-message/i18n/en.json +11 -0
- package/chat/chat-message/i18n/fr.json +11 -0
- package/chat/chat-reference/chat-reference.component.d.ts +14 -14
- package/chat/chat-reference/i18n/en.json +4 -0
- package/chat/chat-reference/i18n/fr.json +4 -0
- package/chat/chat-settings-v3/chat-settings-v3.component.d.ts +48 -49
- package/chat/chat-settings-v3/i18n/en.json +14 -0
- package/chat/chat-settings-v3/i18n/fr.json +14 -0
- package/chat/chat.component.d.ts +388 -1410
- package/chat/chat.service.d.ts +247 -228
- package/chat/debug-message/debug-message.component.d.ts +17 -17
- package/chat/debug-message/i18n/en.json +3 -0
- package/chat/debug-message/i18n/fr.json +3 -0
- package/chat/dialogs/delete-saved-chat.component.d.ts +22 -0
- package/chat/dialogs/i18n/en.json +19 -0
- package/chat/dialogs/i18n/fr.json +19 -0
- package/chat/dialogs/rename-saved-chat.component.d.ts +21 -0
- package/chat/dialogs/updates.component.d.ts +15 -0
- package/chat/documents-upload/document-list/document-list.component.d.ts +68 -0
- package/chat/documents-upload/document-overview/document-overview.component.d.ts +31 -0
- package/chat/documents-upload/document-upload/document-upload.component.d.ts +96 -0
- package/chat/documents-upload/documents-upload.model.d.ts +66 -0
- package/chat/documents-upload/documents-upload.service.d.ts +170 -0
- package/chat/documents-upload/i18n/en.json +24 -0
- package/chat/documents-upload/i18n/fr.json +24 -0
- package/chat/format-icon/format-icon.component.d.ts +10 -10
- package/chat/format-icon/icons.d.ts +5 -5
- package/chat/i18n/en.json +42 -0
- package/chat/i18n/fr.json +42 -0
- package/chat/index.d.ts +5 -5
- package/chat/initials-avatar/initials-avatar.component.d.ts +35 -35
- package/chat/instance-manager.service.d.ts +28 -28
- package/chat/pipes/message-content.pipe.d.ts +16 -0
- package/chat/prompt.component.d.ts +25 -21
- package/chat/public-api.d.ts +17 -12
- package/chat/references/i18n/en.json +6 -0
- package/chat/references/i18n/fr.json +6 -0
- package/chat/references/inline-image-reference.d.ts +21 -0
- package/chat/references/inline-page-reference.d.ts +21 -0
- package/chat/rest-chat.service.d.ts +31 -33
- package/chat/saved-chats/i18n/en.json +4 -0
- package/chat/saved-chats/i18n/fr.json +4 -0
- package/chat/saved-chats/saved-chats.component.d.ts +30 -36
- package/chat/services/app.service.d.ts +8 -0
- package/chat/services/dialog.service.d.ts +12 -0
- package/chat/services/notification.service.d.ts +10 -0
- package/chat/services/principal.service.d.ts +7 -0
- package/chat/services/search.service.d.ts +7 -0
- package/chat/services/signalR.web.service.d.ts +45 -0
- package/chat/services/ui.service.d.ts +13 -0
- package/chat/services/user-settings.service.d.ts +7 -0
- package/chat/styles/assistant.scss +2 -0
- package/chat/token-progress-bar/i18n/en.json +4 -0
- package/chat/token-progress-bar/i18n/fr.json +4 -0
- package/chat/token-progress-bar/token-progress-bar.component.d.ts +24 -27
- package/chat/tooltip/tooltip.component.d.ts +12 -0
- package/chat/tooltip/tooltip.directive.d.ts +81 -0
- package/chat/types/message-content.types.d.ts +54 -0
- package/chat/types/message-reference.types.d.ts +11 -0
- package/chat/types.d.ts +913 -817
- package/chat/unified-plugins/embedded-image-reference.plugin.d.ts +3 -0
- package/chat/unified-plugins/embedded-page-reference.plugin.d.ts +3 -0
- package/chat/utils/assistant-json.d.ts +2 -0
- package/chat/websocket-chat.service.d.ts +102 -103
- package/esm2022/chat/charts/chart/chart.component.mjs +40 -0
- package/esm2022/chat/chat-message/chat-message.component.mjs +351 -0
- package/esm2022/chat/chat-reference/chat-reference.component.mjs +40 -0
- package/esm2022/chat/chat-settings-v3/chat-settings-v3.component.mjs +118 -0
- package/esm2022/chat/chat.component.mjs +1090 -0
- package/esm2022/chat/chat.service.mjs +417 -0
- package/esm2022/chat/debug-message/debug-message.component.mjs +43 -0
- package/esm2022/chat/dialogs/delete-saved-chat.component.mjs +81 -0
- package/esm2022/chat/dialogs/rename-saved-chat.component.mjs +84 -0
- package/esm2022/chat/dialogs/updates.component.mjs +61 -0
- package/esm2022/chat/documents-upload/document-list/document-list.component.mjs +140 -0
- package/esm2022/chat/documents-upload/document-overview/document-overview.component.mjs +65 -0
- package/esm2022/chat/documents-upload/document-upload/document-upload.component.mjs +256 -0
- package/esm2022/chat/documents-upload/documents-upload.model.mjs +2 -0
- package/esm2022/chat/documents-upload/documents-upload.service.mjs +291 -0
- package/{esm2020 → esm2022}/chat/format-icon/format-icon.component.mjs +23 -23
- package/{esm2020 → esm2022}/chat/format-icon/icons.mjs +137 -137
- package/{esm2020 → esm2022}/chat/initials-avatar/initials-avatar.component.mjs +60 -60
- package/esm2022/chat/instance-manager.service.mjs +46 -0
- package/esm2022/chat/pipes/message-content.pipe.mjs +34 -0
- package/esm2022/chat/prompt.component.mjs +88 -0
- package/esm2022/chat/public-api.mjs +18 -0
- package/esm2022/chat/references/inline-image-reference.mjs +110 -0
- package/esm2022/chat/references/inline-page-reference.mjs +110 -0
- package/esm2022/chat/rest-chat.service.mjs +296 -0
- package/esm2022/chat/saved-chats/saved-chats.component.mjs +82 -0
- package/esm2022/chat/services/app.service.mjs +19 -0
- package/esm2022/chat/services/dialog.service.mjs +40 -0
- package/esm2022/chat/services/notification.service.mjs +25 -0
- package/esm2022/chat/services/principal.service.mjs +16 -0
- package/esm2022/chat/services/search.service.mjs +13 -0
- package/esm2022/chat/services/signalR.web.service.mjs +79 -0
- package/esm2022/chat/services/ui.service.mjs +61 -0
- package/esm2022/chat/services/user-settings.service.mjs +22 -0
- package/{esm2020 → esm2022}/chat/sinequa-assistant-chat.mjs +4 -4
- package/esm2022/chat/token-progress-bar/token-progress-bar.component.mjs +52 -0
- package/esm2022/chat/tooltip/tooltip.component.mjs +44 -0
- package/esm2022/chat/tooltip/tooltip.directive.mjs +203 -0
- package/esm2022/chat/types/message-content.types.mjs +2 -0
- package/esm2022/chat/types/message-reference.types.mjs +2 -0
- package/esm2022/chat/types.mjs +130 -0
- package/esm2022/chat/unified-plugins/embedded-image-reference.plugin.mjs +57 -0
- package/esm2022/chat/unified-plugins/embedded-page-reference.plugin.mjs +57 -0
- package/esm2022/chat/utils/assistant-json.mjs +12 -0
- package/esm2022/chat/websocket-chat.service.mjs +654 -0
- package/{esm2020 → esm2022}/public-api.mjs +2 -2
- package/{esm2020 → esm2022}/sinequa-assistant.mjs +4 -4
- package/fesm2022/sinequa-assistant-chat.mjs +5340 -0
- package/fesm2022/sinequa-assistant-chat.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/sinequa-assistant.mjs +3 -3
- package/index.d.ts +5 -5
- package/package.json +51 -22
- package/public-api.d.ts +1 -1
- package/chat/messages/de.d.ts +0 -4
- package/chat/messages/en.d.ts +0 -4
- package/chat/messages/fr.d.ts +0 -4
- package/chat/messages/index.d.ts +0 -4
- package/esm2020/chat/charts/chart/chart.component.mjs +0 -40
- package/esm2020/chat/chat-message/chat-message.component.mjs +0 -263
- package/esm2020/chat/chat-reference/chat-reference.component.mjs +0 -40
- package/esm2020/chat/chat-settings-v3/chat-settings-v3.component.mjs +0 -114
- package/esm2020/chat/chat.component.mjs +0 -1072
- package/esm2020/chat/chat.service.mjs +0 -333
- package/esm2020/chat/debug-message/debug-message.component.mjs +0 -43
- package/esm2020/chat/instance-manager.service.mjs +0 -46
- package/esm2020/chat/messages/de.mjs +0 -4
- package/esm2020/chat/messages/en.mjs +0 -4
- package/esm2020/chat/messages/fr.mjs +0 -4
- package/esm2020/chat/messages/index.mjs +0 -9
- package/esm2020/chat/prompt.component.mjs +0 -88
- package/esm2020/chat/public-api.mjs +0 -13
- package/esm2020/chat/rest-chat.service.mjs +0 -241
- package/esm2020/chat/saved-chats/saved-chats.component.mjs +0 -175
- package/esm2020/chat/token-progress-bar/token-progress-bar.component.mjs +0 -54
- package/esm2020/chat/types.mjs +0 -101
- package/esm2020/chat/websocket-chat.service.mjs +0 -641
- package/fesm2015/sinequa-assistant-chat.mjs +0 -3416
- package/fesm2015/sinequa-assistant-chat.mjs.map +0 -1
- package/fesm2020/sinequa-assistant-chat.mjs +0 -3388
- package/fesm2020/sinequa-assistant-chat.mjs.map +0 -1
- package/fesm2020/sinequa-assistant.mjs +0 -9
- package/fesm2020/sinequa-assistant.mjs.map +0 -1
- /package/{fesm2015 → fesm2022}/sinequa-assistant.mjs.map +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Chart } from 'chart.js';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ChartComponent implements OnChanges {
|
|
5
|
-
rawChartData: string;
|
|
6
|
-
chart: Chart;
|
|
7
|
-
private debounceTimer;
|
|
8
|
-
constructor();
|
|
9
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
-
private initializeChart;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "sq-assistant-chart", never, { "rawChartData": "rawChartData"; }, {}, never, never, true>;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Chart } from 'chart.js';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChartComponent implements OnChanges {
|
|
5
|
+
rawChartData: string;
|
|
6
|
+
chart: Chart;
|
|
7
|
+
private debounceTimer;
|
|
8
|
+
constructor();
|
|
9
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
+
private initializeChart;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "sq-assistant-chart", never, { "rawChartData": { "alias": "rawChartData"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -1,81 +1,85 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { UIService } from "
|
|
8
|
-
import "
|
|
9
|
-
import
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class ChatMessageComponent implements OnChanges, AfterViewInit {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, SimpleChanges } from "@angular/core";
|
|
2
|
+
import "prismjs-components-importer/esm";
|
|
3
|
+
import "prismjs/plugins/autoloader/prism-autoloader";
|
|
4
|
+
import { Processor } from "unified";
|
|
5
|
+
import { Node } from "unist";
|
|
6
|
+
import { PrincipalService } from "../services/principal.service";
|
|
7
|
+
import { UIService } from "../services/ui.service";
|
|
8
|
+
import { ChatContextAttachment, ChatMessage, SuggestedAction } from "../types";
|
|
9
|
+
import { MessageImageReference } from "../types/message-reference.types";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class ChatMessageComponent implements OnChanges, AfterViewInit {
|
|
12
|
+
ui: UIService;
|
|
13
|
+
principalService: PrincipalService;
|
|
14
|
+
cdr: ChangeDetectorRef;
|
|
15
|
+
el: ElementRef;
|
|
16
|
+
message: ChatMessage;
|
|
17
|
+
conversation: ChatMessage[];
|
|
18
|
+
suggestedActions: SuggestedAction[] | undefined;
|
|
19
|
+
assistantMessageIcon: string;
|
|
20
|
+
userMessageIcon: string;
|
|
21
|
+
connectionErrorMessageIcon: string;
|
|
22
|
+
searchWarningMessageIcon: string;
|
|
23
|
+
streaming: boolean;
|
|
24
|
+
canEdit: boolean;
|
|
25
|
+
canRegenerate: boolean;
|
|
26
|
+
canCopy: boolean;
|
|
27
|
+
canDebug: boolean;
|
|
28
|
+
canLike: boolean;
|
|
29
|
+
canDislike: boolean;
|
|
30
|
+
openDocument: EventEmitter<{
|
|
31
|
+
reference: ChatContextAttachment;
|
|
32
|
+
partId?: number;
|
|
33
|
+
}>;
|
|
34
|
+
openPreview: EventEmitter<{
|
|
35
|
+
reference: ChatContextAttachment;
|
|
36
|
+
partId?: number;
|
|
37
|
+
}>;
|
|
38
|
+
suggestAction: EventEmitter<SuggestedAction>;
|
|
39
|
+
edit: EventEmitter<ChatMessage>;
|
|
40
|
+
copy: EventEmitter<ChatMessage>;
|
|
41
|
+
regenerate: EventEmitter<ChatMessage>;
|
|
42
|
+
like: EventEmitter<any>;
|
|
43
|
+
dislike: EventEmitter<any>;
|
|
44
|
+
debug: EventEmitter<ChatMessage>;
|
|
45
|
+
processor: Processor;
|
|
46
|
+
references: string[];
|
|
47
|
+
referenceMap: Map<string, ChatContextAttachment>;
|
|
48
|
+
imageReferencesMap: Map<string, MessageImageReference>;
|
|
49
|
+
pageReferencesMap: Map<string, MessageImageReference>;
|
|
50
|
+
showReferences: boolean;
|
|
51
|
+
collapseProgress: boolean;
|
|
52
|
+
iconSize: number;
|
|
53
|
+
hiddenTooltip: boolean;
|
|
54
|
+
constructor(ui: UIService, principalService: PrincipalService, cdr: ChangeDetectorRef, el: ElementRef);
|
|
55
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
56
|
+
ngAfterViewInit(): void;
|
|
57
|
+
getEmbeddedImageReference(ref: string): MessageImageReference | undefined;
|
|
58
|
+
getEmbeddedPageReference(ref: string): MessageImageReference | undefined;
|
|
59
|
+
get name(): string;
|
|
60
|
+
get isAdmin(): boolean;
|
|
61
|
+
processMessageType(message: ChatMessage): void;
|
|
62
|
+
/**
|
|
63
|
+
* This Unified plugin looks a text nodes and replaces any reference in the
|
|
64
|
+
* form [1], [2.3], etc. with custom nodes of type "chat-reference".
|
|
65
|
+
*/
|
|
66
|
+
referencePlugin: (tree: Node) => Node<import("unist").Data>;
|
|
67
|
+
placeholderPlugin: (tree: Node) => Node<import("unist").Data>;
|
|
68
|
+
getLinkText(node: any): string;
|
|
69
|
+
/**
|
|
70
|
+
* Reformat [ids: 12.2, 42.5] to [12.2][42.5]
|
|
71
|
+
*/
|
|
72
|
+
reformatReferences(content: string): string;
|
|
73
|
+
/**
|
|
74
|
+
* Match all references in a given message
|
|
75
|
+
*/
|
|
76
|
+
getReferenceMatches(content: string): RegExpExecArray[];
|
|
77
|
+
private _copyToClipboard;
|
|
78
|
+
copyMessage(message: ChatMessage): void;
|
|
79
|
+
copyCode(code: string): void;
|
|
80
|
+
openAttachmentPreview(attachment: ChatContextAttachment, partId?: number): void;
|
|
81
|
+
openOriginalAttachment(attachment: ChatContextAttachment, partId?: number): void;
|
|
82
|
+
hideTooltip(): void;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatMessageComponent, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatMessageComponent, "sq-chat-message", never, { "message": { "alias": "message"; "required": false; }; "conversation": { "alias": "conversation"; "required": false; }; "suggestedActions": { "alias": "suggestedActions"; "required": false; }; "assistantMessageIcon": { "alias": "assistantMessageIcon"; "required": false; }; "userMessageIcon": { "alias": "userMessageIcon"; "required": false; }; "connectionErrorMessageIcon": { "alias": "connectionErrorMessageIcon"; "required": false; }; "searchWarningMessageIcon": { "alias": "searchWarningMessageIcon"; "required": false; }; "streaming": { "alias": "streaming"; "required": false; }; "canEdit": { "alias": "canEdit"; "required": false; }; "canRegenerate": { "alias": "canRegenerate"; "required": false; }; "canCopy": { "alias": "canCopy"; "required": false; }; "canDebug": { "alias": "canDebug"; "required": false; }; "canLike": { "alias": "canLike"; "required": false; }; "canDislike": { "alias": "canDislike"; "required": false; }; }, { "openDocument": "openDocument"; "openPreview": "openPreview"; "suggestAction": "suggestAction"; "edit": "edit"; "copy": "copy"; "regenerate": "regenerate"; "like": "like"; "dislike": "dislike"; "debug": "debug"; }, never, never, true, never>;
|
|
85
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"viewProgress": "View progress",
|
|
3
|
+
"copyCode": "Copy code",
|
|
4
|
+
"references": "References",
|
|
5
|
+
"copyText": "Copy text",
|
|
6
|
+
"editMessage": "Edit message",
|
|
7
|
+
"likeAnswer": "Like the answer",
|
|
8
|
+
"reportIssue": "Report an issue",
|
|
9
|
+
"regenerateResponse": "Regenerate response",
|
|
10
|
+
"showLogInformation": "Show log information"
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"viewProgress": "Voir la progression",
|
|
3
|
+
"copyCode": "Copier le code",
|
|
4
|
+
"references": "Références",
|
|
5
|
+
"copyText": "Copier le texte",
|
|
6
|
+
"editMessage": "Modifier le message",
|
|
7
|
+
"likeAnswer": "Aimer la réponse",
|
|
8
|
+
"reportIssue": "Signaler un problème",
|
|
9
|
+
"regenerateResponse": "Régénérer la réponse",
|
|
10
|
+
"showLogInformation": "Afficher les informations de journal"
|
|
11
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { ChatContextAttachment, DocumentPart } from '../types';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ChatReferenceComponent {
|
|
5
|
-
reference: string;
|
|
6
|
-
attachment: ChatContextAttachment;
|
|
7
|
-
partId?: number;
|
|
8
|
-
openDocument: EventEmitter<ChatContextAttachment>;
|
|
9
|
-
openPreview: EventEmitter<ChatContextAttachment>;
|
|
10
|
-
get parts(): DocumentPart[];
|
|
11
|
-
expandAttachment(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatReferenceComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChatReferenceComponent, "sq-chat-reference", never, { "reference": "reference"; "attachment": "attachment"; "partId": "partId"; }, { "openDocument": "openDocument"; "openPreview": "openPreview"; }, never, never, true>;
|
|
14
|
-
}
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ChatContextAttachment, DocumentPart } from '../types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChatReferenceComponent {
|
|
5
|
+
reference: string;
|
|
6
|
+
attachment: ChatContextAttachment;
|
|
7
|
+
partId?: number;
|
|
8
|
+
openDocument: EventEmitter<ChatContextAttachment>;
|
|
9
|
+
openPreview: EventEmitter<ChatContextAttachment>;
|
|
10
|
+
get parts(): DocumentPart[];
|
|
11
|
+
expandAttachment(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatReferenceComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatReferenceComponent, "sq-chat-reference", never, { "reference": { "alias": "reference"; "required": false; }; "attachment": { "alias": "attachment"; "required": false; }; "partId": { "alias": "partId"; "required": false; }; }, { "openDocument": "openDocument"; "openPreview": "openPreview"; }, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -1,49 +1,48 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
get
|
|
31
|
-
get
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
*
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
static
|
|
48
|
-
|
|
49
|
-
}
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { Subscription } from "rxjs";
|
|
3
|
+
import { ChatService } from "../chat.service";
|
|
4
|
+
import { InstanceManagerService } from "../instance-manager.service";
|
|
5
|
+
import { ChatConfig, GllmModelDescription } from "../types";
|
|
6
|
+
import { AppService } from "../services/app.service";
|
|
7
|
+
import { PrincipalService } from "../services/principal.service";
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class ChatSettingsV3Component implements OnInit, OnDestroy {
|
|
10
|
+
/** Define the key based on it, the appropriate chatService instance will be returned from instanceManagerService */
|
|
11
|
+
instanceId: string;
|
|
12
|
+
_update: EventEmitter<ChatConfig>;
|
|
13
|
+
_cancel: EventEmitter<ChatConfig>;
|
|
14
|
+
chatService: ChatService;
|
|
15
|
+
config: ChatConfig;
|
|
16
|
+
subscription: Subscription;
|
|
17
|
+
selectedModel: GllmModelDescription | undefined;
|
|
18
|
+
functions: {
|
|
19
|
+
name: string;
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
}[];
|
|
22
|
+
isAdmin: boolean;
|
|
23
|
+
showDebugToggle: boolean;
|
|
24
|
+
instanceManagerService: InstanceManagerService;
|
|
25
|
+
principalService: PrincipalService;
|
|
26
|
+
appService: AppService;
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
get hasPrompts(): boolean;
|
|
30
|
+
get hasAdvancedParameters(): boolean;
|
|
31
|
+
get hasModel(): boolean;
|
|
32
|
+
instantiateChatService(): void;
|
|
33
|
+
onChatModelChange(selectedModel: GllmModelDescription): void;
|
|
34
|
+
getFunctionDescription(name: string): string;
|
|
35
|
+
toggleFunctionsSelection(name: string): void;
|
|
36
|
+
private initFunctionsList;
|
|
37
|
+
/**
|
|
38
|
+
* Save the new chat config in the chat service and the user preferences
|
|
39
|
+
* If the user has never modified the default values, we need to save the hash of the standard default values, as defined by the admin, in order to properly track changes afterwards.
|
|
40
|
+
*/
|
|
41
|
+
save(): Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
* Cancel the current changes
|
|
44
|
+
*/
|
|
45
|
+
cancel(): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatSettingsV3Component, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatSettingsV3Component, "sq-chat-settings-v3", never, { "instanceId": { "alias": "instanceId"; "required": false; }; }, { "_update": "update"; "_cancel": "cancel"; }, never, never, true, never>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"model": "Model",
|
|
3
|
+
"functions": "Functions",
|
|
4
|
+
"debug": "Debug",
|
|
5
|
+
"advancedParameters": "Advanced parameters",
|
|
6
|
+
"temperature": "Temperature",
|
|
7
|
+
"topP": "Top P",
|
|
8
|
+
"MaxGeneratedTokens": "Max generated tokens per answer",
|
|
9
|
+
"Prompts": "Prompts",
|
|
10
|
+
"systemPrompt": "System prompt (hidden)",
|
|
11
|
+
"initialUserPrompt": "Initial user prompt",
|
|
12
|
+
"cancel": "Cancel",
|
|
13
|
+
"save": "Save"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"model": "Modèle",
|
|
3
|
+
"functions": "Fonctions",
|
|
4
|
+
"debug": "Déboguer",
|
|
5
|
+
"advancedParameters": "Paramètres avancés",
|
|
6
|
+
"temperature": "Température",
|
|
7
|
+
"topP": "Top P",
|
|
8
|
+
"MaxGeneratedTokens": "Nombre maximal de tokens générés par réponse",
|
|
9
|
+
"Prompts": "Prompts",
|
|
10
|
+
"systemPrompt": "Prompt système (caché)",
|
|
11
|
+
"initialUserPrompt": "Prompt utilisateur initial",
|
|
12
|
+
"cancel": "Annuler",
|
|
13
|
+
"save": "Enregistrer"
|
|
14
|
+
}
|