Skip to content

Commit

Permalink
šŸ› fix: Remove resendImages, imageDetail from modelOptions for Cā€¦
Browse files Browse the repository at this point in the history
ā€¦ustom Endpoints (danny-avila#1537)
  • Loading branch information
danny-avila authored Jan 11, 2024
1 parent 406b845 commit 7df615a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/server/services/Endpoints/custom/buildOptions.js
Original file line number Diff line number Diff line change
@@ -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,
},
Expand Down

0 comments on commit 7df615a

Please sign in to comment.