From 371696732a7680ae703150e2593bf3b92b716614 Mon Sep 17 00:00:00 2001 From: Enrique Pedroza Date: Wed, 23 Oct 2024 10:45:31 +0000 Subject: [PATCH] Fix - We deleted Dall-E plugin and fixed a bug that didnt let save assistant's tools --- api/app/clients/tools/manifest.json | 13 ------------- api/server/controllers/assistants/v1.js | 2 +- api/utils/intelequia/constants.js | 1 - 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/api/app/clients/tools/manifest.json b/api/app/clients/tools/manifest.json index 14fb3c8d636..b4ad4427ce7 100644 --- a/api/app/clients/tools/manifest.json +++ b/api/app/clients/tools/manifest.json @@ -30,19 +30,6 @@ } ] }, - { - "name": "DALL-E", - "pluginKey": "dall-e", - "description": "Create realistic images and art from a description in natural language", - "icon": "https://i.imgur.com/u2TzXzH.png", - "authConfig": [ - { - "authField": "DALLE2_API_KEY||DALLE_API_KEY", - "label": "OpenAI API Key", - "description": "You can use DALL-E with your API Key from OpenAI." - } - ] - }, { "name": "DALL-E-3", "pluginKey": "dalle", diff --git a/api/server/controllers/assistants/v1.js b/api/server/controllers/assistants/v1.js index c8fda6895a6..dfb29dba817 100644 --- a/api/server/controllers/assistants/v1.js +++ b/api/server/controllers/assistants/v1.js @@ -144,7 +144,7 @@ const patchAssistant = async (req, res) => { * @Organization Intelequia * @Author Enrique M. Pedroza Castillo */ - if(isToolEnabled(tool)){ + if(await isToolEnabled(tool)){ return await GetToolSpecification(tool) } diff --git a/api/utils/intelequia/constants.js b/api/utils/intelequia/constants.js index c419ff283f7..ac22adf6425 100644 --- a/api/utils/intelequia/constants.js +++ b/api/utils/intelequia/constants.js @@ -1,5 +1,4 @@ const enabledPluginsNames = [ - "DALL-E", "DALL-E-3", "Azure AI Functions", "Azure AI Search",