deep-chat-dev 1.1.18
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 +132 -0
- package/assets/machine-learning.svg +21 -0
- package/assets/person-avatar.png +0 -0
- package/custom-elements.json +31889 -0
- package/dist/deepChat.bundle.js +1 -0
- package/dist/deepChat.d.ts +71 -0
- package/dist/deepChat.d.ts.map +1 -0
- package/dist/deepChat.js +6700 -0
- package/dist/icons/audioIcon.d.ts +2 -0
- package/dist/icons/audioIcon.d.ts.map +1 -0
- package/dist/icons/cameraIcon.d.ts +2 -0
- package/dist/icons/cameraIcon.d.ts.map +1 -0
- package/dist/icons/captureIcon.d.ts +2 -0
- package/dist/icons/captureIcon.d.ts.map +1 -0
- package/dist/icons/closeIcon.d.ts +2 -0
- package/dist/icons/closeIcon.d.ts.map +1 -0
- package/dist/icons/fileIcon.d.ts +2 -0
- package/dist/icons/fileIcon.d.ts.map +1 -0
- package/dist/icons/gifIcon.d.ts +2 -0
- package/dist/icons/gifIcon.d.ts.map +1 -0
- package/dist/icons/imageIcon.d.ts +2 -0
- package/dist/icons/imageIcon.d.ts.map +1 -0
- package/dist/icons/microphone.d.ts +2 -0
- package/dist/icons/microphone.d.ts.map +1 -0
- package/dist/icons/mixedFilesIcon.d.ts +2 -0
- package/dist/icons/mixedFilesIcon.d.ts.map +1 -0
- package/dist/icons/notVisibilityIcon.d.ts +2 -0
- package/dist/icons/notVisibilityIcon.d.ts.map +1 -0
- package/dist/icons/playIcon.d.ts +2 -0
- package/dist/icons/playIcon.d.ts.map +1 -0
- package/dist/icons/plusIcon.d.ts +2 -0
- package/dist/icons/plusIcon.d.ts.map +1 -0
- package/dist/icons/refreshIcon.d.ts +2 -0
- package/dist/icons/refreshIcon.d.ts.map +1 -0
- package/dist/icons/stopIcon.d.ts +2 -0
- package/dist/icons/stopIcon.d.ts.map +1 -0
- package/dist/icons/submitIcon.d.ts +2 -0
- package/dist/icons/submitIcon.d.ts.map +1 -0
- package/dist/icons/tickIcon.d.ts +2 -0
- package/dist/icons/tickIcon.d.ts.map +1 -0
- package/dist/icons/visibleIcon.d.ts +2 -0
- package/dist/icons/visibleIcon.d.ts.map +1 -0
- package/dist/services/assemblyAI/assemblyAIAudioIO.d.ts +20 -0
- package/dist/services/assemblyAI/assemblyAIAudioIO.d.ts.map +1 -0
- package/dist/services/assemblyAI/utils/assemblyAIUtils.d.ts +13 -0
- package/dist/services/assemblyAI/utils/assemblyAIUtils.d.ts.map +1 -0
- package/dist/services/azure/azureLanguageIO.d.ts +12 -0
- package/dist/services/azure/azureLanguageIO.d.ts.map +1 -0
- package/dist/services/azure/azureSpeechIO.d.ts +11 -0
- package/dist/services/azure/azureSpeechIO.d.ts.map +1 -0
- package/dist/services/azure/azureSpeechToTextIO.d.ts +18 -0
- package/dist/services/azure/azureSpeechToTextIO.d.ts.map +1 -0
- package/dist/services/azure/azureSummarizationIO.d.ts +33 -0
- package/dist/services/azure/azureSummarizationIO.d.ts.map +1 -0
- package/dist/services/azure/azureTextToSpeechIO.d.ts +17 -0
- package/dist/services/azure/azureTextToSpeechIO.d.ts.map +1 -0
- package/dist/services/azure/azureTranslationIO.d.ts +18 -0
- package/dist/services/azure/azureTranslationIO.d.ts.map +1 -0
- package/dist/services/azure/utils/azureUtils.d.ts +25 -0
- package/dist/services/azure/utils/azureUtils.d.ts.map +1 -0
- package/dist/services/cohere/cohereChatIO.d.ts +15 -0
- package/dist/services/cohere/cohereChatIO.d.ts.map +1 -0
- package/dist/services/cohere/cohereIO.d.ts +12 -0
- package/dist/services/cohere/cohereIO.d.ts.map +1 -0
- package/dist/services/cohere/cohereSummarizationIO.d.ts +14 -0
- package/dist/services/cohere/cohereSummarizationIO.d.ts.map +1 -0
- package/dist/services/cohere/cohereTextGenerationIO.d.ts +14 -0
- package/dist/services/cohere/cohereTextGenerationIO.d.ts.map +1 -0
- package/dist/services/cohere/utils/cohereUtils.d.ts +11 -0
- package/dist/services/cohere/utils/cohereUtils.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceAudioClassificationIO.d.ts +9 -0
- package/dist/services/huggingFace/huggingFaceAudioClassificationIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceAudioRecognitionIO.d.ts +9 -0
- package/dist/services/huggingFace/huggingFaceAudioRecognitionIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceConversationIO.d.ts +15 -0
- package/dist/services/huggingFace/huggingFaceConversationIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceFileIO.d.ts +17 -0
- package/dist/services/huggingFace/huggingFaceFileIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceFillMaskIO.d.ts +11 -0
- package/dist/services/huggingFace/huggingFaceFillMaskIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceIO.d.ts +34 -0
- package/dist/services/huggingFace/huggingFaceIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceImageClassificationIO.d.ts +9 -0
- package/dist/services/huggingFace/huggingFaceImageClassificationIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceQuestionAnswerIO.d.ts +16 -0
- package/dist/services/huggingFace/huggingFaceQuestionAnswerIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceSummarizationIO.d.ts +9 -0
- package/dist/services/huggingFace/huggingFaceSummarizationIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceTextGenerationIO.d.ts +9 -0
- package/dist/services/huggingFace/huggingFaceTextGenerationIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceTranslationIO.d.ts +9 -0
- package/dist/services/huggingFace/huggingFaceTranslationIO.d.ts.map +1 -0
- package/dist/services/huggingFace/utils/huggingFaceUtils.d.ts +10 -0
- package/dist/services/huggingFace/utils/huggingFaceUtils.d.ts.map +1 -0
- package/dist/services/openAI/openAIAudioIO.d.ts +27 -0
- package/dist/services/openAI/openAIAudioIO.d.ts.map +1 -0
- package/dist/services/openAI/openAIChatIO.d.ts +21 -0
- package/dist/services/openAI/openAIChatIO.d.ts.map +1 -0
- package/dist/services/openAI/openAICompletionsIO.d.ts +20 -0
- package/dist/services/openAI/openAICompletionsIO.d.ts.map +1 -0
- package/dist/services/openAI/openAIImagesIO.d.ts +25 -0
- package/dist/services/openAI/openAIImagesIO.d.ts.map +1 -0
- package/dist/services/openAI/utils/openAIConverseBaseBody.d.ts +12 -0
- package/dist/services/openAI/utils/openAIConverseBaseBody.d.ts.map +1 -0
- package/dist/services/openAI/utils/openAIUtils.d.ts +12 -0
- package/dist/services/openAI/utils/openAIUtils.d.ts.map +1 -0
- package/dist/services/serviceIO.d.ts +65 -0
- package/dist/services/serviceIO.d.ts.map +1 -0
- package/dist/services/serviceIOFactory.d.ts +6 -0
- package/dist/services/serviceIOFactory.d.ts.map +1 -0
- package/dist/services/stabilityAI/stabilityAIIO.d.ts +13 -0
- package/dist/services/stabilityAI/stabilityAIIO.d.ts.map +1 -0
- package/dist/services/stabilityAI/stabilityAIImageToImageIO.d.ts +19 -0
- package/dist/services/stabilityAI/stabilityAIImageToImageIO.d.ts.map +1 -0
- package/dist/services/stabilityAI/stabilityAIImageToImageMaskingIO.d.ts +20 -0
- package/dist/services/stabilityAI/stabilityAIImageToImageMaskingIO.d.ts.map +1 -0
- package/dist/services/stabilityAI/stabilityAIImageToImageUpscaleIO.d.ts +18 -0
- package/dist/services/stabilityAI/stabilityAIImageToImageUpscaleIO.d.ts.map +1 -0
- package/dist/services/stabilityAI/stabilityAITextToImageIO.d.ts +19 -0
- package/dist/services/stabilityAI/stabilityAITextToImageIO.d.ts.map +1 -0
- package/dist/services/stabilityAI/utils/stabilityAIUtils.d.ts +10 -0
- package/dist/services/stabilityAI/utils/stabilityAIUtils.d.ts.map +1 -0
- package/dist/services/utils/baseServiceIO.d.ts +39 -0
- package/dist/services/utils/baseServiceIO.d.ts.map +1 -0
- package/dist/services/utils/directServiceIO.d.ts +19 -0
- package/dist/services/utils/directServiceIO.d.ts.map +1 -0
- package/dist/services/utils/messageLimitUtils.d.ts +9 -0
- package/dist/services/utils/messageLimitUtils.d.ts.map +1 -0
- package/dist/services/utils/setFileTypes.d.ts +14 -0
- package/dist/services/utils/setFileTypes.d.ts.map +1 -0
- package/dist/types/APIKey.d.ts +5 -0
- package/dist/types/APIKey.d.ts.map +1 -0
- package/dist/types/assemblyAI.d.ts +4 -0
- package/dist/types/assemblyAI.d.ts.map +1 -0
- package/dist/types/assemblyAIResult.d.ts +5 -0
- package/dist/types/assemblyAIResult.d.ts.map +1 -0
- package/dist/types/avatars.d.ts +17 -0
- package/dist/types/avatars.d.ts.map +1 -0
- package/dist/types/azure.d.ts +28 -0
- package/dist/types/azure.d.ts.map +1 -0
- package/dist/types/azureResult.d.ts +47 -0
- package/dist/types/azureResult.d.ts.map +1 -0
- package/dist/types/button.d.ts +17 -0
- package/dist/types/button.d.ts.map +1 -0
- package/dist/types/buttonInternal.d.ts +12 -0
- package/dist/types/buttonInternal.d.ts.map +1 -0
- package/dist/types/buttonTypes.d.ts +3 -0
- package/dist/types/buttonTypes.d.ts.map +1 -0
- package/dist/types/camera.d.ts +12 -0
- package/dist/types/camera.d.ts.map +1 -0
- package/dist/types/chatLimits.d.ts +5 -0
- package/dist/types/chatLimits.d.ts.map +1 -0
- package/dist/types/cohere.d.ts +34 -0
- package/dist/types/cohere.d.ts.map +1 -0
- package/dist/types/cohereResult.d.ts +21 -0
- package/dist/types/cohereResult.d.ts.map +1 -0
- package/dist/types/customService.d.ts +6 -0
- package/dist/types/customService.d.ts.map +1 -0
- package/dist/types/demo.d.ts +13 -0
- package/dist/types/demo.d.ts.map +1 -0
- package/dist/types/directConnection.d.ts +18 -0
- package/dist/types/directConnection.d.ts.map +1 -0
- package/dist/types/dropupStyles.d.ts +13 -0
- package/dist/types/dropupStyles.d.ts.map +1 -0
- package/dist/types/fileAttachments.d.ts +12 -0
- package/dist/types/fileAttachments.d.ts.map +1 -0
- package/dist/types/fileServiceConfigs.d.ts +23 -0
- package/dist/types/fileServiceConfigs.d.ts.map +1 -0
- package/dist/types/fileTypes.d.ts +2 -0
- package/dist/types/fileTypes.d.ts.map +1 -0
- package/dist/types/genericInputButton.d.ts +5 -0
- package/dist/types/genericInputButton.d.ts.map +1 -0
- package/dist/types/headers.d.ts +3 -0
- package/dist/types/headers.d.ts.map +1 -0
- package/dist/types/huggingFace.d.ts +67 -0
- package/dist/types/huggingFace.d.ts.map +1 -0
- package/dist/types/huggingFaceResult.d.ts +30 -0
- package/dist/types/huggingFaceResult.d.ts.map +1 -0
- package/dist/types/interceptors.d.ts +8 -0
- package/dist/types/interceptors.d.ts.map +1 -0
- package/dist/types/keyVerificationDetails.d.ts +9 -0
- package/dist/types/keyVerificationDetails.d.ts.map +1 -0
- package/dist/types/messageFile.d.ts +8 -0
- package/dist/types/messageFile.d.ts.map +1 -0
- package/dist/types/messages.d.ts +44 -0
- package/dist/types/messages.d.ts.map +1 -0
- package/dist/types/microphone.d.ts +29 -0
- package/dist/types/microphone.d.ts.map +1 -0
- package/dist/types/names.d.ts +13 -0
- package/dist/types/names.d.ts.map +1 -0
- package/dist/types/object.d.ts +4 -0
- package/dist/types/object.d.ts.map +1 -0
- package/dist/types/openAI.d.ts +34 -0
- package/dist/types/openAI.d.ts.map +1 -0
- package/dist/types/openAIInternal.d.ts +10 -0
- package/dist/types/openAIInternal.d.ts.map +1 -0
- package/dist/types/openAIResult.d.ts +39 -0
- package/dist/types/openAIResult.d.ts.map +1 -0
- package/dist/types/request.d.ts +9 -0
- package/dist/types/request.d.ts.map +1 -0
- package/dist/types/result.d.ts +6 -0
- package/dist/types/result.d.ts.map +1 -0
- package/dist/types/stabilityAI.d.ts +37 -0
- package/dist/types/stabilityAI.d.ts.map +1 -0
- package/dist/types/stabilityAIResult.d.ts +7 -0
- package/dist/types/stabilityAIResult.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/styles.d.ts +7 -0
- package/dist/types/styles.d.ts.map +1 -0
- package/dist/types/submitButton.d.ts +8 -0
- package/dist/types/submitButton.d.ts.map +1 -0
- package/dist/types/textInput.d.ts +17 -0
- package/dist/types/textInput.d.ts.map +1 -0
- package/dist/types/textToSpeech.d.ts +8 -0
- package/dist/types/textToSpeech.d.ts.map +1 -0
- package/dist/types/typeConverters.d.ts +6 -0
- package/dist/types/typeConverters.d.ts.map +1 -0
- package/dist/types/utilityTypes.d.ts +11 -0
- package/dist/types/utilityTypes.d.ts.map +1 -0
- package/dist/types/validateMessageBeforeSending.d.ts +2 -0
- package/dist/types/validateMessageBeforeSending.d.ts.map +1 -0
- package/dist/utils/HTTP/HTTPRequest.d.ts +10 -0
- package/dist/utils/HTTP/HTTPRequest.d.ts.map +1 -0
- package/dist/utils/HTTP/requestUtils.d.ts +9 -0
- package/dist/utils/HTTP/requestUtils.d.ts.map +1 -0
- package/dist/utils/HTTP/stream.d.ts +9 -0
- package/dist/utils/HTTP/stream.d.ts.map +1 -0
- package/dist/utils/HTTP/websocket.d.ts +9 -0
- package/dist/utils/HTTP/websocket.d.ts.map +1 -0
- package/dist/utils/browser/browser.d.ts +5 -0
- package/dist/utils/browser/browser.d.ts.map +1 -0
- package/dist/utils/buttons/inputButtons.d.ts +3 -0
- package/dist/utils/buttons/inputButtons.d.ts.map +1 -0
- package/dist/utils/buttons/keyboardKeys.d.ts +14 -0
- package/dist/utils/buttons/keyboardKeys.d.ts.map +1 -0
- package/dist/utils/decorators/property.d.ts +3 -0
- package/dist/utils/decorators/property.d.ts.map +1 -0
- package/dist/utils/decorators/renderControl.d.ts +6 -0
- package/dist/utils/decorators/renderControl.d.ts.map +1 -0
- package/dist/utils/decorators/typeConverters.d.ts +5 -0
- package/dist/utils/decorators/typeConverters.d.ts.map +1 -0
- package/dist/utils/demo/demo.d.ts +15 -0
- package/dist/utils/demo/demo.d.ts.map +1 -0
- package/dist/utils/element/elementUtils.d.ts +7 -0
- package/dist/utils/element/elementUtils.d.ts.map +1 -0
- package/dist/utils/element/imageUtils.d.ts +2 -0
- package/dist/utils/element/imageUtils.d.ts.map +1 -0
- package/dist/utils/element/statefulEvents.d.ts +9 -0
- package/dist/utils/element/statefulEvents.d.ts.map +1 -0
- package/dist/utils/element/styleUtils.d.ts +8 -0
- package/dist/utils/element/styleUtils.d.ts.map +1 -0
- package/dist/utils/errorMessages/errorMessages.d.ts +9 -0
- package/dist/utils/errorMessages/errorMessages.d.ts.map +1 -0
- package/dist/utils/events/fireEvents.d.ts +7 -0
- package/dist/utils/events/fireEvents.d.ts.map +1 -0
- package/dist/utils/fileTypes/fileTypeButtonIcons.d.ts +11 -0
- package/dist/utils/fileTypes/fileTypeButtonIcons.d.ts.map +1 -0
- package/dist/utils/svg/svgIconUtils.d.ts +4 -0
- package/dist/utils/svg/svgIconUtils.d.ts.map +1 -0
- package/dist/utils/webComponent/googleFont.d.ts +5 -0
- package/dist/utils/webComponent/googleFont.d.ts.map +1 -0
- package/dist/utils/webComponent/internalHTML.d.ts +14 -0
- package/dist/utils/webComponent/internalHTML.d.ts.map +1 -0
- package/dist/utils/webComponent/webComponentStyleUtils.d.ts +6 -0
- package/dist/utils/webComponent/webComponentStyleUtils.d.ts.map +1 -0
- package/dist/views/chat/chatView.d.ts +7 -0
- package/dist/views/chat/chatView.d.ts.map +1 -0
- package/dist/views/chat/input/buttonContainers/buttonContainers.d.ts +9 -0
- package/dist/views/chat/input/buttonContainers/buttonContainers.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/buttonCSS.d.ts +9 -0
- package/dist/views/chat/input/buttons/buttonCSS.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/camera/cameraButton.d.ts +16 -0
- package/dist/views/chat/input/buttons/camera/cameraButton.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/customButtonInnerElements.d.ts +10 -0
- package/dist/views/chat/input/buttons/customButtonInnerElements.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/inputButton.d.ts +25 -0
- package/dist/views/chat/input/buttons/inputButton.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/microphone/microphoneButton.d.ts +24 -0
- package/dist/views/chat/input/buttons/microphone/microphoneButton.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/microphone/recordAudio.d.ts +18 -0
- package/dist/views/chat/input/buttons/microphone/recordAudio.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/microphone/speechToText.d.ts +15 -0
- package/dist/views/chat/input/buttons/microphone/speechToText.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/styleAdjustments/inputButtonPositions.d.ts +27 -0
- package/dist/views/chat/input/buttons/styleAdjustments/inputButtonPositions.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.d.ts +13 -0
- package/dist/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/submit/submitButton.d.ts +35 -0
- package/dist/views/chat/input/buttons/submit/submitButton.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/submit/submitButtonStateStyle.d.ts +5 -0
- package/dist/views/chat/input/buttons/submit/submitButtonStateStyle.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/uploadFile/uploadFileButton.d.ts +23 -0
- package/dist/views/chat/input/buttons/uploadFile/uploadFileButton.d.ts.map +1 -0
- package/dist/views/chat/input/dropup/dropup.d.ts +22 -0
- package/dist/views/chat/input/dropup/dropup.d.ts.map +1 -0
- package/dist/views/chat/input/dropup/dropupItem.d.ts +11 -0
- package/dist/views/chat/input/dropup/dropupItem.d.ts.map +1 -0
- package/dist/views/chat/input/dropup/dropupItemNavigation.d.ts +5 -0
- package/dist/views/chat/input/dropup/dropupItemNavigation.d.ts.map +1 -0
- package/dist/views/chat/input/dropup/dropupMenu.d.ts +16 -0
- package/dist/views/chat/input/dropup/dropupMenu.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.d.ts +12 -0
- package/dist/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.d.ts +21 -0
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.d.ts +7 -0
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.d.ts +31 -0
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/fileAttachments.d.ts +23 -0
- package/dist/views/chat/input/fileAttachments/fileAttachments.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/modal/cameraModal.d.ts +28 -0
- package/dist/views/chat/input/fileAttachments/modal/cameraModal.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/modal/modal.d.ts +27 -0
- package/dist/views/chat/input/fileAttachments/modal/modal.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/newFileName.d.ts +4 -0
- package/dist/views/chat/input/fileAttachments/newFileName.d.ts.map +1 -0
- package/dist/views/chat/input/input.d.ts +12 -0
- package/dist/views/chat/input/input.d.ts.map +1 -0
- package/dist/views/chat/input/textInput/focusUtils.d.ts +5 -0
- package/dist/views/chat/input/textInput/focusUtils.d.ts.map +1 -0
- package/dist/views/chat/input/textInput/inputLimit.d.ts +8 -0
- package/dist/views/chat/input/textInput/inputLimit.d.ts.map +1 -0
- package/dist/views/chat/input/textInput/pasteUtils.d.ts +4 -0
- package/dist/views/chat/input/textInput/pasteUtils.d.ts.map +1 -0
- package/dist/views/chat/input/textInput/textInput.d.ts +22 -0
- package/dist/views/chat/input/textInput/textInput.d.ts.map +1 -0
- package/dist/views/chat/introPanel/introPanel.d.ts +11 -0
- package/dist/views/chat/introPanel/introPanel.d.ts.map +1 -0
- package/dist/views/chat/messages/avatar.d.ts +9 -0
- package/dist/views/chat/messages/avatar.d.ts.map +1 -0
- package/dist/views/chat/messages/fileMessageUtils.d.ts +12 -0
- package/dist/views/chat/messages/fileMessageUtils.d.ts.map +1 -0
- package/dist/views/chat/messages/fileMessages.d.ts +11 -0
- package/dist/views/chat/messages/fileMessages.d.ts.map +1 -0
- package/dist/views/chat/messages/loadingMessageDotsStyle.d.ts +6 -0
- package/dist/views/chat/messages/loadingMessageDotsStyle.d.ts.map +1 -0
- package/dist/views/chat/messages/messageStyleUtils.d.ts +11 -0
- package/dist/views/chat/messages/messageStyleUtils.d.ts.map +1 -0
- package/dist/views/chat/messages/messages.d.ts +62 -0
- package/dist/views/chat/messages/messages.d.ts.map +1 -0
- package/dist/views/chat/messages/name.d.ts +9 -0
- package/dist/views/chat/messages/name.d.ts.map +1 -0
- package/dist/views/chat/messages/remarkable/remarkableConfig.d.ts +11 -0
- package/dist/views/chat/messages/remarkable/remarkableConfig.d.ts.map +1 -0
- package/dist/views/chat/messages/textToSpeech/textToSpeech.d.ts +14 -0
- package/dist/views/chat/messages/textToSpeech/textToSpeech.d.ts.map +1 -0
- package/dist/views/error/errorView.d.ts +4 -0
- package/dist/views/error/errorView.d.ts.map +1 -0
- package/dist/views/insertKey/insertKeyView.d.ts +18 -0
- package/dist/views/insertKey/insertKeyView.d.ts.map +1 -0
- package/dist/views/insertKey/visibilityIcon.d.ts +7 -0
- package/dist/views/insertKey/visibilityIcon.d.ts.map +1 -0
- package/dist/views/validateKeyProperty/validateKeyPropertyView.d.ts +7 -0
- package/dist/views/validateKeyProperty/validateKeyPropertyView.d.ts.map +1 -0
- package/package.json +70 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
import { Messages } from '../../views/chat/messages/messages';
|
2
|
+
import { DirectServiceIO } from '../utils/directServiceIO';
|
3
|
+
import { HuggingFaceModel } from '../../types/huggingFace';
|
4
|
+
import { MessageContent } from '../../types/messages';
|
5
|
+
import { ServiceFileTypes } from '../serviceIO';
|
6
|
+
import { APIKey } from '../../types/APIKey';
|
7
|
+
import { DeepChat } from '../../deepChat';
|
8
|
+
type HuggingFaceServiceConfigObj = {
|
9
|
+
parameters?: object;
|
10
|
+
options?: object;
|
11
|
+
context?: string;
|
12
|
+
};
|
13
|
+
type HuggingFaceServiceConfig = true | (HuggingFaceModel & HuggingFaceServiceConfigObj);
|
14
|
+
export declare class HuggingFaceIO extends DirectServiceIO {
|
15
|
+
insertKeyPlaceholderText: string;
|
16
|
+
getKeyLink: string;
|
17
|
+
private static readonly URL_PREFIX;
|
18
|
+
introPanelMarkUp: string;
|
19
|
+
permittedErrorPrefixes: string[];
|
20
|
+
url: string;
|
21
|
+
textInputPlaceholderText: string;
|
22
|
+
constructor(deepChat: DeepChat, textInputPlaceholderText: string, defaultModel: string, config?: HuggingFaceServiceConfig, apiKey?: APIKey, existingFileTypes?: ServiceFileTypes);
|
23
|
+
preprocessBody(body: HuggingFaceServiceConfigObj, messages: MessageContent[], _?: File[]): {
|
24
|
+
parameters?: object | undefined;
|
25
|
+
options?: (object & {
|
26
|
+
wait_for_model?: boolean | undefined;
|
27
|
+
}) | undefined;
|
28
|
+
context?: string | undefined;
|
29
|
+
inputs: string;
|
30
|
+
} | undefined;
|
31
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[], files?: File[]): void;
|
32
|
+
}
|
33
|
+
export {};
|
34
|
+
//# sourceMappingURL=huggingFaceIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
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;;;;;;;;IAU/E,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;CAKxF"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { HuggingFaceClassificationResult } from '../../types/huggingFaceResult';
|
2
|
+
import { HuggingFaceFileIO } from './huggingFaceFileIO';
|
3
|
+
import { PollResult } from '../serviceIO';
|
4
|
+
import { DeepChat } from '../../deepChat';
|
5
|
+
export declare class HuggingFaceImageClassificationIO extends HuggingFaceFileIO {
|
6
|
+
constructor(deepChat: DeepChat);
|
7
|
+
extractPollResultData(result: HuggingFaceClassificationResult): PollResult;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=huggingFaceImageClassificationIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"huggingFaceImageClassificationIO.d.ts","sourceRoot":"","sources":["../../../../src/services/huggingFace/huggingFaceImageClassificationIO.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;AAExC,qBAAa,gCAAiC,SAAQ,iBAAiB;gBACzD,QAAQ,EAAE,QAAQ;IAQxB,qBAAqB,CAAC,MAAM,EAAE,+BAA+B,GAAG,UAAU;CAKjF"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { HuggingFaceQuestionAnswerConfig } from '../../types/huggingFace';
|
2
|
+
import { HuggingFaceQuestionAnswerResult } from '../../types/huggingFaceResult';
|
3
|
+
import { MessageContent } from '../../types/messages';
|
4
|
+
import { HuggingFaceIO } from './huggingFaceIO';
|
5
|
+
import { Result } from '../../types/result';
|
6
|
+
import { DeepChat } from '../../deepChat';
|
7
|
+
export declare class HuggingFaceQuestionAnswerIO extends HuggingFaceIO {
|
8
|
+
permittedErrorPrefixes: string[];
|
9
|
+
private readonly context;
|
10
|
+
constructor(deepChat: DeepChat);
|
11
|
+
preprocessBody(_: HuggingFaceQuestionAnswerConfig, messages: MessageContent[]): {
|
12
|
+
inputs: string;
|
13
|
+
} | undefined;
|
14
|
+
extractResultData(result: HuggingFaceQuestionAnswerResult): Promise<Result>;
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=huggingFaceQuestionAnswerIO.d.ts.map
|
@@ -0,0 +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,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,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,MAAM,CAAC;CAI3F"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { HuggingFaceSummarizationResult } from '../../types/huggingFaceResult';
|
2
|
+
import { HuggingFaceIO } from './huggingFaceIO';
|
3
|
+
import { Result } from '../../types/result';
|
4
|
+
import { DeepChat } from '../../deepChat';
|
5
|
+
export declare class HuggingFaceSummarizationIO extends HuggingFaceIO {
|
6
|
+
constructor(deepChat: DeepChat);
|
7
|
+
extractResultData(result: HuggingFaceSummarizationResult): Promise<Result>;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=huggingFaceSummarizationIO.d.ts.map
|
@@ -0,0 +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,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,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,MAAM,CAAC;CAI1F"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { HuggingFaceTextGenerationResult } from '../../types/huggingFaceResult';
|
2
|
+
import { HuggingFaceIO } from './huggingFaceIO';
|
3
|
+
import { Result } from '../../types/result';
|
4
|
+
import { DeepChat } from '../../deepChat';
|
5
|
+
export declare class HuggingFaceTextGenerationIO extends HuggingFaceIO {
|
6
|
+
constructor(deepChat: DeepChat);
|
7
|
+
extractResultData(result: HuggingFaceTextGenerationResult): Promise<Result>;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=huggingFaceTextGenerationIO.d.ts.map
|
@@ -0,0 +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,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,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,MAAM,CAAC;CAI3F"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { HuggingFaceTranslationResult } from '../../types/huggingFaceResult';
|
2
|
+
import { HuggingFaceIO } from './huggingFaceIO';
|
3
|
+
import { Result } from '../../types/result';
|
4
|
+
import { DeepChat } from '../../deepChat';
|
5
|
+
export declare class HuggingFaceTranslationIO extends HuggingFaceIO {
|
6
|
+
constructor(deepChat: DeepChat);
|
7
|
+
extractResultData(result: HuggingFaceTranslationResult): Promise<Result>;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=huggingFaceTranslationIO.d.ts.map
|
@@ -0,0 +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,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,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,MAAM,CAAC;CAIxF"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { KeyVerificationDetails } from '../../../types/keyVerificationDetails';
|
2
|
+
export declare class HuggingFaceUtils {
|
3
|
+
static buildHeaders(key: string): {
|
4
|
+
Authorization: string;
|
5
|
+
'Content-Type': string;
|
6
|
+
};
|
7
|
+
private static handleVerificationResult;
|
8
|
+
static buildKeyVerificationDetails(): KeyVerificationDetails;
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=huggingFaceUtils.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"huggingFaceUtils.d.ts","sourceRoot":"","sources":["../../../../../src/services/huggingFace/utils/huggingFaceUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,sBAAsB,EAAC,MAAM,uCAAuC,CAAC;AAG7E,qBAAa,gBAAgB;WACb,YAAY,CAAC,GAAG,EAAE,MAAM;;;;IAQtC,OAAO,CAAC,MAAM,CAAC,wBAAwB;WAWzB,2BAA2B,IAAI,sBAAsB;CAOpE"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { Messages } from '../../views/chat/messages/messages';
|
2
|
+
import { OpenAIAudioResult } from '../../types/openAIResult';
|
3
|
+
import { DirectServiceIO } from '../utils/directServiceIO';
|
4
|
+
import { MessageContent } from '../../types/messages';
|
5
|
+
import { Result } from '../../types/result';
|
6
|
+
import { DeepChat } from '../../deepChat';
|
7
|
+
export declare class OpenAIAudioIO extends DirectServiceIO {
|
8
|
+
insertKeyPlaceholderText: string;
|
9
|
+
getKeyLink: string;
|
10
|
+
private static readonly AUDIO_TRANSCRIPTIONS_URL;
|
11
|
+
private static readonly AUDIO_TRANSLATIONS_URL;
|
12
|
+
private static readonly DEFAULT_MODEL;
|
13
|
+
introPanelMarkUp: string;
|
14
|
+
url: string;
|
15
|
+
permittedErrorPrefixes: string[];
|
16
|
+
private readonly _maxCharLength;
|
17
|
+
private _service_url;
|
18
|
+
constructor(deepChat: DeepChat);
|
19
|
+
private static canSendFileMessage;
|
20
|
+
private processConfig;
|
21
|
+
private static cleanConfig;
|
22
|
+
private static createFormDataBody;
|
23
|
+
private preprocessBody;
|
24
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[], files?: File[]): void;
|
25
|
+
extractResultData(result: OpenAIAudioResult): Promise<Result>;
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=openAIAudioIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
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,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,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;IAWb,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;IAWxE,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;CAI7E"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { SystemMessageInternal } from '../../types/openAIInternal';
|
2
|
+
import { OpenAIConverseResult } from '../../types/openAIResult';
|
3
|
+
import { Messages } from '../../views/chat/messages/messages';
|
4
|
+
import { DirectServiceIO } from '../utils/directServiceIO';
|
5
|
+
import { MessageContent } from '../../types/messages';
|
6
|
+
import { Result } from '../../types/result';
|
7
|
+
import { DeepChat } from '../../deepChat';
|
8
|
+
export declare class OpenAIChatIO extends DirectServiceIO {
|
9
|
+
insertKeyPlaceholderText: string;
|
10
|
+
getKeyLink: string;
|
11
|
+
url: string;
|
12
|
+
permittedErrorPrefixes: string[];
|
13
|
+
private readonly _systemMessage;
|
14
|
+
constructor(deepChat: DeepChat);
|
15
|
+
static generateSystemMessage(systemPrompt: string): SystemMessageInternal;
|
16
|
+
private cleanConfig;
|
17
|
+
private preprocessBody;
|
18
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[]): void;
|
19
|
+
extractResultData(result: OpenAIConverseResult): Promise<Result>;
|
20
|
+
}
|
21
|
+
//# sourceMappingURL=openAIChatIO.d.ts.map
|
@@ -0,0 +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,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,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,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;IAUb,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE;IAWxD,iBAAiB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;CAUhF"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { OpenAIConverseResult } from '../../types/openAIResult';
|
2
|
+
import { Messages } from '../../views/chat/messages/messages';
|
3
|
+
import { DirectServiceIO } from '../utils/directServiceIO';
|
4
|
+
import { MessageContent } from '../../types/messages';
|
5
|
+
import { Result } from '../../types/result';
|
6
|
+
import { DeepChat } from '../../deepChat';
|
7
|
+
export declare class OpenAICompletionsIO extends DirectServiceIO {
|
8
|
+
insertKeyPlaceholderText: string;
|
9
|
+
getKeyLink: string;
|
10
|
+
url: string;
|
11
|
+
permittedErrorPrefixes: string[];
|
12
|
+
private readonly _maxCharLength;
|
13
|
+
private readonly full_transaction_max_tokens;
|
14
|
+
private readonly numberOfCharsPerToken;
|
15
|
+
constructor(deepChat: DeepChat);
|
16
|
+
private preprocessBody;
|
17
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[]): void;
|
18
|
+
extractResultData(result: OpenAIConverseResult): Promise<Result>;
|
19
|
+
}
|
20
|
+
//# sourceMappingURL=openAICompletionsIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
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,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,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;IAab,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE;IAWxD,iBAAiB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;CAIhF"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Messages } from '../../views/chat/messages/messages';
|
2
|
+
import { OpenAIImageResult } from '../../types/openAIResult';
|
3
|
+
import { DirectServiceIO } from '../utils/directServiceIO';
|
4
|
+
import { MessageContent } from '../../types/messages';
|
5
|
+
import { Result } from '../../types/result';
|
6
|
+
import { DeepChat } from '../../deepChat';
|
7
|
+
export declare class OpenAIImagesIO extends DirectServiceIO {
|
8
|
+
insertKeyPlaceholderText: string;
|
9
|
+
getKeyLink: string;
|
10
|
+
private static readonly IMAGE_GENERATION_URL;
|
11
|
+
private static readonly IMAGE_VARIATIONS_URL;
|
12
|
+
private static readonly IMAGE_EDIT_URL;
|
13
|
+
introPanelMarkUp: string;
|
14
|
+
url: string;
|
15
|
+
permittedErrorPrefixes: string[];
|
16
|
+
private readonly _maxCharLength;
|
17
|
+
constructor(deepChat: DeepChat);
|
18
|
+
private static canFileSendMessage;
|
19
|
+
private static createFormDataBody;
|
20
|
+
private preprocessBody;
|
21
|
+
private callApiWithImage;
|
22
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[], files?: File[]): void;
|
23
|
+
extractResultData(result: OpenAIImageResult): Promise<Result>;
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=openAIImagesIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
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,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,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;IAiBf,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;IAYxE,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC;CAsB7E"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { OpenAIConverseBodyInternal } from '../../../types/openAIInternal';
|
2
|
+
import { OpenAIConverse } from '../../../types/openAI';
|
3
|
+
type ClientConfig = true | OpenAIConverse;
|
4
|
+
type ModelName = typeof OpenAIConverseBaseBody.GPT_COMPLETIONS_DAVINCI_MODEL | typeof OpenAIConverseBaseBody.GPT_CHAT_TURBO_MODEL;
|
5
|
+
export declare class OpenAIConverseBaseBody {
|
6
|
+
static readonly GPT_COMPLETIONS_DAVINCI_MODEL = "text-davinci-003";
|
7
|
+
static readonly GPT_CHAT_TURBO_MODEL = "gpt-3.5-turbo";
|
8
|
+
private static generateDefaultBody;
|
9
|
+
static build(modelName: ModelName, clientConfig?: ClientConfig): OpenAIConverseBodyInternal;
|
10
|
+
}
|
11
|
+
export {};
|
12
|
+
//# sourceMappingURL=openAIConverseBaseBody.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"openAIConverseBaseBody.d.ts","sourceRoot":"","sources":["../../../../../src/services/openAI/utils/openAIConverseBaseBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,0BAA0B,EAAC,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAErD,KAAK,YAAY,GAAG,IAAI,GAAG,cAAc,CAAC;AAC1C,KAAK,SAAS,GACV,OAAO,sBAAsB,CAAC,6BAA6B,GAC3D,OAAO,sBAAsB,CAAC,oBAAoB,CAAC;AAGvD,qBAAa,sBAAsB;IACjC,gBAAuB,6BAA6B,sBAAsB;IAC1E,gBAAuB,oBAAoB,mBAAmB;IAE9D,OAAO,CAAC,MAAM,CAAC,mBAAmB;WAMpB,KAAK,CAAC,SAAS,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE,YAAY,GAAG,0BAA0B;CAKnG"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { KeyVerificationDetails } from '../../../types/keyVerificationDetails';
|
2
|
+
export declare class OpenAIUtils {
|
3
|
+
static readonly CONVERSE_MAX_CHAR_LENGTH: number;
|
4
|
+
static readonly FILE_MAX_CHAR_LENGTH: number;
|
5
|
+
static buildHeaders(key: string): {
|
6
|
+
Authorization: string;
|
7
|
+
'Content-Type': string;
|
8
|
+
};
|
9
|
+
private static handleVerificationResult;
|
10
|
+
static buildKeyVerificationDetails(): KeyVerificationDetails;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=openAIUtils.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"openAIUtils.d.ts","sourceRoot":"","sources":["../../../../../src/services/openAI/utils/openAIUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,uCAAuC,CAAC;AAI7E,qBAAa,WAAW;IAEtB,gBAAuB,wBAAwB,EAAE,MAAM,CAAS;IAChE,gBAAuB,oBAAoB,EAAE,MAAM,CAAQ;WAE7C,YAAY,CAAC,GAAG,EAAE,MAAM;;;;IAQtC,OAAO,CAAC,MAAM,CAAC,wBAAwB;WAczB,2BAA2B,IAAI,sBAAsB;CAOpE"}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { CameraFilesServiceConfig, FilesServiceConfig, MicrophoneFilesServiceConfig } from '../types/fileServiceConfigs';
|
2
|
+
import { ValidateMessageBeforeSending } from '../types/validateMessageBeforeSending';
|
3
|
+
import { Messages } from '../views/chat/messages/messages';
|
4
|
+
import { InterfacesUnion } from '../types/utilityTypes';
|
5
|
+
import { FILE_TYPES } from '../types/fileTypes';
|
6
|
+
import { Request } from '../types/request';
|
7
|
+
import { Result } from '../types/result';
|
8
|
+
import { DeepChat } from '../deepChat';
|
9
|
+
import { Demo } from '../types/demo';
|
10
|
+
export interface RequestContents {
|
11
|
+
text?: string;
|
12
|
+
files?: File[];
|
13
|
+
}
|
14
|
+
export type PollResult = Promise<InterfacesUnion<Result | {
|
15
|
+
timeoutMS: number;
|
16
|
+
}>>;
|
17
|
+
export interface CompletionsHandlers {
|
18
|
+
onFinish: () => void;
|
19
|
+
}
|
20
|
+
export interface StreamHandlers {
|
21
|
+
onOpen: () => void;
|
22
|
+
onClose: () => void;
|
23
|
+
abortStream: AbortController;
|
24
|
+
simulationInterim?: number;
|
25
|
+
}
|
26
|
+
export interface KeyVerificationHandlers {
|
27
|
+
onSuccess: () => void;
|
28
|
+
onFail: (message: string) => void;
|
29
|
+
onLoad: () => void;
|
30
|
+
}
|
31
|
+
export type FileServiceIO = FilesServiceConfig & {
|
32
|
+
infoModalTextMarkUp?: string;
|
33
|
+
};
|
34
|
+
export type CustomErrors = string[];
|
35
|
+
export type ServiceFileTypes = {
|
36
|
+
[key in FILE_TYPES]?: FileServiceIO;
|
37
|
+
};
|
38
|
+
export interface ServiceIO {
|
39
|
+
key?: string;
|
40
|
+
validateConfigKey: boolean;
|
41
|
+
insertKeyPlaceholderText?: string;
|
42
|
+
getKeyLink?: string;
|
43
|
+
url?: string;
|
44
|
+
websocket?: WebSocket;
|
45
|
+
completionsHandlers: CompletionsHandlers;
|
46
|
+
streamHandlers: StreamHandlers;
|
47
|
+
isTextInputDisabled?: boolean;
|
48
|
+
textInputPlaceholderText?: string;
|
49
|
+
fileTypes: ServiceFileTypes;
|
50
|
+
camera?: CameraFilesServiceConfig;
|
51
|
+
recordAudio?: MicrophoneFilesServiceConfig;
|
52
|
+
requestSettings: Request;
|
53
|
+
introPanelMarkUp?: string;
|
54
|
+
permittedErrorPrefixes?: CustomErrors;
|
55
|
+
canSendMessage: ValidateMessageBeforeSending;
|
56
|
+
verifyKey(key: string, keyVerificationHandlers: KeyVerificationHandlers): void;
|
57
|
+
callAPI(requestContents: RequestContents, messages: Messages): void;
|
58
|
+
extractResultData?(result: object): Promise<InterfacesUnion<Result | {
|
59
|
+
pollingInAnotherRequest: true;
|
60
|
+
}>>;
|
61
|
+
extractPollResultData?(result: object): PollResult;
|
62
|
+
demo?: Demo;
|
63
|
+
deepChat: DeepChat;
|
64
|
+
}
|
65
|
+
//# sourceMappingURL=serviceIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"serviceIO.d.ts","sourceRoot":"","sources":["../../../src/services/serviceIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,kBAAkB,EAAE,4BAA4B,EAAC,MAAM,6BAA6B,CAAC;AACvH,OAAO,EAAC,4BAA4B,EAAC,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAC,QAAQ,EAAC,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AACrC,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAEnC,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;CAChB;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,eAAe,CAAC,MAAM,GAAG;IAAC,SAAS,EAAE,MAAM,CAAA;CAAC,CAAC,CAAC,CAAC;AAEhF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,EAAE,eAAe,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,GAAG,kBAAkB,GAAG;IAAC,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AAEhF,MAAM,MAAM,YAAY,GAAG,MAAM,EAAE,CAAC;AAEpC,MAAM,MAAM,gBAAgB,GAAG;KAC5B,GAAG,IAAI,UAAU,CAAC,CAAC,EAAE,aAAa;CACpC,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,iBAAiB,EAAE,OAAO,CAAC;IAE3B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,mBAAmB,EAAE,mBAAmB,CAAC;IAEzC,cAAc,EAAE,cAAc,CAAC;IAG/B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAG9B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC,SAAS,EAAE,gBAAgB,CAAC;IAE5B,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAElC,WAAW,CAAC,EAAE,4BAA4B,CAAC;IAE3C,eAAe,EAAE,OAAO,CAAC;IAEzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAK1B,sBAAsB,CAAC,EAAE,YAAY,CAAC;IAEtC,cAAc,EAAE,4BAA4B,CAAC;IAE7C,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,uBAAuB,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAE/E,OAAO,CAAC,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEpE,iBAAiB,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,MAAM,GAAG;QAAC,uBAAuB,EAAE,IAAI,CAAA;KAAC,CAAC,CAAC,CAAC;IAEvG,qBAAqB,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;IAEnD,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"serviceIOFactory.d.ts","sourceRoot":"","sources":["../../../src/services/serviceIOFactory.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AAGrC,qBAAa,gBAAgB;WACb,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS;CAsFpD"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { KeyVerificationDetails } from '../../types/keyVerificationDetails';
|
2
|
+
import { DirectServiceIO } from '../utils/directServiceIO';
|
3
|
+
import { BuildHeadersFunc } from '../../types/headers';
|
4
|
+
import { ServiceFileTypes } from '../serviceIO';
|
5
|
+
import { APIKey } from '../../types/APIKey';
|
6
|
+
import { DeepChat } from '../../deepChat';
|
7
|
+
export declare class StabilityAIIO extends DirectServiceIO {
|
8
|
+
insertKeyPlaceholderText: string;
|
9
|
+
getKeyLink: string;
|
10
|
+
permittedErrorPrefixes: string[];
|
11
|
+
constructor(deepChat: DeepChat, keyVerificationDetails: KeyVerificationDetails, buildHeadersFunc: BuildHeadersFunc, apiKey?: APIKey, existingFileTypes?: ServiceFileTypes);
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=stabilityAIIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stabilityAIIO.d.ts","sourceRoot":"","sources":["../../../../src/services/stabilityAI/stabilityAIIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,aAAc,SAAQ,eAAe;IACvC,wBAAwB,SAA0B;IAClD,UAAU,SAAuE;IAC1F,sBAAsB,WAA6B;gBAGvC,QAAQ,EAAE,QAAQ,EAAE,sBAAsB,EAAE,sBAAsB,EAC1E,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,gBAAgB;CAG9F"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { StabilityAITextToImageResult } from '../../types/stabilityAIResult';
|
2
|
+
import { Messages } from '../../views/chat/messages/messages';
|
3
|
+
import { MessageContent } from '../../types/messages';
|
4
|
+
import { StabilityAIIO } from './stabilityAIIO';
|
5
|
+
import { Result } from '../../types/result';
|
6
|
+
import { DeepChat } from '../../deepChat';
|
7
|
+
export declare class StabilityAIImageToImageIO extends StabilityAIIO {
|
8
|
+
url: string;
|
9
|
+
private readonly _imageWeight;
|
10
|
+
textInputPlaceholderText: string;
|
11
|
+
introPanelMarkUp: string;
|
12
|
+
constructor(deepChat: DeepChat);
|
13
|
+
private static cleanConfig;
|
14
|
+
private static canSendFileTextMessage;
|
15
|
+
private createFormDataBody;
|
16
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[], files?: File[]): void;
|
17
|
+
extractResultData(result: StabilityAITextToImageResult): Promise<Result>;
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=stabilityAIImageToImageIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stabilityAIImageToImageIO.d.ts","sourceRoot":"","sources":["../../../../src/services/stabilityAI/stabilityAIImageToImageIO.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,4BAA4B,EAAC,MAAM,+BAA+B,CAAC;AAE3E,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAK5D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAGxC,qBAAa,yBAA0B,SAAQ,aAAa;IAC1D,GAAG,SAAiF;IACpF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;IAClD,wBAAwB,SAA4B;IACpD,gBAAgB,SAGiE;gBAErE,QAAQ,EAAE,QAAQ;IAe9B,OAAO,CAAC,MAAM,CAAC,WAAW;IAK1B,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAIrC,OAAO,CAAC,kBAAkB;IAmBjB,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;IAUxE,iBAAiB,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,MAAM,CAAC;CAOxF"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { StabilityAITextToImageResult } from '../../types/stabilityAIResult';
|
2
|
+
import { Messages } from '../../views/chat/messages/messages';
|
3
|
+
import { MessageContent } from '../../types/messages';
|
4
|
+
import { StabilityAIIO } from './stabilityAIIO';
|
5
|
+
import { Result } from '../../types/result';
|
6
|
+
import { DeepChat } from '../../deepChat';
|
7
|
+
export declare class StabilityAIImageToImageMaskingIO extends StabilityAIIO {
|
8
|
+
url: string;
|
9
|
+
private readonly _imageWeight;
|
10
|
+
private readonly _maskSource;
|
11
|
+
textInputPlaceholderText: string;
|
12
|
+
introPanelMarkUp: string;
|
13
|
+
constructor(deepChat: DeepChat);
|
14
|
+
private static cleanConfig;
|
15
|
+
private static canSendFileTextMessage;
|
16
|
+
private createFormDataBody;
|
17
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[], files?: File[]): void;
|
18
|
+
extractResultData(result: StabilityAITextToImageResult): Promise<Result>;
|
19
|
+
}
|
20
|
+
//# sourceMappingURL=stabilityAIImageToImageMaskingIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stabilityAIImageToImageMaskingIO.d.ts","sourceRoot":"","sources":["../../../../src/services/stabilityAI/stabilityAIImageToImageMaskingIO.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,4BAA4B,EAAC,MAAM,+BAA+B,CAAC;AAE3E,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAK5D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,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,gCAAiC,SAAQ,aAAa;IACjE,GAAG,SAA8F;IACjG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;IAClD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAqE;IACjG,wBAAwB,SAA4B;IACpD,gBAAgB,SAIiE;gBAErE,QAAQ,EAAE,QAAQ;IAgB9B,OAAO,CAAC,MAAM,CAAC,WAAW;IAK1B,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAIrC,OAAO,CAAC,kBAAkB;IAqBjB,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;IAUxE,iBAAiB,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,MAAM,CAAC;CAOxF"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { StabilityAITextToImageResult } from '../../types/stabilityAIResult';
|
2
|
+
import { Messages } from '../../views/chat/messages/messages';
|
3
|
+
import { MessageContent } from '../../types/messages';
|
4
|
+
import { StabilityAIIO } from './stabilityAIIO';
|
5
|
+
import { Result } from '../../types/result';
|
6
|
+
import { DeepChat } from '../../deepChat';
|
7
|
+
export declare class StabilityAIImageToImageUpscaleIO extends StabilityAIIO {
|
8
|
+
url: string;
|
9
|
+
textInputPlaceholderText: string;
|
10
|
+
introPanelMarkUp: string;
|
11
|
+
constructor(deepChat: DeepChat);
|
12
|
+
private static cleanConfig;
|
13
|
+
private static canSendFileMessage;
|
14
|
+
private createFormDataBody;
|
15
|
+
callServiceAPI(messages: Messages, _: MessageContent[], files?: File[]): void;
|
16
|
+
extractResultData(result: StabilityAITextToImageResult): Promise<Result>;
|
17
|
+
}
|
18
|
+
//# sourceMappingURL=stabilityAIImageToImageUpscaleIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stabilityAIImageToImageUpscaleIO.d.ts","sourceRoot":"","sources":["../../../../src/services/stabilityAI/stabilityAIImageToImageUpscaleIO.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,4BAA4B,EAAC,MAAM,+BAA+B,CAAC;AAE3E,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAK5D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,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,gCAAiC,SAAQ,aAAa;IACjE,GAAG,SAAoF;IACvF,wBAAwB,SAA4B;IACpD,gBAAgB,SAIiE;gBAErE,QAAQ,EAAE,QAAQ;IAc9B,OAAO,CAAC,MAAM,CAAC,WAAW;IAI1B,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAIjC,OAAO,CAAC,kBAAkB;IAUjB,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,cAAc,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;IAShE,iBAAiB,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,MAAM,CAAC;CAOxF"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { StabilityAITextToImageResult } from '../../types/stabilityAIResult';
|
2
|
+
import { Messages } from '../../views/chat/messages/messages';
|
3
|
+
import { MessageContent } from '../../types/messages';
|
4
|
+
import { StabilityAIIO } from './stabilityAIIO';
|
5
|
+
import { Result } from '../../types/result';
|
6
|
+
import { DeepChat } from '../../deepChat';
|
7
|
+
export declare class StabilityAITextToImageIO extends StabilityAIIO {
|
8
|
+
url: string;
|
9
|
+
private readonly _imageWeight;
|
10
|
+
textInputPlaceholderText: string;
|
11
|
+
introPanelMarkUp: string;
|
12
|
+
constructor(deepChat: DeepChat);
|
13
|
+
private static cleanConfig;
|
14
|
+
private static canSendTextMessage;
|
15
|
+
private preprocessBody;
|
16
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[]): void;
|
17
|
+
extractResultData(result: StabilityAITextToImageResult): Promise<Result>;
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=stabilityAITextToImageIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stabilityAITextToImageIO.d.ts","sourceRoot":"","sources":["../../../../src/services/stabilityAI/stabilityAITextToImageIO.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,4BAA4B,EAAC,MAAM,+BAA+B,CAAC;AAE3E,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAI5D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,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,wBAAyB,SAAQ,aAAa;IACzD,GAAG,SAAgF;IACnF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;IAClD,wBAAwB,SAAuB;IAC/C,gBAAgB,SAGiE;gBAErE,QAAQ,EAAE,QAAQ;IAc9B,OAAO,CAAC,MAAM,CAAC,WAAW;IAK1B,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAIjC,OAAO,CAAC,cAAc;IAQb,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE;IAMxD,iBAAiB,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,MAAM,CAAC;CAOxF"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { KeyVerificationDetails } from '../../../types/keyVerificationDetails';
|
2
|
+
export declare class StabilityAIUtils {
|
3
|
+
static buildHeaders(key: string): {
|
4
|
+
Authorization: string;
|
5
|
+
'Content-Type': string;
|
6
|
+
};
|
7
|
+
private static handleVerificationResult;
|
8
|
+
static buildKeyVerificationDetails(): KeyVerificationDetails;
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=stabilityAIUtils.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stabilityAIUtils.d.ts","sourceRoot":"","sources":["../../../../../src/services/stabilityAI/utils/stabilityAIUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,sBAAsB,EAAC,MAAM,uCAAuC,CAAC;AAG7E,qBAAa,gBAAgB;WACb,YAAY,CAAC,GAAG,EAAE,MAAM;;;;IAQtC,OAAO,CAAC,MAAM,CAAC,wBAAwB;WAUzB,2BAA2B,IAAI,sBAAsB;CAOpE"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { CameraFilesServiceConfig, MicrophoneFilesServiceConfig } from '../../types/fileServiceConfigs';
|
2
|
+
import { ValidateMessageBeforeSending } from '../../types/validateMessageBeforeSending';
|
3
|
+
import { CustomServiceResponse } from '../../types/customService';
|
4
|
+
import { Messages } from '../../views/chat/messages/messages';
|
5
|
+
import { MessageContent } from '../../types/messages';
|
6
|
+
import { Request } from '../../types/request';
|
7
|
+
import { Demo } from '../../utils/demo/demo';
|
8
|
+
import { Result } from '../../types/result';
|
9
|
+
import { DeepChat } from '../../deepChat';
|
10
|
+
import { KeyVerificationHandlers, CompletionsHandlers, ServiceFileTypes, RequestContents, StreamHandlers, ServiceIO } from '../serviceIO';
|
11
|
+
export declare class BaseServiceIO implements ServiceIO {
|
12
|
+
readonly rawBody: any;
|
13
|
+
deepChat: DeepChat;
|
14
|
+
validateConfigKey: boolean;
|
15
|
+
canSendMessage: ValidateMessageBeforeSending;
|
16
|
+
requestSettings: Request;
|
17
|
+
fileTypes: ServiceFileTypes;
|
18
|
+
camera?: CameraFilesServiceConfig;
|
19
|
+
recordAudio?: MicrophoneFilesServiceConfig;
|
20
|
+
totalMessagesMaxCharLength?: number;
|
21
|
+
maxMessages?: number;
|
22
|
+
private readonly _directServiceRequiresFiles;
|
23
|
+
demo?: Demo;
|
24
|
+
websocket?: WebSocket;
|
25
|
+
completionsHandlers: CompletionsHandlers;
|
26
|
+
streamHandlers: StreamHandlers;
|
27
|
+
constructor(deepChat: DeepChat, existingFileTypes?: ServiceFileTypes, demo?: Demo);
|
28
|
+
private static canSendMessage;
|
29
|
+
verifyKey(_key: string, _keyVerificationHandlers: KeyVerificationHandlers): void;
|
30
|
+
private static createCustomFormDataBody;
|
31
|
+
private getServiceIOByType;
|
32
|
+
callServiceAPI(messages: Messages, pMessages: MessageContent[], _?: File[]): void;
|
33
|
+
callApiWithFiles(body: any, messages: Messages, pMessages: MessageContent[], files: File[]): void;
|
34
|
+
callAPI(requestContents: RequestContents, messages: Messages): void;
|
35
|
+
extractResultData(result: any | CustomServiceResponse): Promise<Result | {
|
36
|
+
pollingInAnotherRequest: true;
|
37
|
+
}>;
|
38
|
+
}
|
39
|
+
//# sourceMappingURL=baseServiceIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"baseServiceIO.d.ts","sourceRoot":"","sources":["../../../../src/services/utils/baseServiceIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AACtG,OAAO,EAAC,4BAA4B,EAAC,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAI5D,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAE5C,OAAO,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,SAAS,EACV,MAAM,cAAc,CAAC;AAGtB,qBAAa,aAAc,YAAW,SAAS;IAC7C,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAM;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,iBAAiB,UAAS;IAC1B,cAAc,EAAE,4BAA4B,CAAgC;IAC5E,eAAe,EAAE,OAAO,CAAM;IAC9B,SAAS,EAAE,gBAAgB,CAAM;IACjC,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,WAAW,CAAC,EAAE,4BAA4B,CAAC;IAC3C,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAU;IACtD,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,mBAAmB,EAAE,mBAAmB,CAA6B;IACrE,cAAc,EAAE,cAAc,CAAwB;gBAE1C,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,IAAI;IAajF,OAAO,CAAC,MAAM,CAAC,cAAc;IAI7B,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,wBAAwB,EAAE,uBAAuB;IAEzE,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAWvC,OAAO,CAAC,kBAAkB;IAY1B,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE;IAkB1E,gBAAgB,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;IAU1F,OAAO,CAAC,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,QAAQ;IActD,iBAAiB,CAAC,MAAM,EAAE,GAAG,GAAG,qBAAqB,GAAG,OAAO,CAAC,MAAM,GAAG;QAAC,uBAAuB,EAAE,IAAI,CAAA;KAAC,CAAC;CAIhH"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { KeyVerificationDetails } from '../../types/keyVerificationDetails';
|
2
|
+
import { KeyVerificationHandlers, ServiceFileTypes } from '../serviceIO';
|
3
|
+
import { BuildHeadersFunc } from '../../types/headers';
|
4
|
+
import { BaseServiceIO } from './baseServiceIO';
|
5
|
+
import { APIKey } from '../../types/APIKey';
|
6
|
+
import { DeepChat } from '../../deepChat';
|
7
|
+
export declare class DirectServiceIO extends BaseServiceIO {
|
8
|
+
key?: string;
|
9
|
+
insertKeyPlaceholderText: string;
|
10
|
+
getKeyLink: string;
|
11
|
+
private readonly keyVerificationDetails;
|
12
|
+
private readonly buildHeadersFunc;
|
13
|
+
constructor(deepChat: DeepChat, keyVerificationDetails: KeyVerificationDetails, buildHeadersFunc: BuildHeadersFunc, apiKey?: APIKey, existingFileTypes?: ServiceFileTypes);
|
14
|
+
private setApiKeyProperties;
|
15
|
+
private buildRequestSettings;
|
16
|
+
private keyAuthenticated;
|
17
|
+
verifyKey(key: string, keyVerificationHandlers: KeyVerificationHandlers): void;
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=directServiceIO.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"directServiceIO.d.ts","sourceRoot":"","sources":["../../../../src/services/utils/directServiceIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAC,uBAAuB,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAEvE,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,eAAgB,SAAQ,aAAa;IAChD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,wBAAwB,SAAa;IACrC,UAAU,SAAM;IAChB,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAyB;IAChE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAmB;gBAGxC,QAAQ,EAAE,QAAQ,EAAE,sBAAsB,EAAE,sBAAsB,EAC1E,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,gBAAgB;IAS7F,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,oBAAoB;IAM5B,OAAO,CAAC,gBAAgB;IAOf,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,uBAAuB,EAAE,uBAAuB;CAOjF"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { MessageContent } from '../../types/messages';
|
2
|
+
import { RequestContents } from '../serviceIO';
|
3
|
+
export declare class MessageLimitUtils {
|
4
|
+
static getCharacterLimitMessages(messages: MessageContent[], limit: number): MessageContent[];
|
5
|
+
private static getRequestMessages;
|
6
|
+
private static getMaxMessages;
|
7
|
+
static processMessages(requestContents: RequestContents, messages: MessageContent[], maxMessages?: number, totalMessagesMaxCharLength?: number): MessageContent[];
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=messageLimitUtils.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"messageLimitUtils.d.ts","sourceRoot":"","sources":["../../../../src/services/utils/messageLimitUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAE7C,qBAAa,iBAAiB;WACd,yBAAyB,CAAC,QAAQ,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM;IAgBjF,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAiBjC,OAAO,CAAC,MAAM,CAAC,cAAc;WAQf,eAAe,CAAC,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,cAAc,EAAE,EACtF,WAAW,CAAC,EAAE,MAAM,EAAE,0BAA0B,CAAC,EAAE,MAAM;CAS9D"}
|