deep-chat-dev 1.1.37 → 1.3.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/README.md +4 -4
- package/custom-elements.json +1970 -2200
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.d.ts +5 -2
- package/dist/deepChat.d.ts.map +1 -1
- package/dist/deepChat.js +9606 -5906
- package/dist/services/assemblyAI/assemblyAIAudioIO.d.ts +3 -4
- package/dist/services/assemblyAI/assemblyAIAudioIO.d.ts.map +1 -1
- package/dist/services/azure/azureSpeechToTextIO.d.ts +3 -4
- package/dist/services/azure/azureSpeechToTextIO.d.ts.map +1 -1
- package/dist/services/azure/azureSummarizationIO.d.ts +2 -3
- package/dist/services/azure/azureSummarizationIO.d.ts.map +1 -1
- package/dist/services/azure/azureTextToSpeechIO.d.ts +3 -4
- package/dist/services/azure/azureTextToSpeechIO.d.ts.map +1 -1
- package/dist/services/azure/azureTranslationIO.d.ts +3 -4
- package/dist/services/azure/azureTranslationIO.d.ts.map +1 -1
- package/dist/services/cohere/cohereChatIO.d.ts +3 -4
- package/dist/services/cohere/cohereChatIO.d.ts.map +1 -1
- package/dist/services/cohere/cohereSummarizationIO.d.ts +3 -4
- package/dist/services/cohere/cohereSummarizationIO.d.ts.map +1 -1
- package/dist/services/cohere/cohereTextGenerationIO.d.ts +3 -4
- package/dist/services/cohere/cohereTextGenerationIO.d.ts.map +1 -1
- package/dist/services/huggingFace/huggingFaceAudioClassificationIO.d.ts.map +1 -1
- package/dist/services/huggingFace/huggingFaceConversationIO.d.ts +2 -2
- package/dist/services/huggingFace/huggingFaceConversationIO.d.ts.map +1 -1
- package/dist/services/huggingFace/huggingFaceFileIO.d.ts +2 -2
- package/dist/services/huggingFace/huggingFaceFileIO.d.ts.map +1 -1
- package/dist/services/huggingFace/huggingFaceFillMaskIO.d.ts +2 -2
- package/dist/services/huggingFace/huggingFaceFillMaskIO.d.ts.map +1 -1
- package/dist/services/huggingFace/huggingFaceIO.d.ts +2 -2
- package/dist/services/huggingFace/huggingFaceIO.d.ts.map +1 -1
- package/dist/services/huggingFace/huggingFaceQuestionAnswerIO.d.ts +2 -2
- package/dist/services/huggingFace/huggingFaceQuestionAnswerIO.d.ts.map +1 -1
- package/dist/services/huggingFace/huggingFaceSummarizationIO.d.ts +2 -2
- package/dist/services/huggingFace/huggingFaceSummarizationIO.d.ts.map +1 -1
- package/dist/services/huggingFace/huggingFaceTextGenerationIO.d.ts +2 -2
- package/dist/services/huggingFace/huggingFaceTextGenerationIO.d.ts.map +1 -1
- package/dist/services/huggingFace/huggingFaceTranslationIO.d.ts +2 -2
- package/dist/services/huggingFace/huggingFaceTranslationIO.d.ts.map +1 -1
- package/dist/services/openAI/openAIAudioIO.d.ts +3 -4
- package/dist/services/openAI/openAIAudioIO.d.ts.map +1 -1
- package/dist/services/openAI/openAIChatIO.d.ts +3 -4
- package/dist/services/openAI/openAIChatIO.d.ts.map +1 -1
- package/dist/services/openAI/openAICompletionsIO.d.ts +3 -4
- package/dist/services/openAI/openAICompletionsIO.d.ts.map +1 -1
- package/dist/services/openAI/openAIImagesIO.d.ts +3 -4
- package/dist/services/openAI/openAIImagesIO.d.ts.map +1 -1
- package/dist/services/serviceIO.d.ts +8 -5
- package/dist/services/serviceIO.d.ts.map +1 -1
- package/dist/services/stabilityAI/stabilityAIImageToImageIO.d.ts +3 -4
- package/dist/services/stabilityAI/stabilityAIImageToImageIO.d.ts.map +1 -1
- package/dist/services/stabilityAI/stabilityAIImageToImageMaskingIO.d.ts +3 -4
- package/dist/services/stabilityAI/stabilityAIImageToImageMaskingIO.d.ts.map +1 -1
- package/dist/services/stabilityAI/stabilityAIImageToImageUpscaleIO.d.ts +3 -4
- package/dist/services/stabilityAI/stabilityAIImageToImageUpscaleIO.d.ts.map +1 -1
- package/dist/services/stabilityAI/stabilityAITextToImageIO.d.ts +3 -4
- package/dist/services/stabilityAI/stabilityAITextToImageIO.d.ts.map +1 -1
- package/dist/services/utils/baseServiceIO.d.ts +7 -7
- package/dist/services/utils/baseServiceIO.d.ts.map +1 -1
- package/dist/services/utils/directServiceIO.d.ts.map +1 -1
- package/dist/types/demo.d.ts +4 -1
- package/dist/types/demo.d.ts.map +1 -1
- package/dist/types/interceptors.d.ts +6 -2
- package/dist/types/interceptors.d.ts.map +1 -1
- package/dist/types/request.d.ts +2 -0
- package/dist/types/request.d.ts.map +1 -1
- package/dist/types/{result.d.ts → response.d.ts} +3 -2
- package/dist/types/response.d.ts.map +1 -0
- package/dist/types/stream.d.ts +4 -0
- package/dist/types/stream.d.ts.map +1 -0
- package/dist/types/textInput.d.ts +1 -0
- package/dist/types/textInput.d.ts.map +1 -1
- package/dist/utils/HTTP/HTTPRequest.d.ts +4 -7
- package/dist/utils/HTTP/HTTPRequest.d.ts.map +1 -1
- package/dist/utils/HTTP/customRequest.d.ts +7 -0
- package/dist/utils/HTTP/customRequest.d.ts.map +1 -0
- package/dist/utils/HTTP/requestUtils.d.ts +10 -2
- package/dist/utils/HTTP/requestUtils.d.ts.map +1 -1
- package/dist/utils/HTTP/stream.d.ts +10 -0
- package/dist/utils/HTTP/stream.d.ts.map +1 -0
- package/dist/utils/HTTP/websocket.d.ts +5 -6
- package/dist/utils/HTTP/websocket.d.ts.map +1 -1
- package/dist/utils/demo/demo.d.ts +4 -2
- package/dist/utils/demo/demo.d.ts.map +1 -1
- package/dist/utils/errorMessages/errorMessages.d.ts +4 -0
- package/dist/utils/errorMessages/errorMessages.d.ts.map +1 -1
- package/dist/utils/events/fireEvents.d.ts +1 -0
- package/dist/utils/events/fireEvents.d.ts.map +1 -1
- package/dist/views/chat/input/buttons/submit/submitButton.d.ts +1 -0
- package/dist/views/chat/input/buttons/submit/submitButton.d.ts.map +1 -1
- package/dist/views/chat/input/textInput/textInput.d.ts +2 -0
- package/dist/views/chat/input/textInput/textInput.d.ts.map +1 -1
- package/dist/views/chat/introPanel/introPanel.d.ts +1 -0
- package/dist/views/chat/introPanel/introPanel.d.ts.map +1 -1
- package/dist/views/chat/messages/fileMessages.d.ts.map +1 -1
- package/dist/views/chat/messages/messages.d.ts +8 -2
- package/dist/views/chat/messages/messages.d.ts.map +1 -1
- package/package.json +12 -5
- package/dist/types/customService.d.ts +0 -6
- package/dist/types/customService.d.ts.map +0 -1
- package/dist/types/result.d.ts.map +0 -1
@@ -1,9 +1,8 @@
|
|
1
|
-
import { CompletionsHandlers, StreamHandlers } from '../serviceIO';
|
2
1
|
import { AssemblyAIResult } from '../../types/assemblyAIResult';
|
3
2
|
import { Messages } from '../../views/chat/messages/messages';
|
4
3
|
import { DirectServiceIO } from '../utils/directServiceIO';
|
5
4
|
import { MessageContent } from '../../types/messages';
|
6
|
-
import {
|
5
|
+
import { Response } from '../../types/response';
|
7
6
|
import { DeepChat } from '../../deepChat';
|
8
7
|
export declare class AssemblyAIAudioIO extends DirectServiceIO {
|
9
8
|
insertKeyPlaceholderText: string;
|
@@ -15,7 +14,7 @@ export declare class AssemblyAIAudioIO extends DirectServiceIO {
|
|
15
14
|
permittedErrorPrefixes: string[];
|
16
15
|
constructor(deepChat: DeepChat);
|
17
16
|
private static canFileSendMessage;
|
18
|
-
callServiceAPI(messages: Messages, _: MessageContent[],
|
19
|
-
extractResultData(result: AssemblyAIResult): Promise<
|
17
|
+
callServiceAPI(messages: Messages, _: MessageContent[], files?: File[]): Promise<void>;
|
18
|
+
extractResultData(result: AssemblyAIResult): Promise<Response>;
|
20
19
|
}
|
21
20
|
//# sourceMappingURL=assemblyAIAudioIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"assemblyAIAudioIO.d.ts","sourceRoot":"","sources":["../../../../src/services/assemblyAI/assemblyAIAudioIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"assemblyAIAudioIO.d.ts","sourceRoot":"","sources":["../../../../src/services/assemblyAI/assemblyAIAudioIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAGzD,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,iBAAkB,SAAQ,eAAe;IAC3C,wBAAwB,SAAwB;IAChD,UAAU,SAA4C;IAC/D,gBAAgB,SAKR;IAER,GAAG,SAA0C;IAC7C,mBAAmB,UAAQ;IAC3B,wBAAwB,SAA0B;IAClD,sBAAsB,WAAiC;gBAE3C,QAAQ,EAAE,QAAQ;IAM9B,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAIlB,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,cAAc,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;IAMtE,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAM9E"}
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import { CompletionsHandlers, StreamHandlers } from '../serviceIO';
|
2
1
|
import { AzureSpeechToTextResult } from '../../types/azureResult';
|
3
2
|
import { Messages } from '../../views/chat/messages/messages';
|
4
3
|
import { MessageContent } from '../../types/messages';
|
5
4
|
import { AzureSpeechIO } from './azureSpeechIO';
|
6
|
-
import {
|
5
|
+
import { Response } from '../../types/response';
|
7
6
|
import { DeepChat } from '../../deepChat';
|
8
7
|
export declare class AzureSpeechToTextIO extends AzureSpeechIO {
|
9
8
|
private static readonly HELP_LINK;
|
@@ -13,7 +12,7 @@ export declare class AzureSpeechToTextIO extends AzureSpeechIO {
|
|
13
12
|
textInputPlaceholderText: string;
|
14
13
|
constructor(deepChat: DeepChat);
|
15
14
|
private static canFileSendMessage;
|
16
|
-
callServiceAPI(messages: Messages, _: MessageContent[],
|
17
|
-
extractResultData(result: AzureSpeechToTextResult): Promise<
|
15
|
+
callServiceAPI(messages: Messages, _: MessageContent[], files?: File[]): Promise<void>;
|
16
|
+
extractResultData(result: AzureSpeechToTextResult): Promise<Response>;
|
18
17
|
}
|
19
18
|
//# sourceMappingURL=azureSpeechToTextIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"azureSpeechToTextIO.d.ts","sourceRoot":"","sources":["../../../../src/services/azure/azureSpeechToTextIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"azureSpeechToTextIO.d.ts","sourceRoot":"","sources":["../../../../src/services/azure/azureSpeechToTextIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAGxC,qBAAa,mBAAoB,SAAQ,aAAa;IACpD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAEiI;IAClK,gBAAgB,SAKR;IAER,GAAG,SAAM;IACT,mBAAmB,UAAQ;IAC3B,wBAAwB,SAA0B;gBAEtC,QAAQ,EAAE,QAAQ;IAY9B,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAIlB,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,cAAc,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;IAWtE,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAIrF"}
|
@@ -1,16 +1,15 @@
|
|
1
1
|
import { AzureSummarizationResult, AzureAuthenticationError } from '../../types/azureResult';
|
2
2
|
import { AzureSummarizationConfig } from '../../types/azure';
|
3
|
-
import { CompletionsHandlers, PollResult } from '../serviceIO';
|
4
3
|
import { Messages } from '../../views/chat/messages/messages';
|
5
4
|
import { MessageContent } from '../../types/messages';
|
6
5
|
import { AzureLanguageIO } from './azureLanguageIO';
|
6
|
+
import { PollResult } from '../serviceIO';
|
7
7
|
import { DeepChat } from '../../deepChat';
|
8
8
|
type RawBody = Required<Pick<AzureSummarizationConfig, 'language'>>;
|
9
9
|
export declare class AzureSummarizationIO extends AzureLanguageIO {
|
10
10
|
url: string;
|
11
11
|
textInputPlaceholderText: string;
|
12
12
|
private messages?;
|
13
|
-
private completionsHandlers?;
|
14
13
|
constructor(deepChat: DeepChat);
|
15
14
|
preprocessBody(body: RawBody, messages: MessageContent[]): {
|
16
15
|
analysisInput: {
|
@@ -24,7 +23,7 @@ export declare class AzureSummarizationIO extends AzureLanguageIO {
|
|
24
23
|
kind: string;
|
25
24
|
}[];
|
26
25
|
} | undefined;
|
27
|
-
callServiceAPI(messages: Messages, pMessages: MessageContent[]
|
26
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[]): Promise<void>;
|
28
27
|
extractResultData(result: Response & AzureAuthenticationError): Promise<{
|
29
28
|
pollingInAnotherRequest: true;
|
30
29
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"azureSummarizationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/azure/azureSummarizationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,yBAAyB,CAAC;AAC3F,OAAO,EAAQ,wBAAwB,EAAC,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"azureSummarizationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/azure/azureSummarizationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,yBAAyB,CAAC;AAC3F,OAAO,EAAQ,wBAAwB,EAAC,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAGlD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,KAAK,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,wBAAwB,EAAE,UAAU,CAAC,CAAC,CAAC;AAEpE,qBAAa,oBAAqB,SAAQ,eAAe;IACvD,GAAG,SAAM;IACT,wBAAwB,SAA8B;IACtD,OAAO,CAAC,QAAQ,CAAC,CAAW;gBAEhB,QAAQ,EAAE,QAAQ;IAU9B,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE;;;;;;;;;;;;IAqBzC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE;IAO9D,iBAAiB,CAAC,MAAM,EAAE,QAAQ,GAAG,wBAAwB,GAAG,OAAO,CAAC;QAAC,uBAAuB,EAAE,IAAI,CAAA;KAAC,CAAC;IAUjH,qBAAqB,CAAC,MAAM,EAAE,wBAAwB,GAAG,UAAU;CAW1E"}
|
@@ -2,9 +2,8 @@ import { AzureTextToSpeechConfig } from '../../types/azure';
|
|
2
2
|
import { AzureTextToSpeechResult } from '../../types/azureResult';
|
3
3
|
import { Messages } from '../../views/chat/messages/messages';
|
4
4
|
import { MessageContent } from '../../types/messages';
|
5
|
-
import { CompletionsHandlers } from '../serviceIO';
|
6
5
|
import { AzureSpeechIO } from './azureSpeechIO';
|
7
|
-
import {
|
6
|
+
import { Response } from '../../types/response';
|
8
7
|
import { DeepChat } from '../../deepChat';
|
9
8
|
export declare class AzureTextToSpeechIO extends AzureSpeechIO {
|
10
9
|
private static readonly HELP_LINK;
|
@@ -12,7 +11,7 @@ export declare class AzureTextToSpeechIO extends AzureSpeechIO {
|
|
12
11
|
url: string;
|
13
12
|
constructor(deepChat: DeepChat);
|
14
13
|
preprocessBody(body: AzureTextToSpeechConfig, messages: MessageContent[]): string | undefined;
|
15
|
-
callServiceAPI(messages: Messages, pMessages: MessageContent[]
|
16
|
-
extractResultData(result: AzureTextToSpeechResult): Promise<
|
14
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[]): Promise<void>;
|
15
|
+
extractResultData(result: AzureTextToSpeechResult): Promise<Response>;
|
17
16
|
}
|
18
17
|
//# sourceMappingURL=azureTextToSpeechIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"azureTextToSpeechIO.d.ts","sourceRoot":"","sources":["../../../../src/services/azure/azureTextToSpeechIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;
|
1
|
+
{"version":3,"file":"azureTextToSpeechIO.d.ts","sourceRoot":"","sources":["../../../../src/services/azure/azureTextToSpeechIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,mBAAoB,SAAQ,aAAa;IACpD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAEiI;IAClK,gBAAgB,SAKR;IAER,GAAG,SAAM;gBAGG,QAAQ,EAAE,QAAQ;IAa9B,cAAc,CAAC,IAAI,EAAE,uBAAuB,EAAE,QAAQ,EAAE,cAAc,EAAE;IAUzD,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE;IAM9D,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC;CASrF"}
|
@@ -2,8 +2,7 @@ import { AzureTranslationResult } from '../../types/azureResult';
|
|
2
2
|
import { Messages } from '../../views/chat/messages/messages';
|
3
3
|
import { DirectServiceIO } from '../utils/directServiceIO';
|
4
4
|
import { MessageContent } from '../../types/messages';
|
5
|
-
import {
|
6
|
-
import { Result } from '../../types/result';
|
5
|
+
import { Response } from '../../types/response';
|
7
6
|
import { DeepChat } from '../../deepChat';
|
8
7
|
export declare class AzureTranslationIO extends DirectServiceIO {
|
9
8
|
insertKeyPlaceholderText: string;
|
@@ -13,7 +12,7 @@ export declare class AzureTranslationIO extends DirectServiceIO {
|
|
13
12
|
preprocessBody(messages: MessageContent[]): {
|
14
13
|
Text: string;
|
15
14
|
}[] | undefined;
|
16
|
-
callServiceAPI(messages: Messages, pMessages: MessageContent[]
|
17
|
-
extractResultData(result: AzureTranslationResult): Promise<
|
15
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[]): Promise<void>;
|
16
|
+
extractResultData(result: AzureTranslationResult): Promise<Response>;
|
18
17
|
}
|
19
18
|
//# sourceMappingURL=azureTranslationIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"azureTranslationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/azure/azureTranslationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;
|
1
|
+
{"version":3,"file":"azureTranslationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/azure/azureTranslationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAGxC,qBAAa,kBAAmB,SAAQ,eAAe;IAC5C,wBAAwB,SAAsC;IAC9D,UAAU,SAEqH;IACxI,GAAG,SAAM;gBAGG,QAAQ,EAAE,QAAQ;IAU9B,cAAc,CAAC,QAAQ,EAAE,cAAc,EAAE;;;IAM1B,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE;IAM9D,iBAAiB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAMpF"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { Messages } from '../../views/chat/messages/messages';
|
2
2
|
import { CohereChatResult } from '../../types/cohereResult';
|
3
3
|
import { MessageContent } from '../../types/messages';
|
4
|
-
import {
|
5
|
-
import { Result } from '../../types/result';
|
4
|
+
import { Response } from '../../types/response';
|
6
5
|
import { DeepChat } from '../../deepChat';
|
7
6
|
import { CohereIO } from './cohereIO';
|
8
7
|
export declare class CohereChatIO extends CohereIO {
|
@@ -10,7 +9,7 @@ export declare class CohereChatIO extends CohereIO {
|
|
10
9
|
constructor(deepChat: DeepChat);
|
11
10
|
private cleanConfig;
|
12
11
|
private preprocessBody;
|
13
|
-
callServiceAPI(messages: Messages, pMessages: MessageContent[]
|
14
|
-
extractResultData(result: CohereChatResult): Promise<
|
12
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[]): Promise<void>;
|
13
|
+
extractResultData(result: CohereChatResult): Promise<Response>;
|
15
14
|
}
|
16
15
|
//# sourceMappingURL=cohereChatIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cohereChatIO.d.ts","sourceRoot":"","sources":["../../../../src/services/cohere/cohereChatIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"cohereChatIO.d.ts","sourceRoot":"","sources":["../../../../src/services/cohere/cohereChatIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC,qBAAa,YAAa,SAAQ,QAAQ;IACxC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkB;gBAE/B,QAAQ,EAAE,QAAQ;IAY9B,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,cAAc;IASP,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE;IAM9D,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAI9E"}
|
@@ -2,14 +2,13 @@ import { CohereSummarizationConfig } from '../../types/cohere';
|
|
2
2
|
import { CohereSummarizationResult } from '../../types/cohereResult';
|
3
3
|
import { Messages } from '../../views/chat/messages/messages';
|
4
4
|
import { MessageContent } from '../../types/messages';
|
5
|
-
import {
|
6
|
-
import { Result } from '../../types/result';
|
5
|
+
import { Response } from '../../types/response';
|
7
6
|
import { DeepChat } from '../../deepChat';
|
8
7
|
import { CohereIO } from './cohereIO';
|
9
8
|
export declare class CohereSummarizationIO extends CohereIO {
|
10
9
|
constructor(deepChat: DeepChat);
|
11
10
|
preprocessBody(body: CohereSummarizationConfig, messages: MessageContent[]): any;
|
12
|
-
callServiceAPI(messages: Messages, pMessages: MessageContent[]
|
13
|
-
extractResultData(result: CohereSummarizationResult): Promise<
|
11
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[]): Promise<void>;
|
12
|
+
extractResultData(result: CohereSummarizationResult): Promise<Response>;
|
14
13
|
}
|
15
14
|
//# sourceMappingURL=cohereSummarizationIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cohereSummarizationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/cohere/cohereSummarizationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,yBAAyB,EAAC,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAC,yBAAyB,EAAC,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"cohereSummarizationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/cohere/cohereSummarizationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,yBAAyB,EAAC,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAC,yBAAyB,EAAC,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC,qBAAa,qBAAsB,SAAQ,QAAQ;gBACrC,QAAQ,EAAE,QAAQ;IAM9B,cAAc,CAAC,IAAI,EAAE,yBAAyB,EAAE,QAAQ,EAAE,cAAc,EAAE;IAO3D,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE;IAM9D,iBAAiB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAIvF"}
|
@@ -2,14 +2,13 @@ import { CohereCompletionsResult } from '../../types/cohereResult';
|
|
2
2
|
import { CohereGenerateConfig } from '../../types/cohere';
|
3
3
|
import { Messages } from '../../views/chat/messages/messages';
|
4
4
|
import { MessageContent } from '../../types/messages';
|
5
|
-
import {
|
6
|
-
import { Result } from '../../types/result';
|
5
|
+
import { Response } from '../../types/response';
|
7
6
|
import { DeepChat } from '../../deepChat';
|
8
7
|
import { CohereIO } from './cohereIO';
|
9
8
|
export declare class CohereTextGenerationIO extends CohereIO {
|
10
9
|
constructor(deepChat: DeepChat);
|
11
10
|
preprocessBody(body: CohereGenerateConfig, messages: MessageContent[]): any;
|
12
|
-
callServiceAPI(messages: Messages, pMessages: MessageContent[]
|
13
|
-
extractResultData(result: CohereCompletionsResult): Promise<
|
11
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[]): Promise<void>;
|
12
|
+
extractResultData(result: CohereCompletionsResult): Promise<Response>;
|
14
13
|
}
|
15
14
|
//# sourceMappingURL=cohereTextGenerationIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cohereTextGenerationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/cohere/cohereTextGenerationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAC,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAS,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"cohereTextGenerationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/cohere/cohereTextGenerationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAC,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAS,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC,qBAAa,sBAAuB,SAAQ,QAAQ;gBACtC,QAAQ,EAAE,QAAQ;IAO9B,cAAc,CAAC,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,cAAc,EAAE;IAOtD,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE;IAM9D,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAIrF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"huggingFaceAudioClassificationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceAudioClassificationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,+BAA+B,EAAC,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"huggingFaceAudioClassificationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceAudioClassificationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,+BAA+B,EAAC,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAGxC,qBAAa,gCAAiC,SAAQ,iBAAiB;gBAEzD,QAAQ,EAAE,QAAQ;IASxB,qBAAqB,CAAC,MAAM,EAAE,+BAA+B,GAAG,UAAU;CAKjF"}
|
@@ -2,7 +2,7 @@ import { HuggingFaceConversationResult } from '../../types/huggingFaceResult';
|
|
2
2
|
import { HuggingFaceQuestionAnswerConfig } from '../../types/huggingFace';
|
3
3
|
import { MessageContent } from '../../types/messages';
|
4
4
|
import { HuggingFaceIO } from './huggingFaceIO';
|
5
|
-
import {
|
5
|
+
import { Response } from '../../types/response';
|
6
6
|
import { DeepChat } from '../../deepChat';
|
7
7
|
export declare class HuggingFaceConversationIO extends HuggingFaceIO {
|
8
8
|
constructor(deepChat: DeepChat);
|
@@ -10,6 +10,6 @@ export declare class HuggingFaceConversationIO extends HuggingFaceIO {
|
|
10
10
|
preprocessBody(body: HuggingFaceQuestionAnswerConfig, messages: MessageContent[]): {
|
11
11
|
inputs: string;
|
12
12
|
} | undefined;
|
13
|
-
extractResultData(result: HuggingFaceConversationResult): Promise<
|
13
|
+
extractResultData(result: HuggingFaceConversationResult): Promise<Response>;
|
14
14
|
}
|
15
15
|
//# sourceMappingURL=huggingFaceConversationIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"huggingFaceConversationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceConversationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAC,+BAA+B,EAAC,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"huggingFaceConversationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceConversationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAC,+BAA+B,EAAC,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,yBAA0B,SAAQ,aAAa;gBAC9C,QAAQ,EAAE,QAAQ;IAS9B,OAAO,CAAC,eAAe;IAYd,cAAc,CAAC,IAAI,EAAE,+BAA+B,EAAE,QAAQ,EAAE,cAAc,EAAE;gBAe9D,MAAM;;IAGlB,iBAAiB,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC;CAI3F"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { CompletionsHandlers, ServiceFileTypes, StreamHandlers } from '../serviceIO';
|
2
1
|
import { Messages } from '../../views/chat/messages/messages';
|
3
2
|
import { HuggingFaceModel } from '../../types/huggingFace';
|
4
3
|
import { MessageContent } from '../../types/messages';
|
4
|
+
import { ServiceFileTypes } from '../serviceIO';
|
5
5
|
import { HuggingFaceIO } from './huggingFaceIO';
|
6
6
|
import { APIKey } from '../../types/APIKey';
|
7
7
|
import { DeepChat } from '../../deepChat';
|
@@ -12,6 +12,6 @@ export declare class HuggingFaceFileIO extends HuggingFaceIO {
|
|
12
12
|
preprocessBody(_: {}, __: MessageContent[], files: File[]): {
|
13
13
|
inputs: string;
|
14
14
|
};
|
15
|
-
callServiceAPI(messages: Messages, _: MessageContent[],
|
15
|
+
callServiceAPI(messages: Messages, _: MessageContent[], files?: File[]): Promise<void>;
|
16
16
|
}
|
17
17
|
//# sourceMappingURL=huggingFaceFileIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"huggingFaceFileIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceFileIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"huggingFaceFileIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceFileIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,iBAAkB,SAAQ,aAAa;IAClD,mBAAmB,UAAQ;gBAGf,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EACzE,MAAM,EAAE,IAAI,GAAG,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,gBAAgB;IAK5F,OAAO,CAAC,MAAM,CAAC,WAAW;IAIjB,cAAc,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;gBACzB,MAAM;;IAIhC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,cAAc,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;CAKtF"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { HuggingFaceFillMaskResult } from '../../types/huggingFaceResult';
|
2
2
|
import { HuggingFaceIO } from './huggingFaceIO';
|
3
|
-
import {
|
3
|
+
import { Response } from '../../types/response';
|
4
4
|
import { DeepChat } from '../../deepChat';
|
5
5
|
export declare class HuggingFaceFillMaskIO extends HuggingFaceIO {
|
6
6
|
introPanelMarkUp: string;
|
7
7
|
permittedErrorPrefixes: string[];
|
8
8
|
constructor(deepChat: DeepChat);
|
9
|
-
extractResultData(result: HuggingFaceFillMaskResult): Promise<
|
9
|
+
extractResultData(result: HuggingFaceFillMaskResult): Promise<Response>;
|
10
10
|
}
|
11
11
|
//# sourceMappingURL=huggingFaceFillMaskIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"huggingFaceFillMaskIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceFillMaskIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,yBAAyB,EAAC,MAAM,+BAA+B,CAAC;AAExE,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"huggingFaceFillMaskIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceFillMaskIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,yBAAyB,EAAC,MAAM,+BAA+B,CAAC;AAExE,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,qBAAsB,SAAQ,aAAa;IAC7C,gBAAgB,SAGqF;IAErG,sBAAsB,WAA6C;gBAEhE,QAAQ,EAAE,QAAQ;IAMf,iBAAiB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAIvF"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { CompletionsHandlers, ServiceFileTypes, StreamHandlers } from '../serviceIO';
|
2
1
|
import { Messages } from '../../views/chat/messages/messages';
|
3
2
|
import { DirectServiceIO } from '../utils/directServiceIO';
|
4
3
|
import { HuggingFaceModel } from '../../types/huggingFace';
|
5
4
|
import { MessageContent } from '../../types/messages';
|
5
|
+
import { ServiceFileTypes } from '../serviceIO';
|
6
6
|
import { APIKey } from '../../types/APIKey';
|
7
7
|
import { DeepChat } from '../../deepChat';
|
8
8
|
type HuggingFaceServiceConfigObj = {
|
@@ -28,7 +28,7 @@ export declare class HuggingFaceIO extends DirectServiceIO {
|
|
28
28
|
context?: string | undefined;
|
29
29
|
inputs: string;
|
30
30
|
} | undefined;
|
31
|
-
callServiceAPI(messages: Messages, pMessages: MessageContent[],
|
31
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[], files?: File[]): Promise<void>;
|
32
32
|
}
|
33
33
|
export {};
|
34
34
|
//# sourceMappingURL=huggingFaceIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"huggingFaceIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"huggingFaceIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEzD,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,KAAK,2BAA2B,GAAG;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AAE7F,KAAK,wBAAwB,GAAG,IAAI,GAAG,CAAC,gBAAgB,GAAG,2BAA2B,CAAC,CAAC;AAExF,qBAAa,aAAc,SAAQ,eAAe;IACvC,wBAAwB,SAAwB;IAChD,UAAU,SAA4C;IAC/D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAkD;IACpF,gBAAgB,SAE8F;IAC9G,sBAAsB,WAA4B;IAClD,GAAG,EAAE,MAAM,CAAC;IACZ,wBAAwB,EAAE,MAAM,CAAC;gBAGrB,QAAQ,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAClF,MAAM,CAAC,EAAE,wBAAwB,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,gBAAgB;IAc5F,cAAc,CAAC,IAAI,EAAE,2BAA2B,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE;;;;;;;;IAUzE,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;CAK9F"}
|
@@ -2,7 +2,7 @@ import { HuggingFaceQuestionAnswerConfig } from '../../types/huggingFace';
|
|
2
2
|
import { HuggingFaceQuestionAnswerResult } from '../../types/huggingFaceResult';
|
3
3
|
import { MessageContent } from '../../types/messages';
|
4
4
|
import { HuggingFaceIO } from './huggingFaceIO';
|
5
|
-
import {
|
5
|
+
import { Response } from '../../types/response';
|
6
6
|
import { DeepChat } from '../../deepChat';
|
7
7
|
export declare class HuggingFaceQuestionAnswerIO extends HuggingFaceIO {
|
8
8
|
permittedErrorPrefixes: string[];
|
@@ -11,6 +11,6 @@ export declare class HuggingFaceQuestionAnswerIO extends HuggingFaceIO {
|
|
11
11
|
preprocessBody(_: HuggingFaceQuestionAnswerConfig, messages: MessageContent[]): {
|
12
12
|
inputs: string;
|
13
13
|
} | undefined;
|
14
|
-
extractResultData(result: HuggingFaceQuestionAnswerResult): Promise<
|
14
|
+
extractResultData(result: HuggingFaceQuestionAnswerResult): Promise<Response>;
|
15
15
|
}
|
16
16
|
//# sourceMappingURL=huggingFaceQuestionAnswerIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"huggingFaceQuestionAnswerIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceQuestionAnswerIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,+BAA+B,EAAC,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAC,+BAA+B,EAAC,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"huggingFaceQuestionAnswerIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceQuestionAnswerIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,+BAA+B,EAAC,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAC,+BAA+B,EAAC,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,2BAA4B,SAAQ,aAAa;IACnD,sBAAsB,WAAwC;IAEvE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;gBAErB,QAAQ,EAAE,QAAQ;IAOrB,cAAc,CAAC,CAAC,EAAE,+BAA+B,EAAE,QAAQ,EAAE,cAAc,EAAE;gBAK3D,MAAM;;IAGlB,iBAAiB,CAAC,MAAM,EAAE,+BAA+B,GAAG,OAAO,CAAC,QAAQ,CAAC;CAI7F"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { HuggingFaceSummarizationResult } from '../../types/huggingFaceResult';
|
2
2
|
import { HuggingFaceIO } from './huggingFaceIO';
|
3
|
-
import {
|
3
|
+
import { Response } from '../../types/response';
|
4
4
|
import { DeepChat } from '../../deepChat';
|
5
5
|
export declare class HuggingFaceSummarizationIO extends HuggingFaceIO {
|
6
6
|
constructor(deepChat: DeepChat);
|
7
|
-
extractResultData(result: HuggingFaceSummarizationResult): Promise<
|
7
|
+
extractResultData(result: HuggingFaceSummarizationResult): Promise<Response>;
|
8
8
|
}
|
9
9
|
//# sourceMappingURL=huggingFaceSummarizationIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"huggingFaceSummarizationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceSummarizationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"huggingFaceSummarizationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceSummarizationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,0BAA2B,SAAQ,aAAa;gBAC/C,QAAQ,EAAE,QAAQ;IAMf,iBAAiB,CAAC,MAAM,EAAE,8BAA8B,GAAG,OAAO,CAAC,QAAQ,CAAC;CAI5F"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { HuggingFaceTextGenerationResult } from '../../types/huggingFaceResult';
|
2
2
|
import { HuggingFaceIO } from './huggingFaceIO';
|
3
|
-
import {
|
3
|
+
import { Response } from '../../types/response';
|
4
4
|
import { DeepChat } from '../../deepChat';
|
5
5
|
export declare class HuggingFaceTextGenerationIO extends HuggingFaceIO {
|
6
6
|
constructor(deepChat: DeepChat);
|
7
|
-
extractResultData(result: HuggingFaceTextGenerationResult): Promise<
|
7
|
+
extractResultData(result: HuggingFaceTextGenerationResult): Promise<Response>;
|
8
8
|
}
|
9
9
|
//# sourceMappingURL=huggingFaceTextGenerationIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"huggingFaceTextGenerationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceTextGenerationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,+BAA+B,EAAC,MAAM,+BAA+B,CAAC;AAE9E,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"huggingFaceTextGenerationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceTextGenerationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,+BAA+B,EAAC,MAAM,+BAA+B,CAAC;AAE9E,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,2BAA4B,SAAQ,aAAa;gBAChD,QAAQ,EAAE,QAAQ;IAMf,iBAAiB,CAAC,MAAM,EAAE,+BAA+B,GAAG,OAAO,CAAC,QAAQ,CAAC;CAI7F"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { HuggingFaceTranslationResult } from '../../types/huggingFaceResult';
|
2
2
|
import { HuggingFaceIO } from './huggingFaceIO';
|
3
|
-
import {
|
3
|
+
import { Response } from '../../types/response';
|
4
4
|
import { DeepChat } from '../../deepChat';
|
5
5
|
export declare class HuggingFaceTranslationIO extends HuggingFaceIO {
|
6
6
|
constructor(deepChat: DeepChat);
|
7
|
-
extractResultData(result: HuggingFaceTranslationResult): Promise<
|
7
|
+
extractResultData(result: HuggingFaceTranslationResult): Promise<Response>;
|
8
8
|
}
|
9
9
|
//# sourceMappingURL=huggingFaceTranslationIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"huggingFaceTranslationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceTranslationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,4BAA4B,EAAC,MAAM,+BAA+B,CAAC;AAE3E,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"huggingFaceTranslationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceTranslationIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,4BAA4B,EAAC,MAAM,+BAA+B,CAAC;AAE3E,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,wBAAyB,SAAQ,aAAa;gBAC7C,QAAQ,EAAE,QAAQ;IAMf,iBAAiB,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,QAAQ,CAAC;CAI1F"}
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import { CompletionsHandlers, StreamHandlers } from '../serviceIO';
|
2
1
|
import { Messages } from '../../views/chat/messages/messages';
|
3
2
|
import { OpenAIAudioResult } from '../../types/openAIResult';
|
4
3
|
import { DirectServiceIO } from '../utils/directServiceIO';
|
5
4
|
import { MessageContent } from '../../types/messages';
|
6
|
-
import {
|
5
|
+
import { Response } from '../../types/response';
|
7
6
|
import { DeepChat } from '../../deepChat';
|
8
7
|
export declare class OpenAIAudioIO extends DirectServiceIO {
|
9
8
|
insertKeyPlaceholderText: string;
|
@@ -22,7 +21,7 @@ export declare class OpenAIAudioIO extends DirectServiceIO {
|
|
22
21
|
private static cleanConfig;
|
23
22
|
private static createFormDataBody;
|
24
23
|
private preprocessBody;
|
25
|
-
callServiceAPI(messages: Messages, pMessages: MessageContent[],
|
26
|
-
extractResultData(result: OpenAIAudioResult): Promise<
|
24
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[], files?: File[]): Promise<void>;
|
25
|
+
extractResultData(result: OpenAIAudioResult): Promise<Response>;
|
27
26
|
}
|
28
27
|
//# sourceMappingURL=openAIAudioIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"openAIAudioIO.d.ts","sourceRoot":"","sources":["../../../../src/services/openAI/openAIAudioIO.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"openAIAudioIO.d.ts","sourceRoot":"","sources":["../../../../src/services/openAI/openAIAudioIO.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,iBAAiB,EAAC,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,aAAc,SAAQ,eAAe;IACvC,wBAAwB,SAAoB;IAC5C,UAAU,SAAkD;IACrE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,wBAAwB,CAAoD;IACpG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,sBAAsB,CAAkD;IAChG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAe;IAEpD,gBAAgB,SAI8F;IAE9G,GAAG,SAAM;IACT,sBAAsB,WAAe;IACrC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA4C;IAC3E,OAAO,CAAC,YAAY,CAAkD;gBAE1D,QAAQ,EAAE,QAAQ;IAgB9B,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAIjC,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,MAAM,CAAC,WAAW;IAI1B,OAAO,CAAC,MAAM,CAAC,kBAAkB;IASjC,OAAO,CAAC,cAAc;IAWP,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;IAW9E,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAI/E"}
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { SystemMessageInternal } from '../../types/openAIInternal';
|
2
|
-
import { CompletionsHandlers, StreamHandlers } from '../serviceIO';
|
3
2
|
import { OpenAIConverseResult } from '../../types/openAIResult';
|
4
3
|
import { Messages } from '../../views/chat/messages/messages';
|
5
4
|
import { DirectServiceIO } from '../utils/directServiceIO';
|
6
5
|
import { MessageContent } from '../../types/messages';
|
7
|
-
import {
|
6
|
+
import { Response } from '../../types/response';
|
8
7
|
import { DeepChat } from '../../deepChat';
|
9
8
|
export declare class OpenAIChatIO extends DirectServiceIO {
|
10
9
|
insertKeyPlaceholderText: string;
|
@@ -16,7 +15,7 @@ export declare class OpenAIChatIO extends DirectServiceIO {
|
|
16
15
|
static generateSystemMessage(systemPrompt: string): SystemMessageInternal;
|
17
16
|
private cleanConfig;
|
18
17
|
private preprocessBody;
|
19
|
-
callServiceAPI(messages: Messages, pMessages: MessageContent[]
|
20
|
-
extractResultData(result: OpenAIConverseResult): Promise<
|
18
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[]): Promise<void>;
|
19
|
+
extractResultData(result: OpenAIConverseResult): Promise<Response>;
|
21
20
|
}
|
22
21
|
//# sourceMappingURL=openAIChatIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"openAIChatIO.d.ts","sourceRoot":"","sources":["../../../../src/services/openAI/openAIChatIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AAE7F,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"openAIChatIO.d.ts","sourceRoot":"","sources":["../../../../src/services/openAI/openAIChatIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AAE7F,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAIpD,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAGxC,qBAAa,YAAa,SAAQ,eAAe;IACtC,wBAAwB,SAAoB;IAC5C,UAAU,SAAkD;IACrE,GAAG,SAAgD;IACnD,sBAAsB,WAAiB;IACvC,OAAO,CAAC,QAAQ,CAAC,cAAc,CACsC;gBAEzD,QAAQ,EAAE,QAAQ;WAahB,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,qBAAqB;IAIhF,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,cAAc;IAUP,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE;IAW9D,iBAAiB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAUlF"}
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import { CompletionsHandlers, StreamHandlers } from '../serviceIO';
|
2
1
|
import { OpenAIConverseResult } from '../../types/openAIResult';
|
3
2
|
import { Messages } from '../../views/chat/messages/messages';
|
4
3
|
import { DirectServiceIO } from '../utils/directServiceIO';
|
5
4
|
import { MessageContent } from '../../types/messages';
|
6
|
-
import {
|
5
|
+
import { Response } from '../../types/response';
|
7
6
|
import { DeepChat } from '../../deepChat';
|
8
7
|
export declare class OpenAICompletionsIO extends DirectServiceIO {
|
9
8
|
insertKeyPlaceholderText: string;
|
@@ -15,7 +14,7 @@ export declare class OpenAICompletionsIO extends DirectServiceIO {
|
|
15
14
|
private readonly numberOfCharsPerToken;
|
16
15
|
constructor(deepChat: DeepChat);
|
17
16
|
private preprocessBody;
|
18
|
-
callServiceAPI(messages: Messages, pMessages: MessageContent[]
|
19
|
-
extractResultData(result: OpenAIConverseResult): Promise<
|
17
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[]): Promise<void>;
|
18
|
+
extractResultData(result: OpenAIConverseResult): Promise<Response>;
|
20
19
|
}
|
21
20
|
//# sourceMappingURL=openAICompletionsIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"openAICompletionsIO.d.ts","sourceRoot":"","sources":["../../../../src/services/openAI/openAICompletionsIO.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"openAICompletionsIO.d.ts","sourceRoot":"","sources":["../../../../src/services/openAI/openAICompletionsIO.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAIpD,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,mBAAoB,SAAQ,eAAe;IAC7C,wBAAwB,SAAoB;IAC5C,UAAU,SAAkD;IACrE,GAAG,SAA2C;IAC9C,sBAAsB,WAAiB;IACvC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgD;IAE/E,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAQ;IAEpD,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAO;gBAEjC,QAAQ,EAAE,QAAQ;IAY9B,OAAO,CAAC,cAAc;IAaP,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE;IAW9D,iBAAiB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAIlF"}
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import { CompletionsHandlers, StreamHandlers } from '../serviceIO';
|
2
1
|
import { Messages } from '../../views/chat/messages/messages';
|
3
2
|
import { OpenAIImageResult } from '../../types/openAIResult';
|
4
3
|
import { DirectServiceIO } from '../utils/directServiceIO';
|
5
4
|
import { MessageContent } from '../../types/messages';
|
6
|
-
import {
|
5
|
+
import { Response } from '../../types/response';
|
7
6
|
import { DeepChat } from '../../deepChat';
|
8
7
|
export declare class OpenAIImagesIO extends DirectServiceIO {
|
9
8
|
insertKeyPlaceholderText: string;
|
@@ -20,7 +19,7 @@ export declare class OpenAIImagesIO extends DirectServiceIO {
|
|
20
19
|
private static createFormDataBody;
|
21
20
|
private preprocessBody;
|
22
21
|
private callApiWithImage;
|
23
|
-
callServiceAPI(messages: Messages, pMessages: MessageContent[],
|
24
|
-
extractResultData(result: OpenAIImageResult): Promise<
|
22
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[], files?: File[]): Promise<void>;
|
23
|
+
extractResultData(result: OpenAIImageResult): Promise<Response>;
|
25
24
|
}
|
26
25
|
//# sourceMappingURL=openAIImagesIO.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"openAIImagesIO.d.ts","sourceRoot":"","sources":["../../../../src/services/openAI/openAIImagesIO.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"openAIImagesIO.d.ts","sourceRoot":"","sources":["../../../../src/services/openAI/openAIImagesIO.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAC,iBAAiB,EAAC,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAIzD,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,cAAe,SAAQ,eAAe;IACxC,wBAAwB,SAAoB;IAC5C,UAAU,SAAkD;IACrE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAkD;IAC9F,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAiD;IAC7F,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAA4C;IAElF,gBAAgB,SAM8F;IAE9G,GAAG,SAAM;IACT,sBAAsB,WAAwC;IAC9D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA4C;gBAE/D,QAAQ,EAAE,QAAQ;IAe9B,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAIjC,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAUjC,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,gBAAgB;IAiBT,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;IAY9E,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAsB/E"}
|