@futdevpro/nts-dynamo 1.10.77 → 1.11.1
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/build/_collections/atlas-default-db-options.const.d.ts +28 -0
- package/build/_collections/atlas-default-db-options.const.d.ts.map +1 -0
- package/build/_collections/atlas-default-db-options.const.js +10 -0
- package/build/_collections/atlas-default-db-options.const.js.map +1 -0
- package/build/_collections/get-environment-settings.util.d.ts +3 -0
- package/build/_collections/get-environment-settings.util.d.ts.map +1 -0
- package/build/_collections/get-environment-settings.util.js +45 -0
- package/build/_collections/get-environment-settings.util.js.map +1 -0
- package/build/_collections/global-settings.const.d.ts.map +1 -1
- package/build/_collections/global-settings.const.js +9 -4
- package/build/_collections/global-settings.const.js.map +1 -1
- package/build/_models/control-models/app-params.control-model.d.ts +6 -0
- package/build/_models/control-models/app-params.control-model.d.ts.map +1 -1
- package/build/_models/control-models/app-params.control-model.js +29 -2
- package/build/_models/control-models/app-params.control-model.js.map +1 -1
- package/build/_models/control-models/app-params.control-model.spec.js +5 -4
- package/build/_models/control-models/app-params.control-model.spec.js.map +1 -1
- package/build/_models/control-models/endpoint-params.control-model.js +1 -1
- package/build/_models/control-models/endpoint-params.control-model.js.map +1 -1
- package/build/_models/interfaces/environment-settings.interface.d.ts +35 -0
- package/build/_models/interfaces/environment-settings.interface.d.ts.map +1 -0
- package/build/_models/interfaces/environment-settings.interface.js +3 -0
- package/build/_models/interfaces/environment-settings.interface.js.map +1 -0
- package/build/_models/interfaces/global-settings.interface.d.ts +34 -2
- package/build/_models/interfaces/global-settings.interface.d.ts.map +1 -1
- package/build/_modules/custom-data/index.d.ts.map +1 -1
- package/build/_modules/custom-data/index.js +1 -0
- package/build/_modules/custom-data/index.js.map +1 -1
- package/build/_modules/discord-assistant/_collections/dias-global-settings.const.d.ts +3 -0
- package/build/_modules/discord-assistant/_collections/dias-global-settings.const.d.ts.map +1 -0
- package/build/_modules/discord-assistant/_collections/dias-global-settings.const.js +17 -0
- package/build/_modules/discord-assistant/_collections/dias-global-settings.const.js.map +1 -0
- package/build/_modules/discord-assistant/_models/dias-global-settings.interface.d.ts +18 -0
- package/build/_modules/discord-assistant/_models/dias-global-settings.interface.d.ts.map +1 -0
- package/build/_modules/discord-assistant/_models/dias-global-settings.interface.js +3 -0
- package/build/_modules/discord-assistant/_models/dias-global-settings.interface.js.map +1 -0
- package/build/_modules/discord-assistant/_models/dias-knowledge.data-model.d.ts +10 -0
- package/build/_modules/discord-assistant/_models/dias-knowledge.data-model.d.ts.map +1 -0
- package/build/_modules/discord-assistant/_models/dias-knowledge.data-model.js +41 -0
- package/build/_modules/discord-assistant/_models/dias-knowledge.data-model.js.map +1 -0
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.d.ts +14 -0
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.d.ts.map +1 -0
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js +88 -0
- package/build/_modules/discord-assistant/_services/dias-chunk.data-service.js.map +1 -0
- package/build/_modules/discord-assistant/_services/dias-io.control-service.d.ts +10 -0
- package/build/_modules/discord-assistant/_services/dias-io.control-service.d.ts.map +1 -0
- package/build/_modules/discord-assistant/_services/dias-io.control-service.js +39 -0
- package/build/_modules/discord-assistant/_services/dias-io.control-service.js.map +1 -0
- package/build/_modules/discord-assistant/_services/dias-main.control-service.d.ts +8 -0
- package/build/_modules/discord-assistant/_services/dias-main.control-service.d.ts.map +1 -0
- package/build/_modules/discord-assistant/_services/dias-main.control-service.js +23 -0
- package/build/_modules/discord-assistant/_services/dias-main.control-service.js.map +1 -0
- package/build/_modules/discord-assistant/_services/dias.service-base.d.ts +13 -0
- package/build/_modules/discord-assistant/_services/dias.service-base.d.ts.map +1 -0
- package/build/_modules/discord-assistant/_services/dias.service-base.js +61 -0
- package/build/_modules/discord-assistant/_services/dias.service-base.js.map +1 -0
- package/build/_modules/discord-assistant/index.d.ts +10 -0
- package/build/_modules/discord-assistant/index.d.ts.map +1 -0
- package/build/_modules/discord-assistant/index.js +23 -0
- package/build/_modules/discord-assistant/index.js.map +1 -0
- package/build/_modules/discord-assistant-voiced/_services/dias-discord-bot.control-service.d.ts +4 -0
- package/build/_modules/discord-assistant-voiced/_services/dias-discord-bot.control-service.d.ts.map +1 -0
- package/build/_modules/discord-assistant-voiced/_services/dias-discord-bot.control-service.js +8 -0
- package/build/_modules/discord-assistant-voiced/_services/dias-discord-bot.control-service.js.map +1 -0
- package/build/_modules/discord-assistant-voiced/index.d.ts +3 -0
- package/build/_modules/discord-assistant-voiced/index.d.ts.map +1 -0
- package/build/_modules/discord-assistant-voiced/index.js +26 -0
- package/build/_modules/discord-assistant-voiced/index.js.map +1 -0
- package/build/_modules/discord-bot/_collections/dibo-default-commands.const.d.ts +3 -0
- package/build/_modules/discord-bot/_collections/dibo-default-commands.const.d.ts.map +1 -0
- package/build/_modules/discord-bot/_collections/dibo-default-commands.const.js +13 -0
- package/build/_modules/discord-bot/_collections/dibo-default-commands.const.js.map +1 -0
- package/build/_modules/discord-bot/_collections/dibo-global-settings.conts.d.ts +3 -0
- package/build/_modules/discord-bot/_collections/dibo-global-settings.conts.d.ts.map +1 -0
- package/build/_modules/discord-bot/_collections/dibo-global-settings.conts.js +44 -0
- package/build/_modules/discord-bot/_collections/dibo-global-settings.conts.js.map +1 -0
- package/build/_modules/discord-bot/_collections/dibo-operations.util.d.ts +22 -0
- package/build/_modules/discord-bot/_collections/dibo-operations.util.d.ts.map +1 -0
- package/build/_modules/discord-bot/_collections/dibo-operations.util.js +261 -0
- package/build/_modules/discord-bot/_collections/dibo-operations.util.js.map +1 -0
- package/build/_modules/discord-bot/_models/dibo-command.interface.d.ts +8 -0
- package/build/_modules/discord-bot/_models/dibo-command.interface.d.ts.map +1 -0
- package/build/_modules/discord-bot/_models/dibo-command.interface.js +3 -0
- package/build/_modules/discord-bot/_models/dibo-command.interface.js.map +1 -0
- package/build/_modules/discord-bot/_models/dibo-last-mention-date.inteface.d.ts +7 -0
- package/build/_modules/discord-bot/_models/dibo-last-mention-date.inteface.d.ts.map +1 -0
- package/build/_modules/discord-bot/_models/dibo-last-mention-date.inteface.js +3 -0
- package/build/_modules/discord-bot/_models/dibo-last-mention-date.inteface.js.map +1 -0
- package/build/_modules/discord-bot/_models/dibo-last-message-date.interface.d.ts +6 -0
- package/build/_modules/discord-bot/_models/dibo-last-message-date.interface.d.ts.map +1 -0
- package/build/_modules/discord-bot/_models/dibo-last-message-date.interface.js +3 -0
- package/build/_modules/discord-bot/_models/dibo-last-message-date.interface.js.map +1 -0
- package/build/_modules/discord-bot/_models/global-bot-log-settings.interface.d.ts +88 -0
- package/build/_modules/discord-bot/_models/global-bot-log-settings.interface.d.ts.map +1 -0
- package/build/_modules/discord-bot/_models/global-bot-log-settings.interface.js +3 -0
- package/build/_modules/discord-bot/_models/global-bot-log-settings.interface.js.map +1 -0
- package/build/_modules/discord-bot/_services/dibo-commands.control-service.d.ts +12 -0
- package/build/_modules/discord-bot/_services/dibo-commands.control-service.d.ts.map +1 -0
- package/build/_modules/discord-bot/_services/dibo-commands.control-service.js +72 -0
- package/build/_modules/discord-bot/_services/dibo-commands.control-service.js.map +1 -0
- package/build/_modules/discord-bot/_services/dibo-io.control-service.d.ts +19 -0
- package/build/_modules/discord-bot/_services/dibo-io.control-service.d.ts.map +1 -0
- package/build/_modules/discord-bot/_services/dibo-io.control-service.js +176 -0
- package/build/_modules/discord-bot/_services/dibo-io.control-service.js.map +1 -0
- package/build/_modules/discord-bot/_services/dibo-main.control-service.d.ts +85 -0
- package/build/_modules/discord-bot/_services/dibo-main.control-service.d.ts.map +1 -0
- package/build/_modules/discord-bot/_services/dibo-main.control-service.js +228 -0
- package/build/_modules/discord-bot/_services/dibo-main.control-service.js.map +1 -0
- package/build/_modules/discord-bot/_services/dibo-routines.control-service.d.ts +13 -0
- package/build/_modules/discord-bot/_services/dibo-routines.control-service.d.ts.map +1 -0
- package/build/_modules/discord-bot/_services/dibo-routines.control-service.js +38 -0
- package/build/_modules/discord-bot/_services/dibo-routines.control-service.js.map +1 -0
- package/build/_modules/discord-bot/index.d.ts +12 -0
- package/build/_modules/discord-bot/index.d.ts.map +1 -0
- package/build/_modules/discord-bot/index.js +30 -0
- package/build/_modules/discord-bot/index.js.map +1 -0
- package/build/_modules/oauth2/index.d.ts.map +1 -1
- package/build/_modules/oauth2/index.js +7 -0
- package/build/_modules/oauth2/index.js.map +1 -1
- package/build/_modules/open-ai/_collections/oai-chunking.util.d.ts +74 -0
- package/build/_modules/open-ai/_collections/oai-chunking.util.d.ts.map +1 -0
- package/build/_modules/open-ai/_collections/oai-chunking.util.js +385 -0
- package/build/_modules/open-ai/_collections/oai-chunking.util.js.map +1 -0
- package/build/_modules/open-ai/_collections/oai-document.util.d.ts +4 -0
- package/build/_modules/open-ai/_collections/oai-document.util.d.ts.map +1 -0
- package/build/_modules/open-ai/_collections/oai-document.util.js +12 -0
- package/build/_modules/open-ai/_collections/oai-document.util.js.map +1 -0
- package/build/_modules/open-ai/_collections/oai-global-settings.const.d.ts +3 -0
- package/build/_modules/open-ai/_collections/oai-global-settings.const.d.ts.map +1 -0
- package/build/_modules/open-ai/_collections/oai-global-settings.const.js +9 -0
- package/build/_modules/open-ai/_collections/oai-global-settings.const.js.map +1 -0
- package/build/_modules/open-ai/_collections/oai-llm-predefined-requests-hu.conts.d.ts +3 -0
- package/build/_modules/open-ai/_collections/oai-llm-predefined-requests-hu.conts.d.ts.map +1 -0
- package/build/_modules/open-ai/_collections/oai-llm-predefined-requests-hu.conts.js +75 -0
- package/build/_modules/open-ai/_collections/oai-llm-predefined-requests-hu.conts.js.map +1 -0
- package/build/_modules/open-ai/_collections/oai-llm-predefined-requests.conts.d.ts +3 -0
- package/build/_modules/open-ai/_collections/oai-llm-predefined-requests.conts.d.ts.map +1 -0
- package/build/_modules/open-ai/_collections/oai-llm-predefined-requests.conts.js +68 -0
- package/build/_modules/open-ai/_collections/oai-llm-predefined-requests.conts.js.map +1 -0
- package/build/_modules/open-ai/_enums/oai-compare-result-type.enum.d.ts +6 -0
- package/build/_modules/open-ai/_enums/oai-compare-result-type.enum.d.ts.map +1 -0
- package/build/_modules/open-ai/_enums/oai-compare-result-type.enum.js +10 -0
- package/build/_modules/open-ai/_enums/oai-compare-result-type.enum.js.map +1 -0
- package/build/_modules/open-ai/_enums/oai-gpt-message-role.enum.d.ts +18 -0
- package/build/_modules/open-ai/_enums/oai-gpt-message-role.enum.d.ts.map +1 -0
- package/build/_modules/open-ai/_enums/oai-gpt-message-role.enum.js +40 -0
- package/build/_modules/open-ai/_enums/oai-gpt-message-role.enum.js.map +1 -0
- package/build/_modules/open-ai/_models/interfaces/oai-chunk-compare-result.interface.d.ts +7 -0
- package/build/_modules/open-ai/_models/interfaces/oai-chunk-compare-result.interface.d.ts.map +1 -0
- package/build/_modules/open-ai/_models/interfaces/oai-chunk-compare-result.interface.js +3 -0
- package/build/_modules/open-ai/_models/interfaces/oai-chunk-compare-result.interface.js.map +1 -0
- package/build/_modules/open-ai/_models/interfaces/oai-document-page.interface.d.ts +14 -0
- package/build/_modules/open-ai/_models/interfaces/oai-document-page.interface.d.ts.map +1 -0
- package/build/_modules/open-ai/_models/interfaces/oai-document-page.interface.js +3 -0
- package/build/_modules/open-ai/_models/interfaces/oai-document-page.interface.js.map +1 -0
- package/build/_modules/open-ai/_models/interfaces/oai-global-settings.interface.d.ts +6 -0
- package/build/_modules/open-ai/_models/interfaces/oai-global-settings.interface.d.ts.map +1 -0
- package/build/_modules/open-ai/_models/interfaces/oai-global-settings.interface.js +3 -0
- package/build/_modules/open-ai/_models/interfaces/oai-global-settings.interface.js.map +1 -0
- package/build/_modules/open-ai/_models/interfaces/oai-gpt-message.interface.d.ts +6 -0
- package/build/_modules/open-ai/_models/interfaces/oai-gpt-message.interface.d.ts.map +1 -0
- package/build/_modules/open-ai/_models/interfaces/oai-gpt-message.interface.js +3 -0
- package/build/_modules/open-ai/_models/interfaces/oai-gpt-message.interface.js.map +1 -0
- package/build/_modules/open-ai/_models/interfaces/oai-llm-predefined-requests.interface.d.ts +52 -0
- package/build/_modules/open-ai/_models/interfaces/oai-llm-predefined-requests.interface.d.ts.map +1 -0
- package/build/_modules/open-ai/_models/interfaces/oai-llm-predefined-requests.interface.js +3 -0
- package/build/_modules/open-ai/_models/interfaces/oai-llm-predefined-requests.interface.js.map +1 -0
- package/build/_modules/open-ai/_models/interfaces/oai-page-compare-result.interface.d.ts +13 -0
- package/build/_modules/open-ai/_models/interfaces/oai-page-compare-result.interface.d.ts.map +1 -0
- package/build/_modules/open-ai/_models/interfaces/oai-page-compare-result.interface.js +3 -0
- package/build/_modules/open-ai/_models/interfaces/oai-page-compare-result.interface.js.map +1 -0
- package/build/_modules/open-ai/_models/oai-doc-chunk.data-model.d.ts +18 -0
- package/build/_modules/open-ai/_models/oai-doc-chunk.data-model.d.ts.map +1 -0
- package/build/_modules/open-ai/_models/oai-doc-chunk.data-model.js +80 -0
- package/build/_modules/open-ai/_models/oai-doc-chunk.data-model.js.map +1 -0
- package/build/_modules/open-ai/_services/oai-chunk.service-base.d.ts +13 -0
- package/build/_modules/open-ai/_services/oai-chunk.service-base.d.ts.map +1 -0
- package/build/_modules/open-ai/_services/oai-chunk.service-base.js +170 -0
- package/build/_modules/open-ai/_services/oai-chunk.service-base.js.map +1 -0
- package/build/_modules/open-ai/_services/{embedding.control-service.d.ts → oai-embedding.control-service.d.ts} +3 -3
- package/build/_modules/open-ai/_services/oai-embedding.control-service.d.ts.map +1 -0
- package/build/_modules/open-ai/_services/{embedding.control-service.js → oai-embedding.control-service.js} +5 -5
- package/build/_modules/open-ai/_services/oai-embedding.control-service.js.map +1 -0
- package/build/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts +161 -0
- package/build/_modules/open-ai/_services/oai-llm-chat.service-base.d.ts.map +1 -0
- package/build/_modules/open-ai/_services/oai-llm-chat.service-base.js +332 -0
- package/build/_modules/open-ai/_services/oai-llm-chat.service-base.js.map +1 -0
- package/build/_modules/open-ai/_services/oai-llm.service-base.d.ts +231 -0
- package/build/_modules/open-ai/_services/oai-llm.service-base.d.ts.map +1 -0
- package/build/_modules/open-ai/_services/oai-llm.service-base.js +438 -0
- package/build/_modules/open-ai/_services/oai-llm.service-base.js.map +1 -0
- package/build/_modules/open-ai/_services/{vector-data.service.d.ts → oai-vector-data.service.d.ts} +4 -4
- package/build/_modules/open-ai/_services/oai-vector-data.service.d.ts.map +1 -0
- package/build/_modules/open-ai/_services/{vector-data.service.js → oai-vector-data.service.js} +27 -7
- package/build/_modules/open-ai/_services/oai-vector-data.service.js.map +1 -0
- package/build/_modules/open-ai/index.d.ts +18 -4
- package/build/_modules/open-ai/index.d.ts.map +1 -1
- package/build/_modules/open-ai/index.js +35 -4
- package/build/_modules/open-ai/index.js.map +1 -1
- package/build/_modules/server/index.d.ts +1 -1
- package/build/_modules/server/index.d.ts.map +1 -1
- package/build/_modules/server/index.js +16 -2
- package/build/_modules/server/index.js.map +1 -1
- package/build/_modules/server/server-status/server-status.controller.d.ts.map +1 -1
- package/build/_modules/server/server-status/server-status.controller.js +10 -0
- package/build/_modules/server/server-status/server-status.controller.js.map +1 -1
- package/build/_modules/socket/index.d.ts.map +1 -1
- package/build/_modules/socket/index.js +18 -0
- package/build/_modules/socket/index.js.map +1 -1
- package/build/_modules/test/index.d.ts.map +1 -1
- package/build/_modules/test/index.js +5 -0
- package/build/_modules/test/index.js.map +1 -1
- package/build/_modules/usage/index.d.ts.map +1 -1
- package/build/_modules/usage/index.js +5 -0
- package/build/_modules/usage/index.js.map +1 -1
- package/build/_services/server/app.server.js +1 -2
- package/build/_services/server/app.server.js.map +1 -1
- package/build/index.d.ts +3 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +26 -1
- package/build/index.js.map +1 -1
- package/package.json +40 -10
- package/src/_collections/atlas-default-db-options.const.ts +10 -0
- package/src/_collections/get-environment-settings.util.ts +49 -0
- package/src/_collections/global-settings.const.ts +15 -4
- package/src/_collections/sample.env +21 -0
- package/src/_models/control-models/app-params.control-model.spec.ts +5 -4
- package/src/_models/control-models/app-params.control-model.ts +31 -2
- package/src/_models/control-models/endpoint-params.control-model.ts +1 -1
- package/src/_models/interfaces/environment-settings.interface.ts +59 -0
- package/src/_models/interfaces/global-settings.interface.ts +41 -1
- package/src/_modules/custom-data/index.ts +3 -0
- package/src/_modules/discord-assistant/_collections/dias-global-settings.const.ts +19 -0
- package/src/_modules/discord-assistant/_models/dias-global-settings.interface.ts +20 -0
- package/src/_modules/discord-assistant/_models/dias-knowledge.data-model.ts +46 -0
- package/src/_modules/discord-assistant/_services/dias-chunk.data-service.ts +152 -0
- package/src/_modules/discord-assistant/_services/dias-io.control-service.ts +59 -0
- package/src/_modules/discord-assistant/_services/dias-main.control-service.ts +28 -0
- package/src/_modules/discord-assistant/_services/dias.service-base.ts +81 -0
- package/src/_modules/discord-assistant/index.ts +36 -0
- package/src/_modules/discord-assistant-voiced/_services/dias-discord-bot.control-service.ts +11 -0
- package/src/_modules/discord-assistant-voiced/index.ts +36 -0
- package/src/_modules/discord-bot/_collections/dibo-default-commands.const.ts +17 -0
- package/src/_modules/discord-bot/_collections/dibo-global-settings.conts.ts +56 -0
- package/src/_modules/discord-bot/_collections/dibo-operations.util.ts +372 -0
- package/src/_modules/discord-bot/_models/dibo-command.interface.ts +12 -0
- package/src/_modules/discord-bot/_models/dibo-last-mention-date.inteface.ts +8 -0
- package/src/_modules/discord-bot/_models/dibo-last-message-date.interface.ts +6 -0
- package/src/_modules/discord-bot/_models/global-bot-log-settings.interface.ts +98 -0
- package/src/_modules/discord-bot/_services/dibo-commands.control-service.ts +120 -0
- package/src/_modules/discord-bot/_services/dibo-io.control-service.ts +245 -0
- package/src/_modules/discord-bot/_services/dibo-main.control-service.ts +304 -0
- package/src/_modules/discord-bot/_services/dibo-routines.control-service.ts +60 -0
- package/src/_modules/discord-bot/index.ts +36 -0
- package/src/_modules/oauth2/index.ts +8 -0
- package/src/_modules/open-ai/_collections/oai-chunking.util.ts +496 -0
- package/src/_modules/open-ai/_collections/oai-document.util.ts +10 -0
- package/src/_modules/open-ai/_collections/oai-global-settings.const.ts +9 -0
- package/src/_modules/open-ai/_collections/oai-llm-predefined-requests-hu.conts.ts +83 -0
- package/src/_modules/open-ai/_collections/oai-llm-predefined-requests.conts.ts +76 -0
- package/src/_modules/open-ai/_enums/oai-compare-result-type.enum.ts +7 -0
- package/src/_modules/open-ai/_enums/oai-gpt-message-role.enum.ts +45 -0
- package/src/_modules/open-ai/_models/interfaces/oai-chunk-compare-result.interface.ts +10 -0
- package/src/_modules/open-ai/_models/interfaces/oai-document-page.interface.ts +20 -0
- package/src/_modules/open-ai/_models/interfaces/oai-global-settings.interface.ts +8 -0
- package/src/_modules/open-ai/_models/interfaces/oai-gpt-message.interface.ts +7 -0
- package/src/_modules/open-ai/_models/interfaces/oai-llm-predefined-requests.interface.ts +57 -0
- package/src/_modules/open-ai/_models/interfaces/oai-page-compare-result.interface.ts +18 -0
- package/src/_modules/open-ai/_models/oai-doc-chunk.data-model.ts +92 -0
- package/src/_modules/open-ai/_services/oai-chunk.service-base.ts +214 -0
- package/src/_modules/open-ai/_services/{embedding.control-service.ts → oai-embedding.control-service.ts} +2 -2
- package/src/_modules/open-ai/_services/oai-llm-chat.service-base.ts +609 -0
- package/src/_modules/open-ai/_services/oai-llm.service-base.ts +648 -0
- package/src/_modules/open-ai/_services/{vector-data.service.ts → oai-vector-data.service.ts} +32 -5
- package/src/_modules/open-ai/index.ts +42 -4
- package/src/_modules/server/index.ts +18 -2
- package/src/_modules/server/server-status/server-status.controller.ts +13 -0
- package/src/_modules/socket/index.ts +23 -0
- package/src/_modules/test/index.ts +8 -0
- package/src/_modules/usage/index.ts +8 -0
- package/src/_services/server/app.server.ts +1 -1
- package/src/index.ts +28 -1
- package/build/_modules/open-ai/_services/embedding.control-service.d.ts.map +0 -1
- package/build/_modules/open-ai/_services/embedding.control-service.js.map +0 -1
- package/build/_modules/open-ai/_services/gpt.service-base.d.ts +0 -98
- package/build/_modules/open-ai/_services/gpt.service-base.d.ts.map +0 -1
- package/build/_modules/open-ai/_services/gpt.service-base.js +0 -284
- package/build/_modules/open-ai/_services/gpt.service-base.js.map +0 -1
- package/build/_modules/open-ai/_services/open-ai.service-base.d.ts +0 -21
- package/build/_modules/open-ai/_services/open-ai.service-base.d.ts.map +0 -1
- package/build/_modules/open-ai/_services/open-ai.service-base.js +0 -50
- package/build/_modules/open-ai/_services/open-ai.service-base.js.map +0 -1
- package/build/_modules/open-ai/_services/vector-data.service.d.ts.map +0 -1
- package/build/_modules/open-ai/_services/vector-data.service.js.map +0 -1
- package/build/_services/server/env-set.d.ts +0 -2
- package/build/_services/server/env-set.d.ts.map +0 -1
- package/build/_services/server/env-set.js +0 -20
- package/build/_services/server/env-set.js.map +0 -1
- package/src/_modules/open-ai/_services/gpt.service-base.ts +0 -438
- package/src/_modules/open-ai/_services/open-ai.service-base.ts +0 -69
- package/src/_services/server/env-set.ts +0 -21
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export enum DyNTS_OAI_GPT_Message_Role {
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Developer-provided instructions that the model should follow, regardless of
|
|
8
|
+
* messages sent by the user. With o1 models and newer, use `developer` messages
|
|
9
|
+
* for this purpose instead.
|
|
10
|
+
*/
|
|
11
|
+
system = 'system',
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Messages sent by an end user, containing prompts or additional context
|
|
15
|
+
* information.
|
|
16
|
+
*/
|
|
17
|
+
user = 'user',
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Messages sent by the model in response to user messages.
|
|
21
|
+
*/
|
|
22
|
+
assistant = 'assistant',
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Developer-provided instructions that the model should follow, regardless of
|
|
26
|
+
* messages sent by the user. With o1 models and newer, `developer` messages
|
|
27
|
+
* replace the previous `system` messages.
|
|
28
|
+
*
|
|
29
|
+
* @deprecated
|
|
30
|
+
*/
|
|
31
|
+
/* developer = 'developer', */
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* ???
|
|
35
|
+
* @deprecated
|
|
36
|
+
*/
|
|
37
|
+
/* tool = 'tool', */
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* ???
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
43
|
+
/* function = 'function', */
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { DyNTS_OAI_CompareResult_Type } from '../../_enums/oai-compare-result-type.enum';
|
|
4
|
+
import { DyNTS_OAI_DocChunk } from '../oai-doc-chunk.data-model';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export interface DyNTS_OAI_ChunkCompareResult {
|
|
8
|
+
result: DyNTS_OAI_CompareResult_Type;
|
|
9
|
+
oldChunk: DyNTS_OAI_DocChunk;
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DyFM_Metadata } from '@futdevpro/fsm-dynamo';
|
|
2
|
+
import { DyNTS_OAI_DocChunk } from '../oai-doc-chunk.data-model';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export interface DyNTS_OAI_DocumentPage extends DyFM_Metadata {
|
|
8
|
+
workspaceId: string;
|
|
9
|
+
docId: string;
|
|
10
|
+
parentPageId: string;
|
|
11
|
+
|
|
12
|
+
path: string[];
|
|
13
|
+
documentParent: string;
|
|
14
|
+
|
|
15
|
+
name: string;
|
|
16
|
+
content: string;
|
|
17
|
+
|
|
18
|
+
pages: DyNTS_OAI_DocumentPage[];
|
|
19
|
+
chunks: DyNTS_OAI_DocChunk[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export interface DyNTS_OAI_LLM_Predefined_Requests {
|
|
4
|
+
defaultSystemPrompt: string;
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
yesNo: {
|
|
8
|
+
/**
|
|
9
|
+
* @default ' (Only answer with "Yes" or "No")'
|
|
10
|
+
*/
|
|
11
|
+
request: string;
|
|
12
|
+
/**
|
|
13
|
+
* This will be used to check if the answer is yes (using includes in the answer)
|
|
14
|
+
* @default 'YES'
|
|
15
|
+
*/
|
|
16
|
+
upperCaseYes: string;
|
|
17
|
+
},
|
|
18
|
+
/**
|
|
19
|
+
* @default ' (Only answer with a number between 0 and 1, e.g.: 0.65)'
|
|
20
|
+
*/
|
|
21
|
+
percentageOnly: string;
|
|
22
|
+
/**
|
|
23
|
+
* use {{DyNTS_selectOptions}} without spaces to insert the options
|
|
24
|
+
* @default ' (Only answer with one of the following: {{DyNTS_selectOptions}})'
|
|
25
|
+
* */
|
|
26
|
+
selectRequest: string;
|
|
27
|
+
/**
|
|
28
|
+
* use {{DyNTS_selectOptions}} without spaces to insert the options
|
|
29
|
+
* @default ' (Only answer with one or more of the following: {{DyNTS_selectOptions}})'
|
|
30
|
+
*/
|
|
31
|
+
multiselect: string;
|
|
32
|
+
/**
|
|
33
|
+
* @default ' (The answer must be in JSON format)'
|
|
34
|
+
*/
|
|
35
|
+
jsonRequest: string;
|
|
36
|
+
/**
|
|
37
|
+
* use {{DyNTS_jsonKeysDescription}} to insert the keys description
|
|
38
|
+
* @default ' (The answer must be in JSON format, {{DyNTS_jsonKeysDescription}})'
|
|
39
|
+
*/
|
|
40
|
+
jsonRequestWithKeysDescription: string;
|
|
41
|
+
/**
|
|
42
|
+
* @default ' (The answer must be in JSON format, where the keys are: {{DyNTS_jsonKeys}})'
|
|
43
|
+
*/
|
|
44
|
+
jsonRequestWithExactKeys: string;
|
|
45
|
+
/**
|
|
46
|
+
* @default ' (The answer must be in JSON list format)'
|
|
47
|
+
*/
|
|
48
|
+
listRequest: string;
|
|
49
|
+
|
|
50
|
+
vectorSearch: {
|
|
51
|
+
systemPrompt: string;
|
|
52
|
+
getSearchQuestion: string;
|
|
53
|
+
resolveSearchResults: string;
|
|
54
|
+
doWeNeedVectorSearch: string;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import { DyNTS_OAI_CompareResult_Type } from '../../_enums/oai-compare-result-type.enum';
|
|
3
|
+
import { DyNTS_OAI_DocChunk } from '../oai-doc-chunk.data-model';
|
|
4
|
+
import { DyNTS_OAI_ChunkCompareResult } from './oai-chunk-compare-result.interface';
|
|
5
|
+
import { DyNTS_OAI_DocumentPage } from './oai-document-page.interface';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export interface DyNTS_OAI_PageCompareResult {
|
|
11
|
+
result: DyNTS_OAI_CompareResult_Type;
|
|
12
|
+
subjectPage: DyNTS_OAI_DocumentPage;
|
|
13
|
+
oldPageContent: string;
|
|
14
|
+
chunkCompareResults: DyNTS_OAI_ChunkCompareResult[];
|
|
15
|
+
|
|
16
|
+
newChunks: DyNTS_OAI_DocChunk[];
|
|
17
|
+
oldChunks: DyNTS_OAI_DocChunk[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { DyFM_DataModel_Params, DyFM_Metadata } from '@futdevpro/fsm-dynamo';
|
|
5
|
+
import { DyFM_OpenAIModel } from '@futdevpro/fsm-dynamo/open-ai';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export class DyNTS_OAI_DocChunk extends DyFM_Metadata {
|
|
10
|
+
workspaceId?: string;
|
|
11
|
+
documentId?: string;
|
|
12
|
+
documentPageId?: string;
|
|
13
|
+
mainDocumentName?: string;
|
|
14
|
+
documentName?: string;
|
|
15
|
+
documentPath?: string[];
|
|
16
|
+
|
|
17
|
+
chunkIndex?: number;
|
|
18
|
+
/** parent headers */
|
|
19
|
+
chunkPath?: string[];
|
|
20
|
+
|
|
21
|
+
chunkOriginalContent?: string;
|
|
22
|
+
|
|
23
|
+
chunkParentedContent?: string;
|
|
24
|
+
chunkParentedContentVectorized?: number[] = [];
|
|
25
|
+
|
|
26
|
+
constructor(
|
|
27
|
+
set?: DyNTS_OAI_DocChunk,
|
|
28
|
+
) {
|
|
29
|
+
super(set);
|
|
30
|
+
|
|
31
|
+
if (set) {
|
|
32
|
+
Object.assign(this, set);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const DyNTS_OAI_docChunk_dataParams = new DyFM_DataModel_Params<DyNTS_OAI_DocChunk>({
|
|
38
|
+
dataName: 'oai_doc_chunk',
|
|
39
|
+
properties: {
|
|
40
|
+
workspaceId: {
|
|
41
|
+
type: 'string', index: true,
|
|
42
|
+
required: true,
|
|
43
|
+
},
|
|
44
|
+
documentId: {
|
|
45
|
+
type: 'string', index: true,
|
|
46
|
+
required: true,
|
|
47
|
+
},
|
|
48
|
+
documentPageId: {
|
|
49
|
+
type: 'string', index: true,
|
|
50
|
+
required: true,
|
|
51
|
+
},
|
|
52
|
+
mainDocumentName: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
required: true,
|
|
55
|
+
},
|
|
56
|
+
documentName: {
|
|
57
|
+
type: 'string',
|
|
58
|
+
required: true,
|
|
59
|
+
},
|
|
60
|
+
documentPath: {
|
|
61
|
+
type: 'string[]',
|
|
62
|
+
required: true,
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
chunkIndex: {
|
|
66
|
+
type: 'number', index: true,
|
|
67
|
+
required: true,
|
|
68
|
+
},
|
|
69
|
+
chunkPath: {
|
|
70
|
+
type: 'string[]',
|
|
71
|
+
required: true,
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
chunkOriginalContent: {
|
|
75
|
+
type: 'string',
|
|
76
|
+
required: true,
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
chunkParentedContent: {
|
|
80
|
+
type: 'string', index: true,
|
|
81
|
+
required: true,
|
|
82
|
+
},
|
|
83
|
+
chunkParentedContentVectorized: {
|
|
84
|
+
type: 'number[]',
|
|
85
|
+
required: true, index: true,
|
|
86
|
+
embeddingModel: DyFM_OpenAIModel.textEmbedding_3Large,
|
|
87
|
+
vectorizedFrom: 'chunkParentedContent',
|
|
88
|
+
vectorizeUseIndex: 'chunkParentedContentVectorized',
|
|
89
|
+
vectorizeAlways: true,
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
});
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { DyFM_Array, DyFM_DataModel_Params, DyFM_Error, DyFM_Log } from '@futdevpro/fsm-dynamo';
|
|
2
|
+
import { DyNTS_OAI_DocChunk, DyNTS_OAI_docChunk_dataParams } from '../_models/oai-doc-chunk.data-model';
|
|
3
|
+
import { DyNTS_OAI_VectorDataService } from './oai-vector-data.service';
|
|
4
|
+
import { DyFM_OpenAI_Settings, DyFM_OpenAIModel } from '@futdevpro/fsm-dynamo/open-ai';
|
|
5
|
+
import { DyNTS_OAI_PageCompareResult } from '../_models/interfaces/oai-page-compare-result.interface';
|
|
6
|
+
import { DyNTS_OAI_CompareResult_Type } from '../_enums/oai-compare-result-type.enum';
|
|
7
|
+
import { DyNTS_OAI_DocumentPage } from '../_models/interfaces/oai-document-page.interface';
|
|
8
|
+
import { DyNTS_OAI_ChunkCompareResult } from '../_models/interfaces/oai-chunk-compare-result.interface';
|
|
9
|
+
import { DyNTS_OAI_Chunking_Util } from '../_collections/oai-chunking.util';
|
|
10
|
+
import { DyNTS_global_settings } from '../../../_collections/global-settings.const';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
export class DyNTS_OAI_Chunk_ServiceBase extends DyNTS_OAI_VectorDataService<DyNTS_OAI_DocChunk> {
|
|
14
|
+
|
|
15
|
+
constructor(issuer: string) {
|
|
16
|
+
super(
|
|
17
|
+
null,
|
|
18
|
+
DyNTS_OAI_docChunk_dataParams,
|
|
19
|
+
new DyFM_OpenAI_Settings({
|
|
20
|
+
openAIConfig: {
|
|
21
|
+
apiKey: DyNTS_global_settings.env_settings.openAi.apiKey,
|
|
22
|
+
organization: DyNTS_global_settings.env_settings.openAi.organization,
|
|
23
|
+
project: DyNTS_global_settings.env_settings.openAi.project,
|
|
24
|
+
},
|
|
25
|
+
defaultSettings: {
|
|
26
|
+
useModel: DyFM_OpenAIModel.textEmbedding_3Large,
|
|
27
|
+
},
|
|
28
|
+
}),
|
|
29
|
+
issuer
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
async updatePage(pageCompareResult: DyNTS_OAI_PageCompareResult, issuer: string): Promise<void> {
|
|
34
|
+
try {
|
|
35
|
+
// save chunks
|
|
36
|
+
// (only new and modified pages
|
|
37
|
+
// (but all the page element should be updated
|
|
38
|
+
// (delete extra elements)))
|
|
39
|
+
|
|
40
|
+
if (pageCompareResult.oldChunks.length > pageCompareResult.newChunks.length) {
|
|
41
|
+
// delete extra chunks
|
|
42
|
+
for (let i = 0; i < pageCompareResult.oldChunks.length; i++) {
|
|
43
|
+
if (i < pageCompareResult.newChunks.length) {
|
|
44
|
+
pageCompareResult.newChunks[i]._id = pageCompareResult.oldChunks[i]._id;
|
|
45
|
+
} else {
|
|
46
|
+
await this.deleteData(pageCompareResult.oldChunks[i]._id, true).catch(error => {
|
|
47
|
+
DyFM_Error.logSimple('❌ Chunk not deleted', error);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
await DyFM_Array.asyncForEachAllAtOnce(
|
|
54
|
+
pageCompareResult.newChunks,
|
|
55
|
+
async (chunk) => {
|
|
56
|
+
if (
|
|
57
|
+
pageCompareResult.chunkCompareResults[chunk.chunkIndex].result !== DyNTS_OAI_CompareResult_Type.equal
|
|
58
|
+
) {
|
|
59
|
+
await this.saveData(chunk, false, true);
|
|
60
|
+
DyFM_Log.info(`✅ Chunk saved: ${pageCompareResult.subjectPage.name}; ${chunk.chunkIndex}`)
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
DyFM_Log.success(`✅ Chunks updated(SAVED) for page: ${pageCompareResult.subjectPage.name}`);
|
|
66
|
+
} catch (error) {
|
|
67
|
+
throw new DyFM_Error({
|
|
68
|
+
...this.getDefaultErrorSettings('updatePage', error),
|
|
69
|
+
errorCode: 'DCH-CSB-UP0',
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
async comparePage(page: DyNTS_OAI_DocumentPage, issuer: string): Promise<DyNTS_OAI_PageCompareResult> {
|
|
75
|
+
try {
|
|
76
|
+
const oldChunks = await this.findDataList({
|
|
77
|
+
documentId: `${page.docId}`,
|
|
78
|
+
documentPageId: page._id,
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
const compareResults: DyNTS_OAI_ChunkCompareResult[] = await this.compareChunks(
|
|
82
|
+
page.chunks,
|
|
83
|
+
oldChunks
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
/* DyFM_Log.H_info(`✅ Modified page: ${page.name}`, {
|
|
87
|
+
compareResults: compareResults,
|
|
88
|
+
equal: compareResults.every(result => result.result === DCh_CompareResult_Type.equal),
|
|
89
|
+
new: compareResults.every(result => result.result === DCh_CompareResult_Type.new),
|
|
90
|
+
modified: compareResults.some(
|
|
91
|
+
result => ![ DCh_CompareResult_Type.equal, DCh_CompareResult_Type.new ].includes(result.result)
|
|
92
|
+
),
|
|
93
|
+
}); */
|
|
94
|
+
|
|
95
|
+
if (
|
|
96
|
+
compareResults.every(result => result.result === DyNTS_OAI_CompareResult_Type.equal)
|
|
97
|
+
) {
|
|
98
|
+
return {
|
|
99
|
+
result: DyNTS_OAI_CompareResult_Type.equal,
|
|
100
|
+
subjectPage: page,
|
|
101
|
+
oldPageContent: page.content,
|
|
102
|
+
chunkCompareResults: compareResults,
|
|
103
|
+
newChunks: page.chunks,
|
|
104
|
+
oldChunks: oldChunks,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (
|
|
109
|
+
compareResults.every(result => result.result === DyNTS_OAI_CompareResult_Type.new)
|
|
110
|
+
) {
|
|
111
|
+
return {
|
|
112
|
+
result: DyNTS_OAI_CompareResult_Type.new,
|
|
113
|
+
subjectPage: page,
|
|
114
|
+
oldPageContent: '',
|
|
115
|
+
chunkCompareResults: compareResults,
|
|
116
|
+
newChunks: page.chunks,
|
|
117
|
+
oldChunks: oldChunks,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return {
|
|
122
|
+
result: DyNTS_OAI_CompareResult_Type.modified,
|
|
123
|
+
subjectPage: page,
|
|
124
|
+
oldPageContent: DyNTS_OAI_Chunking_Util.reassembleChunksToContent(
|
|
125
|
+
compareResults.filter(result => result.oldChunk).map(result => result.oldChunk),
|
|
126
|
+
issuer
|
|
127
|
+
),
|
|
128
|
+
chunkCompareResults: compareResults,
|
|
129
|
+
newChunks: page.chunks,
|
|
130
|
+
oldChunks: oldChunks,
|
|
131
|
+
};
|
|
132
|
+
} catch (error) {
|
|
133
|
+
throw new DyFM_Error({
|
|
134
|
+
...this.getDefaultErrorSettings('comparePage', error),
|
|
135
|
+
errorCode: 'DCH-CSB-CP0',
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
async compareChunks(
|
|
141
|
+
chunks: DyNTS_OAI_DocChunk[],
|
|
142
|
+
oldChunks?: DyNTS_OAI_DocChunk[]
|
|
143
|
+
): Promise<DyNTS_OAI_ChunkCompareResult[]> {
|
|
144
|
+
try {
|
|
145
|
+
if (chunks.length === 0) {
|
|
146
|
+
return [];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
oldChunks ??= await this.findDataList({
|
|
150
|
+
documentId: chunks[0].documentId,
|
|
151
|
+
documentPageId: chunks[0].documentPageId,
|
|
152
|
+
});
|
|
153
|
+
oldChunks.sort((a, b) => a.chunkIndex - b.chunkIndex);
|
|
154
|
+
|
|
155
|
+
return await DyFM_Array.asyncForEachAllAtOnce(
|
|
156
|
+
chunks,
|
|
157
|
+
async (chunk) => {
|
|
158
|
+
return await this.compareChunk(chunk, oldChunks[chunk.chunkIndex]);
|
|
159
|
+
}
|
|
160
|
+
)
|
|
161
|
+
} catch (error) {
|
|
162
|
+
throw new DyFM_Error({
|
|
163
|
+
...this.getDefaultErrorSettings('compareChunks', error),
|
|
164
|
+
errorCode: 'DCH-CSB-CC0',
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
async compareChunk(
|
|
170
|
+
newChunk: DyNTS_OAI_DocChunk,
|
|
171
|
+
oldChunk?: DyNTS_OAI_DocChunk
|
|
172
|
+
): Promise<DyNTS_OAI_ChunkCompareResult> {
|
|
173
|
+
try {
|
|
174
|
+
oldChunk ??= await this.findData({
|
|
175
|
+
documentId: newChunk.documentId,
|
|
176
|
+
documentPageId: newChunk.documentPageId,
|
|
177
|
+
chunkIndex: newChunk.chunkIndex,
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
/* DyFM_Log.H_info(`✅ Comparing chunk: ${newChunk.chunkIndex}`, {
|
|
181
|
+
newChunk: newChunk,
|
|
182
|
+
oldChunk: oldChunk,
|
|
183
|
+
new: !oldChunk,
|
|
184
|
+
equal: oldChunk?.chunkParentedContent === newChunk.chunkParentedContent,
|
|
185
|
+
modified: oldChunk && oldChunk.chunkParentedContent !== newChunk.chunkParentedContent,
|
|
186
|
+
}); */
|
|
187
|
+
|
|
188
|
+
if (!oldChunk) {
|
|
189
|
+
return {
|
|
190
|
+
result: DyNTS_OAI_CompareResult_Type.new,
|
|
191
|
+
oldChunk: null,
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if (oldChunk.chunkParentedContent === newChunk.chunkParentedContent) {
|
|
196
|
+
return {
|
|
197
|
+
result: DyNTS_OAI_CompareResult_Type.equal,
|
|
198
|
+
oldChunk: oldChunk,
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return {
|
|
203
|
+
result: DyNTS_OAI_CompareResult_Type.modified,
|
|
204
|
+
oldChunk: oldChunk,
|
|
205
|
+
};
|
|
206
|
+
} catch (error) {
|
|
207
|
+
throw new DyFM_Error({
|
|
208
|
+
...this.getDefaultErrorSettings('compareChunk', error),
|
|
209
|
+
errorCode: 'DCH-CSB-CC1',
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { DyFM_OpenAIModel } from '@futdevpro/fsm-dynamo/open-ai';
|
|
3
3
|
import { DyFM_Error } from '@futdevpro/fsm-dynamo';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { DyNTS_OAI_LLM_ServiceBase } from './oai-llm.service-base';
|
|
6
6
|
import { DyNTS_global_settings } from '../../../_collections/global-settings.const';
|
|
7
7
|
|
|
8
|
-
export class
|
|
8
|
+
export class DyNTS_OAI_Embedding_ControlService extends DyNTS_OAI_LLM_ServiceBase {
|
|
9
9
|
|
|
10
10
|
async createEmbedding(
|
|
11
11
|
text: string,
|