From d7b4ed3079e357e316e2398093acc456f128dc6e Mon Sep 17 00:00:00 2001 From: Danny Avila <110412045+danny-avila@users.noreply.github.com> Date: Thu, 11 Jan 2024 13:42:00 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Remove=20`resendImages`,?= =?UTF-8?q?=20`imageDetail`=20from=20`modelOptions`=20for=20Custom=20Endpo?= =?UTF-8?q?ints=20(#1537)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/server/services/Endpoints/custom/buildOptions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/server/services/Endpoints/custom/buildOptions.js b/api/server/services/Endpoints/custom/buildOptions.js index 63a2d15992..0bba48e2b9 100644 --- a/api/server/services/Endpoints/custom/buildOptions.js +++ b/api/server/services/Endpoints/custom/buildOptions.js @@ -1,10 +1,12 @@ const buildOptions = (endpoint, parsedBody, endpointType) => { - const { chatGptLabel, promptPrefix, ...rest } = parsedBody; + const { chatGptLabel, promptPrefix, resendImages, imageDetail, ...rest } = parsedBody; const endpointOption = { endpoint, endpointType, chatGptLabel, promptPrefix, + resendImages, + imageDetail, modelOptions: { ...rest, },